Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Exclamation 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.


  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts