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

Standard format on web usage log?

Discussion in 'Tomato Firmware' started by JaBoKa, Feb 11, 2014.

  1. JaBoKa

    JaBoKa Reformed Router Member

    I did not manage to find any script / program that can analyze log files from Web Usage.
    What I want out is a graphical representation such as the SARG does. They are a little too simple :)

    Why not create logfiles in standard format (Apache/Squid)?

    Regads, J
  2. shibby20

    shibby20 Network Guru Member

    untouched datas:
    cat /proc/webmon_recent_domains

    and with few conversions
    cat /proc/webmon_recent_domains | awk '{t=$1; "date -d @\""t"\" \"+%Y-%m-%d %H:%M:%S\"" | getline d;print d"\t"$2"\t"$3 }'
    koitsu likes this.
  3. JaBoKa

    JaBoKa Reformed Router Member

    Thanks Shibby.

    Anyone knows some script (perl, shell, php) for creating web usage stat in any form (html, xml, raw..) from this log file format?

  4. JaBoKa

    JaBoKa Reformed Router Member

    Last edited: Feb 13, 2014
  5. jerrm

    jerrm Network Guru Member

    There isn't much to do with the logs more than what the GUI displays. Only the last visit to a site is available, no history is maiained. To get anything meaningful either set up a transparent proxy or look at urlsnarf.

Share This Page