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

Logging - Custom Path directory empty.

Discussion in 'Tomato Firmware' started by xcoder, Nov 29, 2011.

  1. xcoder

    xcoder Networkin' Nut Member

    Hi People,

    I am currently using Tomato Firmware v1.28.7628 -Toastman ND USB Std on a ASUS WL500GP with an 8GB micro SD. The micro SD card has a 1GB partition mount as /opt and the balance of the space is mounted under /8GB , both partitions are ext2 format.

    I have bandwidth and IP Traffic logs being written to custom path /tmp/mnt/8GB/bandwidthlogs and /tmp/mnt/8GB/iptraflogs respectively.

    For syslog I have the log internally set and can view the log (/tmp/var/log/messages). When I check and set the custom path to /tmp/mnt/8GB/log the /tmp/var/log/messages becomes a symlink to my new custom path but the messages file never gets created and I can no longer view log entries via the admin frontend (obviously)

    Directory permissions, ownership and structure are consistent for all 3 logging directories.I have touched the messages file in the custom directory path with no difference, the device has been rebooted whenever a change has occurred.

    All the custom syslog stuff can be un-set and after a re-start the internal logging is there again.

    What am I doing wrong ??

  2. shibby20

    shibby20 Network Guru Member

    in this case "8GB" should be a directory and "log" should be a FILE. If "log" is a directory, then your path should be /tmp/mnt/8GB/log/messages, where "messages" is a file, which syslog will create in "log" directory.
  3. xcoder

    xcoder Networkin' Nut Member

    of course.

    I assumed the custom log path was just to specify the directory that syslogd would create the file in, but if spawning syslogd the options allow you to specifies the full path and filename and I guess the router OS uses this custom path as an argument to spawning syslogd in the backend

    All good,

    Thanks Shibby.
  4. OldTimeCoder

    OldTimeCoder Addicted to LI Member

    There is a limitation on the log path ....

    Running Tomato Firmware v1.28.7483 MIPSR2-Toastman-RT K26 USB VPN
    on an E3000 with a 2 GB Kingston USB flash drive
    [FONT=courier new]---  0---|--- 10---|--- 20---|--- 30---|--- 40---|--- 50[/FONT]
    [FONT=courier new]123456789|123456789|123456789|123456789|123456789|123456[/FONT]
    [FONT=courier new]\\WinSrv\USB_Store\Logging\ThisIsTheRouterLogDir  Windows Path[/FONT]
    [FONT=courier new]/tmp/mnt/USB_Store/Logging/ThisIsTheRouterLogDir  TomatoUSB Path[/FONT]
    [FONT=courier new]                                    /[/FONT]
    [FONT=courier new]/tmp/mnt/USB_Store/Logging/ThisI  <== Oops, looks like only 32 character long[/FONT]
    [FONT=courier new]                              |    \[/FONT]
    [FONT=courier new]123456789|123456789|123456789|123456789|123456789|123456[/FONT]
    [FONT=courier new]---  0---|--- 10---|--- 20---|--- 30---|--- 40---|--- 50[/FONT]
    And I also am having problems with getting it to "stick"

    /s/ BezantSoft
  5. tido

    tido Networkin' Nut Member

    Has anyone figured this out? Custom path set to: "/tmp/mnt/optware/bw-history/", but when viewing the directory from a ssh connection, it is indeed empty. Is there any permission settings which need to be set?

Share This Page