File: srg.conf

package info (click to toggle)
srg 1.3.5-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,956 kB
  • ctags: 776
  • sloc: sh: 9,073; cpp: 3,383; ansic: 563; makefile: 74; php: 57; yacc: 35; lex: 30
file content (129 lines) | stat: -rw-r--r-- 4,137 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
##### SRG Example Configuration File #####

# Squid log file to process
# 	Defaults to access.log in the srg directory.
# e.g. log_file "/usr/local/squid/logs/access.log"

# Directory to output HTML files to.
# 	Defaults to ./srg_reports.
# e.g. output_dir "/var/www/srg_reports"

# URL that the following directory is accessible at (no servername)
#      Defaults to /srg_reports/
output_url "/srg_reports/"

# Directory containing required resources for SRG
#   Defaults to /usr/local/share/srg
# resource_dir "/usr/local/share/srg"

# Title for use in HTML headers
# 	Defaults to "SRG - Squid Log Analysis"
# e.g. title "SRG - Squid Log Analysis"

# Group reports by "U" for user, "A" for address or "S" for subnet
# 	Default is no grouping
# e.g. groupby "U"

# The netmask to be used when grouping by subnet
# 	Disabled by default
# e.g. groupbynetmask "255.255.255.0"

# Set start and end times to create logs for.
# 	Default is all entries in log file, regardless of timestamp
# e.g. time_period "17 Jun 2002 10:43-18 Jun 2002 10:43"

# PHP Header file to include with reports. This forces srg to create PHP files.
# Also, HTML headers will not be automatically created if this option is set.
#	   Default: header.php from resource_dir is copied to output_dir
# e.g. phpheader "/usr/local/header.php"

# PHP Footer file to include with reports. This forces srg to create PHP files.
# Also, HTML footers will not be automatically created if this option is set.
#	   Default: footer.php from resource_dir is copied to output_dir
# e.g. phpfooter "/usr/local/footer.php"

# Maximum age (in days) of a report. Reports older than this will be removed.
# Typically you would set this option via the -m command line option in your
# cron scripts rather than in this file.
#      Default is 0, i.e. disabled
# e.g. max_age 30


#### Client Filter rules ####
# Filter by... (Must be used in conjunction with filter criteria)
#	Default is to not filter
# e.g. 	for ip filtering: filterby "BY_IP"
#	for user filtering: filterby "BY_USER"
#	for subnet filtering: filterby "BY_SUBNET"

# Criteria for filtering
#	Disabled by default
# e.g.	for ip filtering: filtercrit "192.168.250.2"
#	for user filtering: filtercrit "username1"
#	for subnet filtering: filtercrit "255.255.255.0"



#### Destination Filter rules ####
#
# File containing destination site filter entries. Any request for a site
# matching an entry in this file will be ignored. See filtered_sites in the
# examples directory for a description of the required format.
#   Default: not set.
# e.g. destinationsitefilter_file "/etc/srg/filtered_sites"



#### Misc options ####
# Show debug information
#	Disabled by default
# e.g. debug true

# Report verbosely
#	Disabled by default
#	Note: This is automatically enabled if the debug option is set
# e.g. verbose true

# Include time values in HTML reports
#	Disabled by default
# e.g. show_times true

# Include "transfer rate" values in HTML reports
#	Disabled by default
# e.g. show_rates true

# When show_hosts is true, this will perform DNS lookups on
# hostnames that are expressed as IP addresses.
#	Disabled by default
# e.g. lookup_hosts true

# If no username is present in the squid logs try and convert the 
# client IP address to a username using the following file.
#
# e.g. iptouser_file "/etc/srg/ip2user"

# If a username doesn't exist, show the IP address instead
# If this is not set, the line is not included in the report.
#	Disabled by default
# e.g. nonameexists_showip true

# If a user only has denied hits, don't show them
# e.g. dontshow_onlydeniedusers true

# Don't generate the site report
#  Disabled by default
# e.g. disable_sitereport true

# Use PHP authentication. Requires the PHP header to be set, and for the following
#	functions to be created within it:
#		function can_view($string_username)
#		function report_error($string_errormessage)
# e.g. php_authentication true

# Enable column sorting via Javascript
#  Disabled by default
# eg. sort_columns true

# Exclude sites/users with less than this number of requests from the report
#  Disabled by default
# eg. minimum_connects 10