syslog logrotation

Discussion in 'Tomato Firmware' started by jan.n, Aug 27, 2009.

  1. jan.n

    jan.n LI Guru Member


    how is the logrotation done in tomato? I put my syslog on a cifs share and now want to change the default behaviour to have monthly files like this:
    For july 09 the file would be "messages_0907", for august 09 "messages_0908" and so forth...
  2. jan.n

    jan.n LI Guru Member

    Doesn't anyone have a clue, even the slightest hint would do - wow, I'm becoming a poet ;-)
  3. besonen

    besonen LI Guru Member

  4. jan.n

    jan.n LI Guru Member

    Thank you for your idea, but it seems that logrotate is not part of tomato. It is done via something else..
  5. mstombs

    mstombs Network Guru Member

    log rotation in tomato is done by the BusyBox syslogd, I'm sure you can stop it and restart with different numbers but you can't have custom names.

    Seems wrong to me to log like you want - what does the router do if there's a network glitch - tries to log "unable to write to log file" and likely to crash to router.

    The remote network logging function uses udp messages to avoid this problem - if messages not delivered no problem they just get lost..
  6. jan.n

    jan.n LI Guru Member

    I have to admit you're right. I accidentally switched off my dreambox last night and voila, my router almost went out of service. The router part was still fully operational, but I could no longer log in via ssh. I rebooted it via the webif and corrected that.

    My problem is that I don't have enough free time to statically compile syslog-ng for ppc myself (to use on my dreambox)... Well, perhaps someday later on this year.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice