Timezone problem with syslog-ng
Greetings. First of all, hello to everybody as this is my first post. I am not too sure if this falls into the "problems" or "feature requests" section. The matter is I have noticed that syslog-ng is using UTC instead of local time, as I'd like it to do. I am using the "use_time_recv" option and server is configured for MET timezone (BTW it is Solaris 9). This is affecting both filenames (I am using variations of .../$WEEKDAY/$HOST and yesterday files have a timestamp of "dec 19 00:59" local time) and the file contents (i.e. first columns). syslog-ng version is 1.6.0rc4. I must, anyway, congratulate the authors: we have been running syslog-ng for quite a while (in a server configured with UTC :>) and it has been proved being very effective (it is a very dated host being log server for a lot of networking devices, some of them generating more than 1GB logs/day and has a 0.05-0.08 load). Regards, Raúl Pedroche COLT Telecom Av. Manoteras, 42 - Calle 3, 28050 Madrid Teléfono de soporte técnico: 901 88 99 88 Para llamadas desde el extranjero: +34 91 320 60 18 Email: raul.pedroche@colt-telecom.es www.colt.net ********************************************************************** COLT Telecom Espana S.A. Oficina Registrada en: Telemaco, 5 28027 Madrid Tel. +34 91 789 9000 This message is subject to and does not create or vary any contractual relationship between COLT Telecommunications, its subsidiaries or affiliates ("COLT") and you. Internet communications are not secure and therefore COLT does not accept legal responsibility for the contents of this message. Any view or opinions expressed are those of the author. The message is intended for the addressee only and its contents and any attached files are strictly confidential. If you have received it in error, please telephone the number above. Thank you. **********************************************************************
[iso-8859-1] "Pedroche, Ra�l" writes:
The matter is I have noticed that syslog-ng is using UTC instead of local time, as I'd like it to do. I am using the "use_time_recv" option and server is configured for MET timezone (BTW it is Solaris 9).
I have the same problem on linux RH9. I dont understand how to solve it ? Any Idea? Thanks in advance. Roberto
On Tue, Feb 03, 2004 at 04:53:24PM +0100, Roberto.Re@cu.mi.it wrote:
[iso-8859-1] "Pedroche, Ra???l" writes:
The matter is I have noticed that syslog-ng is using UTC instead of local time, as I'd like it to do. I am using the "use_time_recv" option and server is configured for MET timezone (BTW it is Solaris 9).
I have the same problem on linux RH9. I dont understand how to solve it ? Any Idea?
You might be starting syslog-ng from an environment where all the environmental variables are scrubbed, I've had similar things happen. How are you starting syslog-ng? -- Nate "The IBM compatible sector has not yet recognized that 95% of computer usage is devoted to experimenting with different fonts and character styles in documents." - Reiner, Ron
Nate Campi writes:
The matter is I have noticed that syslog-ng is using UTC instead of local time, as I'd like it to do. I am using the "use_time_recv" option and server is configured for MET timezone (BTW it is Solaris 9). [..] I have the same problem on linux RH9. I dont understand how to solve it ? Any Idea?
You might be starting syslog-ng from an environment where all the environmental variables are scrubbed, I've had similar things happen.
How are you starting syslog-ng?
Thamks for the suggested tip ;-) This is my solution : /etc/init.d/syslog-ng [..] start) export TZ=CET [..] Regards Roberto
participants (3)
-
"Pedroche, Raúl"
-
Nate Campi
-
Roberto.Re@cu.mi.it