Different date between logread and syslog-ng

I installed syslog-ng and use /var/log/messages to check log.
logread also works (different messages between them)
but logread shows the logs with times stamps that is in my local time (which is the same as output of date command) but /var/log/messages timestamps are in the UTC time.
what do I need to change to fix this.

Does this help?
https://www.google.com/search?q=syslog-ng+utc

I thought it was a openwrt bug.
but I tried your asnwer and it was not helpfull.
most google links were for syslog-ng bugs .
so I still cant find what I need to change in syslog-ng config to fix this.
this didnt work.
destination messages {
time_zone("+04:30");
file("/var/log/messages");
};

update:
for others that have the same issue:
destination messages {
file("/var/log/messages" time_zone("yourtimezone"));
};

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.