Menu

Logs options

logs (1)
Evgeniy Yakushev

access_log FILE

A path to proxy log file.
If the file globbing was compiled in, the file name can contain shell wildcards such as * and ?. Tilde expension and variable expension are not supported. Special characters can be escaped with a backslash.
Change it manually according to your proxy configuration or provide it in command line with -l option.

useragent_log FILE

A path to useragent log file. Set to none by default,
Wildcard are also supported, same as for access.log option
Change it manually according to your proxy configuration or provide it in command line with -b option.

dansguardian_conf FILE

A path to dansguardian log file. Set to none by default.
If path is set, sarg reads dansguardian configuration and generates reports from DansGuardian logs. A link to this report will appear in topuser report.

dansguardian_filter_out_date (on|off)

This option replaces dansguardian_ignore_date whose name was not appropriate with respect to its action.
Note the change of parameter value compared with the old option.
off use the record even if its date is outside of the range found in the input log file.
on use the record only if its date is in the range found in the input log file.
Default is on.

squidguard_conf FILE

A path to squidGuard.conf file. Generate reports from SquidGuard logs. You can use sarg -L filename to use an alternate squidGuard log.
Default is none.

redirector_log FILE

The location of the web proxy redirector log such as one created by squidGuard or Rejik. The option may be repeated up to 64 times to read multiple files.If this option is specified, it takes precedence over squidguard_conf.
If you change the configuration of squidguard, you should also make changes to parameters of this options. So if you want to use all redirector logs, it is better to comment redirector_log and use squidguard_conf option.
The command line option -L override this option.
Example:

redirector_log /var/log/squidGuard/audio-video.log 
redirector_log /var/log/squidGuard/hacking.log 
redirector_log /var/log/squidGuard/proxy.log

redirector_filter_out_date (on|off)

This option replaces squidguard_ignore_date and redirector_ignore_date whose names were not appropriate with respect to their action.
Note the change of parameter value compared with the old options.
off use the record even if its date is outside of the range found in the input log file.
on use the record only if its date is in the range found in the input log file.
Default is on.

redirector_log_format TEXT

Format string for web proxy redirector logs. This option was named squidguard_log_format before sarg 2.3.
REJIK #year#-#mon#-#day# #hour# #list#:#tmp# #ip# #user# #tmp#/#tmp#/#url#/#end#
SQUIDGUARD #year#-#mon#-#day# #hour# #tmp#/#list#/#tmp# #url# #ip#/#tmp# #user# #end#

Default is #year#-#mon#-#day# #hour# #tmp#/#list#/#tmp# #url# #ip#/#tmp# #user# #end#.


Related

Wiki: Configuration options
Wiki: Table of content

MongoDB Logo MongoDB