SOLVED: SARG: "View Report" shows no report



  • Hi all,
    i run into an issue with the SARG component. Unfortunatly i could not find any solutions for my issue.

    From the UI i get this error message, when i try to view a report:

    Error: Could not find report index file.
    Check and save sarg settings and try to force sarg schedule.
    

    I run the diagnostic command and as far as i would interpret SARG founds the squid log and processed it.

    $ export LC_ALL=C && sarg -x
    SARG: Init
    SARG: Loading configuration from /usr/local/etc/sarg/sarg.conf
    SARG: Chaining IP resolving module "dns"
    SARG: Loading exclude host file from: /usr/pbi/sarg-i386/etc/sarg/exclude_hosts.conf
    SARG: Loading exclude file from: /usr/pbi/sarg-i386/etc/sarg/exclude_users.conf
    SARG: Reading host alias file "/usr/pbi/sarg-i386/etc/sarg/hostalias"
    SARG: List of host names to alias:
    SARG: Parameters:
    SARG:           Hostname or IP address (-a) = 
    SARG:                    Useragent log (-b) = 
    SARG:                     Exclude file (-c) = /usr/pbi/sarg-i386/etc/sarg/exclude_hosts.conf
    SARG:                  Date from-until (-d) = 
    SARG:    Email address to send reports (-e) = 
    SARG:                      Config file (-f) = /usr/local/etc/sarg/sarg.conf
    SARG:                      Date format (-g) = Europe (dd/mm/yyyy)
    SARG:                        IP report (-i) = No
    SARG:             Keep temporary files (-k) = No
    SARG:                        Input log (-l) = /var/squid/logs/access.log
    SARG:               Resolve IP Address (-n) = Yes
    SARG:                       Output dir (-o) = /usr/local/sarg-reports/
    SARG: Use Ip Address instead of userid (-p) = Yes
    SARG:                    Accessed site (-s) = 
    SARG:                             Time (-t) = 
    SARG:                             User (-u) = 
    SARG:                    Temporary dir (-w) = /tmp/sarg
    SARG:                   Debug messages (-x) = Yes
    SARG:                 Process messages (-z) = No
    SARG:  Previous reports to keep (--lastlog) = 0
    SARG: 
    SARG: sarg version: 2.3.9 Sep-21-2014
    SARG: Reading access log file: /var/squid/logs/access.log
    SARG: Records in file: 993, reading: 0.00%
    SARG:    Records read: 993, written: 993, excluded: 0
    SARG: Squid log format
    SARG: Period: 04 Jul 2015
    SARG: Sorting log /tmp/sarg/0.user_unsort
    SARG: Making file: /tmp/sarg/0
    SARG: Sorting log /tmp/sarg/1.user_unsort
    SARG: Making file: /tmp/sarg/1
    SARG: Sorting log /tmp/sarg/2.user_unsort
    SARG: Making file: /tmp/sarg/2
    SARG: Sorting log /tmp/sarg/3.user_unsort
    SARG: Making file: /tmp/sarg/3
    SARG: Sorting log /tmp/sarg/4.user_unsort
    SARG: Making file: /tmp/sarg/4
    SARG: Sorting file: /tmp/sarg/0.utmp
    SARG: Making report: 192.168.2.17
    SARG: Sorting file: /tmp/sarg/1.utmp
    SARG: Making report: 192.168.2.18
    SARG: Sorting file: /tmp/sarg/2.utmp
    SARG: Making report: 192.168.2.33
    SARG: Sorting file: /tmp/sarg/3.utmp
    SARG: Making report: 192.168.2.36
    SARG: Sorting file: /tmp/sarg/4.utmp
    SARG: Making report: 192.168.2.34
    SARG: Making index.html
    SARG: Successful report generated on /usr/local/sarg-reports/04Jul2015-04Jul2015
    SARG: Purging temporary file sarg-general
    SARG: End
    SARG: Records in file: 993, reading: 100.00%
    

    After executing the previous command I run:

    $ ls /usr/local/sarg-reports/
    

    and the folder is empty. Is there something I missed?
    Any help would be appreciated :-)

    best regards Tobias

    UPDATE:
    I could solve my issue with this post:
    https://forum.pfsense.org/index.php?topic=91142.msg504761#msg504761