Results 1 to 2 of 2
Hello there,
I installed openldap on my ununtu machine. Openldap log files are logged via syslogd, Now I'd like to change the format of the date in the logfile to ...
- 04-21-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 1
change format of date in system (syslog) logfiles
Hello there,
I installed openldap on my ununtu machine. Openldap log files are logged via syslogd, Now I'd like to change the format of the date in the logfile to YYYY-MM-dd hh:mi:ss.
I've searched a lot, asked a lot but couldn't find how to do it. (I even changed the date formats in thelocale file, without any success).
Does anybody know how to accomplish this.
Thanks in advance.
Martin
- 04-22-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,970
Sorry, no joy in Mudville here. I couldn't find any way either. If I do, I'll let you know. You could always get the source code, and find where it is formatting the time for syslog calls, and then determine where it gets the format. If it's compiled in, then you can change the format and recompile the code. That's kind of the worst-case scenario, but it would work.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
