[syslog-ng] syslog doesn't log if system date is older than date on last reboot

Abhi Arora engr.abhiarora at gmail.com
Thu Feb 6 09:00:42 UTC 2020


The following command "cat /dev/log" returns:
> cat: /dev/log: No such device or address

Do I need to configure something else for syslog?

On Thu, Feb 6, 2020 at 12:30 PM Abhi Arora <engr.abhiarora at gmail.com> wrote:

> Thanks Tired that.
> I don't see service start fail messages. However, even with the latest
> date, syslog doesn't show any logs from my applications. However,
> journalctl is showing the logs after a latest date update.
>
> source s_src { unix-dgram("/dev/log"); internal();
>              file("/proc/kmsg" program_override("kernel"));
> };
>
> On Thu, Feb 6, 2020 at 12:21 PM Nagy Gábor <gabor.hl at gmail.com> wrote:
>
>> I think you need to add /dev/log to unix-dgram.
>>
>> source s_src { unix-dgram("/dev/log");
>> internal();
>>              file("/proc/kmsg" program_override("kernel"));
>> };
>>
>> Regards,
>> Gábor
>>
>>
>> ______________________________________________________________________________
>> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
>> Documentation:
>> http://www.balabit.com/support/documentation/?product=syslog-ng
>> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20200206/f5474d20/attachment.html>


More information about the syslog-ng mailing list