Log file deleting itself - Is this normal?

Discussion in 'Asuswrt-Merlin' started by Sean25689, Feb 26, 2013.

  1. Sean25689

    Sean25689 New Around Here

    Joined:
    Feb 26, 2013
    Messages:
    2
    HI,
    I’m using Merlin 3.0.0.4.270.24 for the RT-N66U and am wondering if the log files in the System Log > General Log section automatically deletes itself every so often? If so, is there a setting to control this? This has happened to me at least once that I know of. Thank you!
     
  2. Log in / Register to remove this ad

  3. joegreat

    joegreat Very Senior Member

    Joined:
    Jan 9, 2013
    Messages:
    566
    Location:
    Vienna, Austria
    Hi Sean,

    Yes, it's normal that the Syslog is renewed (deleted) automatically.
    How often, or better when(!) it's renewed is defined by the start parameters. Which you can see by looking for the syslogd process:
    Code:
    chief@RT-N66U:/tmp/home/root# ps -w | grep syslog
      352 admin     1336 S    syslogd -m 0 -S -O /tmp/syslog.log -s 512 -l 7 
    The -s 512 parameter defines the 'Max size (KB) before rotation'. In this case after reaching 512 KB of size the syslog.log will start fresh. :rolleyes:

    Do you have so many messages in the syslog that this happens often in your case? :eek:

    With kind regards
    Joe :cool:
     
  4. Sean25689

    Sean25689 New Around Here

    Joined:
    Feb 26, 2013
    Messages:
    2
    Hi Joe,
    Thank you for your response. So glad to hear that the log the log file was just cleaning up after itself and it wasn’t someone hacking into my router and then trying to cover their tracks. I do have a lot of messages in the syslog file because I’ve set Firewall > General > Logged Packet Types to “Both”.
    Thanks again, Sean
     

Share This Page