[opensuse] postfix time's log format
Hello, does anybody know why the time format of postfix log file can be different? For example, time format on my openSUSE 13.1 looks like this: 2015-03-27T17:14:45.878768+01:00 On SLE11sp1 I have another format: Feb 16 15:01:48 # locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= Same output on both systems. Why it's different and how can I change it? Thank you, Alex -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Alex Naumov wrote:
Hello,
does anybody know why the time format of postfix log file can be different?
different syslog configuration. postfix does not dictate the timestamp format.
Why it's different and how can I change it?
your syslog config file, for instance /etc/syslog-ng/syslog-ng.conf If you don't use syslog, the format will be found somewhere in systemd. /Per -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-02-17 10:55, Alex Naumov wrote:
Hello,
does anybody know why the time format of postfix log file can be different?
For example, time format on my openSUSE 13.1 looks like this: 2015-03-27T17:14:45.878768+01:00 On SLE11sp1 I have another format: Feb 16 15:01:48
# locale
No, locale has nothing to do there. The format of the timestamp is dictated by the syslog daemon that you use. Which one are you using? What format do you want? The options are limited, though. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
participants (3)
-
Alex Naumov
-
Carlos E. R.
-
Per Jessen