datafile FILE
Save the report results in a file to populate some database.
Default is none
.
datafile_delimiter CHAR
ASCII character to use as a field separator in datafile.
Default is ";"
datafile_fields TEXT
Which data fields must be in datafile
Availbale values: user;date;time;url;connect;bytes;in_cache;out_cache;elapsed.
By default, all values are included.
You will get a file containing data like this:
10.1.10.103;03/11/2015;21:51:41;*ytimg.com;1;65812;0;65812;59736;
10.1.10.103;08/11/2015;17:27:53;*adblockplus.org;10;1421724;0;1421724;1154388;
10.1.10.103;05/11/2015;07:11:22;*gmail.com;1;4896;0;4896;44354;
10.1.10.103;06/11/2015;20:45:55;*googlevideo.com;3126;2703534477;0;2703534477;2419271;
10.1.10.103;08/11/2015;22:46:22;*hotmail.com;437;1192786;0;1192786;556950198;
10.1.10.103;08/11/2015;13:53:53;*msn.com;8;39700;0;39700;426973;
..and so on for every user for specified period.
datafile_url ( ip | name )
Saves the URL as ip or name in datafile
Default is ip
.
parsed_output_log DIRECTORY
Saves the processed log in a sarg format after parsing the squid log file. This is a way to dump all of the data structures out, after parsing from the logs (presumably this data will be much smaller than the log files themselves), and pull them back in for later processing and merging with data from previous logs.
Example of a log file name: sarg-11112015_0015-12112015_0015.log.gz
. It represents a date, month, year, hour and minute of a first log record and the same data for the last one.
Note that if you specify some directory to save logs, the report will be created anyway according to your sarg.conf
file or command line options.
Default is none
(do not save).
parsed_output_log_compress ( /bin/gzip | /usr/bin/bzip2 | nocompress )
Command to run to compress sarg parsed output log. It may contain options (such as -f to overwrite existing target file). The name of the file to compress is provided at the end of this command line. Don't forget to quote things appropriately.
Default is /bin/gzip