1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Syslog to CIFS possible?

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

  1. jan.n

    jan.n Addicted to LI Member

    Hi, is the only option to log to a remote machine that I set up syslog on some device?
    Or can I make tomato put the logfiles on a CIFS share?
  2. rhester72

    rhester72 Network Guru Member

    You _might_ be able to create a symlink from /var/log/messages to a CIFS volume and restart the logging service, though I have not attempted it.

  3. bogderpirat

    bogderpirat Network Guru Member

    service logging stop
    mv -f /var/log/messages /cifs1/messages
    ln -s /var/log/messages /cifs1/messages
    service logging start
    should do the trick
  4. jan.n

    jan.n Addicted to LI Member

    Thank you both, I tried it and it worked, just had to swap source and dest:
    ln -s /cifs1/messages /var/log/messages 
    Is this symlink persistent or do I have to create it after a reboot?
  5. bogderpirat

    bogderpirat Network Guru Member

    whoopsa, i always mix up ln's syntax.
    the symlink will disappear upon reboot. you might want to add those lines to the init script - with an adequate waiting period so the disabling of the syslogger doesn't miss too much.

Share This Page