]>
Commit | Line | Data |
---|---|---|
25697a35 GS |
1 | # sarg.conf |
2 | # | |
25697a35 GS |
3 | # TAG: access_log file |
4 | # Where is the access.log file | |
5 | # sarg -l file | |
6 | # | |
7 | #access_log /usr/local/squid/var/logs/access.log | |
8 | ||
9 | # TAG: graphs yes|no | |
10 | # Use graphics where is possible. | |
11 | # graph_days_bytes_bar_color blue|green|yellow|orange|brown|red | |
12 | # | |
13 | #graphs yes | |
14 | #graph_days_bytes_bar_color orange | |
15 | ||
3becf85c FM |
16 | # TAG: graph_font |
17 | # The full path to the TTF font file to use to create the graphs. It is required | |
18 | # if graphs is set to yes. | |
19 | # | |
20 | #graph_font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf | |
21 | ||
25697a35 GS |
22 | # TAG: title |
23 | # Especify the title for html page. | |
24 | # | |
25 | #title "Squid User Access Reports" | |
26 | ||
27 | # TAG: font_face | |
28 | # Especify the font for html page. | |
29 | # | |
30 | #font_face Tahoma,Verdana,Arial | |
31 | ||
32 | # TAG: header_color | |
33 | # Especify the header color | |
34 | # | |
35 | #header_color darkblue | |
36 | ||
37 | # TAG: header_bgcolor | |
38 | # Especify the header bgcolor | |
39 | # | |
40 | #header_bgcolor blanchedalmond | |
41 | ||
42 | # TAG: font_size | |
43 | # Especify the text font size | |
44 | # | |
45 | #font_size 9px | |
46 | ||
47 | # TAG: header_font_size | |
48 | # Especify the header font size | |
49 | # | |
50 | #header_font_size 9px | |
51 | ||
52 | # TAG: title_font_size | |
53 | # Especify the title font size | |
54 | # | |
55 | #title_font_size 11px | |
56 | ||
57 | # TAG: background_color | |
58 | # TAG: background_color | |
59 | # Html page background color | |
60 | # | |
61 | # background_color white | |
62 | ||
63 | # TAG: text_color | |
64 | # Html page text color | |
65 | # | |
66 | #text_color #000000 | |
67 | ||
68 | # TAG: text_bgcolor | |
69 | # Html page text background color | |
70 | # | |
71 | #text_bgcolor lavender | |
72 | ||
73 | # TAG: title_color | |
74 | # Html page title color | |
75 | # | |
76 | #title_color green | |
77 | ||
78 | # TAG: logo_image | |
79 | # Html page logo. | |
80 | # | |
81 | #logo_image none | |
82 | ||
83 | # TAG: logo_text | |
84 | # Html page logo text. | |
85 | # | |
86 | #logo_text "" | |
87 | ||
88 | # TAG: logo_text_color | |
89 | # Html page logo texti color. | |
90 | # | |
91 | #logo_text_color #000000 | |
92 | ||
93 | # TAG: logo_image_size | |
129e6ea5 | 94 | # Html page logo image size. |
25697a35 GS |
95 | # width height |
96 | # | |
97 | #image_size 80 45 | |
98 | ||
99 | # TAG: background_image | |
100 | # Html page background image | |
101 | # | |
102 | #background_image none | |
103 | ||
104 | # TAG: password | |
491b862f GS |
105 | # User password file used by Squid authentication scheme |
106 | # If used, generate reports just for that users. | |
25697a35 GS |
107 | # |
108 | #password none | |
109 | ||
110 | # TAG: temporary_dir | |
111 | # Temporary directory name for work files | |
112 | # sarg -w dir | |
113 | # | |
114 | #temporary_dir /tmp | |
115 | ||
116 | # TAG: output_dir | |
117 | # The reports will be saved in that directory | |
118 | # sarg -o dir | |
119 | # | |
120 | #output_dir /var/www/html/squid-reports | |
121 | ||
122 | # TAG: output_email | |
123 | # Email address to send the reports. If you use this tag, no html reports will be generated. | |
124 | # sarg -e email | |
125 | # | |
126 | #output_email none | |
127 | ||
128 | # TAG: resolve_ip yes/no | |
129 | # Convert ip address to dns name | |
130 | # sarg -n | |
131 | #resolve_ip no | |
132 | ||
133 | # TAG: user_ip yes/no | |
134 | # Use Ip Address instead userid in reports. | |
135 | # sarg -p | |
136 | #user_ip no | |
137 | ||
138 | # TAG: topuser_sort_field field normal/reverse | |
139 | # Sort field for the Topuser Report. | |
140 | # Allowed fields: USER CONNECT BYTES TIME | |
141 | # | |
142 | #topuser_sort_field BYTES reverse | |
143 | ||
144 | # TAG: user_sort_field field normal/reverse | |
145 | # Sort field for the User Report. | |
146 | # Allowed fields: SITE CONNECT BYTES TIME | |
147 | # | |
148 | #user_sort_field BYTES reverse | |
149 | ||
150 | # TAG: exclude_users file | |
151 | # users within the file will be excluded from reports. | |
152 | # you can use indexonly to have only index.html file. | |
153 | # | |
154 | #exclude_users none | |
155 | ||
156 | # TAG: exclude_hosts file | |
157 | # Hosts, domains or subnets will be excluded from reports. | |
158 | # | |
43f18f45 FM |
159 | # Eg.: 192.168.10.10 - exclude ip address only |
160 | # 192.168.10.0/24 - exclude full C class | |
161 | # s1.acme.foo - exclude hostname only | |
162 | # *.acme.foo - exclude full domain name | |
25697a35 GS |
163 | # |
164 | #exclude_hosts none | |
165 | ||
166 | # TAG: useragent_log file | |
491b862f | 167 | # useragent.log file patch to generate useragent report. |
25697a35 GS |
168 | # |
169 | #useragent_log none | |
170 | ||
171 | # TAG: date_format | |
172 | # Date format in reports: e (European=dd/mm/yy), u (American=mm/dd/yy), w (Weekly=yy.ww) | |
129e6ea5 | 173 | # |
25697a35 GS |
174 | #date_format u |
175 | ||
176 | # TAG: per_user_limit file MB | |
177 | # Saves userid on file if download exceed n MB. | |
178 | # This option allow you to disable user access if user exceed a download limit. | |
129e6ea5 | 179 | # |
25697a35 GS |
180 | #per_user_limit none |
181 | ||
182 | # TAG: lastlog n | |
183 | # How many reports files must be keept in reports directory. | |
184 | # The oldest report file will be automatically removed. | |
185 | # 0 - no limit. | |
186 | # | |
187 | #lastlog 0 | |
188 | ||
189 | # TAG: remove_temp_files yes | |
190 | # Remove temporary files: geral, usuarios, top, periodo from root report directory. | |
191 | # | |
192 | #remove_temp_files yes | |
193 | ||
194 | # TAG: index yes|no|only | |
195 | # Generate the main index.html. | |
196 | # only - generate only the main index.html | |
197 | # | |
198 | #index yes | |
199 | ||
491b862f GS |
200 | # TAG: index_tree date|file |
201 | # How to generate the index. | |
202 | # | |
203 | #index_tree file | |
204 | ||
9aaa3361 FM |
205 | # TAG: index_fields |
206 | # The columns to show in the index of the reports | |
207 | # Columns are: dirsize | |
208 | # | |
209 | #index_fields dirsize | |
210 | ||
25697a35 GS |
211 | # TAG: overwrite_report yes|no |
212 | # yes - if report date already exist then will be overwrited. | |
213 | # no - if report date already exist then will be renamed to filename.n, filename.n+1 | |
214 | # | |
215 | #overwrite_report no | |
216 | ||
217 | # TAG: records_without_userid ignore|ip|everybody | |
218 | # What can I do with records without user id (no authentication) in access.log file ? | |
219 | # | |
220 | # ignore - This record will be ignored. | |
221 | # ip - Use ip address instead. (default) | |
222 | # everybody - Use "everybody" instead. | |
223 | # | |
224 | #records_without_userid ip | |
225 | ||
226 | # TAG: use_comma no|yes | |
227 | # Use comma instead point in reports. | |
228 | # Eg.: use_comma yes => 23,450,110 | |
229 | # use_comma no => 23.450.110 | |
230 | # | |
231 | #use_comma no | |
232 | ||
66d35350 FM |
233 | # TAG: mail_utility |
234 | # Mail command to use to send reports via SMTP. Sarg calls it like this: | |
235 | # mail_utility -s "SARG report, date" "output_email" <"mail_content" | |
236 | # | |
237 | # Therefore, it is possible to add more arguments to the command by specifying them | |
238 | # here. | |
239 | # | |
240 | # If you need too, you can use a shell script to process the content of /dev/stdin | |
241 | # (/dev/stdin is the mail_content passed by sarg to the script) and call whatever | |
242 | # command you like. It is not limited to mailing the report via SMTP. | |
243 | # | |
244 | # Don't forget to quote the command if necessary (i.e. if the path contains | |
245 | # characters that must be quoted). | |
25697a35 GS |
246 | # |
247 | #mail_utility mailx | |
248 | ||
249 | # TAG: topsites_num n | |
250 | # How many sites in topsites report. | |
251 | # | |
252 | #topsites_num 100 | |
253 | ||
70cab1a4 | 254 | # TAG: topsites_sort_order CONNECT|BYTES|TIME A|D |
25697a35 GS |
255 | # Sort for topsites report, where A=Ascendent, D=Descendent |
256 | # | |
257 | #topsites_sort_order CONNECT D | |
258 | ||
259 | # TAG: index_sort_order A/D | |
260 | # Sort for index.html, where A=Ascendent, D=Descendent | |
261 | # | |
262 | #index_sort_order D | |
263 | ||
264 | # TAG: exclude_codes file | |
265 | # Ignore records with these codes. Eg.: NONE/400 | |
6cdbb02f FM |
266 | # Write one code per line. Lines starting with a # are ignored. |
267 | # Only codes matching exactly one of the line is rejected. The | |
268 | # comparison is not case sensitive. | |
25697a35 GS |
269 | # |
270 | #exclude_codes /usr/local/sarg/exclude_codes | |
271 | ||
272 | # TAG: replace_index string | |
273 | # Replace "index.html" in the main index file with this string | |
129e6ea5 | 274 | # If null "index.html" is used |
25697a35 GS |
275 | # |
276 | #replace_index <?php echo str_replace(".", "_", $REMOTE_ADDR); echo ".html"; ?> | |
277 | ||
278 | # TAG: max_elapsed milliseconds | |
279 | # If elapsed time is recorded in log is greater than max_elapsed use 0 for elapsed time. | |
129e6ea5 | 280 | # Use 0 for no checking |
25697a35 | 281 | # |
d6e703cc | 282 | #max_elapsed 28800000 |
25697a35 | 283 | # 8 Hours |
25697a35 GS |
284 | |
285 | # TAG: report_type type | |
286 | # What kind of reports to generate. | |
491b862f GS |
287 | # topusers - users, sites, times, bytes, connects, links to accessed sites, etc |
288 | # topsites - site, connect and bytes report | |
289 | # sites_users - users and sites report | |
290 | # users_sites - accessed sites by the user report | |
291 | # date_time - bytes used per day and hour report | |
292 | # denied - denied sites with full URL report | |
293 | # auth_failures - autentication failures report | |
294 | # site_user_time_date - sites, dates, times and bytes report | |
295 | # downloads - downloads per user report | |
25697a35 | 296 | # |
129e6ea5 | 297 | # Eg.: report_type topsites denied |
25697a35 | 298 | # |
491b862f | 299 | #report_type topusers topsites sites_users users_sites date_time denied auth_failures site_user_time_date downloads |
25697a35 GS |
300 | |
301 | # TAG: usertab filename | |
302 | # You can change the "userid" or the "ip address" to be a real user name on the reports. | |
d8a1e9f3 FM |
303 | # If resolve_ip is active, the ip address is resolved before being looked up into this |
304 | # file. That is, if you want to map the ip address, be sure to set resolv_ip to no or | |
305 | # the resolved name will be looked into the file instead of the ip address. Note that | |
306 | # it can be used to resolve any ip address known to the dns and then map the unresolved | |
307 | # ip addresses to a name found in the usertab file. | |
25697a35 GS |
308 | # Table syntax: |
309 | # userid name or ip address name | |
310 | # Eg: | |
311 | # SirIsaac Isaac Newton | |
312 | # vinci Leonardo da Vinci | |
313 | # 192.168.10.1 Karol Wojtyla | |
d8a1e9f3 | 314 | # |
25697a35 | 315 | # Each line must be terminated with '\n' |
e3af0ae9 PO |
316 | # If usertab have value "ldap" (case ignoring), user names |
317 | # will be taken from LDAP server. This method as approaches for reception | |
318 | # of usernames from Active Didectory | |
d8a1e9f3 | 319 | # |
25697a35 | 320 | #usertab none |
d8a1e9f3 | 321 | |
e3af0ae9 PO |
322 | # TAG: LDAPHost hostname |
323 | # FQDN or IP address of host with LDAP service or AD DC | |
324 | # default is '127.0.0.1' | |
325 | #LDAPHost 127.0.0.1 | |
326 | ||
327 | # TAG: LDAPPort port | |
328 | # LDAP service port number | |
329 | # default is '389' | |
330 | #LDAPPort 389 | |
331 | ||
332 | # TAG: LDAPBindDN CN=username,OU=group,DC=mydomain,DC=com | |
333 | # DN of LDAP user, who is authorized to read user's names from LDAP base | |
334 | # default is empty line | |
335 | #LDAPBindDN cn=proxy,dc=mydomain,dc=local | |
336 | ||
337 | # TAG: LDAPBindPW secret | |
338 | # Password of DN, who is authorized to read user's names from LDAP base | |
339 | # default is empty line | |
340 | #LDAPBindPW secret | |
341 | ||
342 | # TAG: LDAPBaseSearch OU=users,DC=mydomain,DC=com | |
343 | # LDAP search base | |
344 | # default is empty line | |
345 | #LDAPBaseSearch ou=users,dc=mydomain,dc=local | |
346 | ||
1b048c43 | 347 | # TAG: LDAPFilterSearch (uid=%s) |
e3af0ae9 PO |
348 | # User search filter by user's logins in LDAP |
349 | # First founded record will be used | |
350 | # %s - will be changed to userlogins from access.log file | |
1b048c43 FM |
351 | # filter string can have up to 5 '%s' tags |
352 | # default value is '(uid=%s)' | |
353 | #LDAPFilterSearch (uid=%s) | |
e3af0ae9 PO |
354 | |
355 | # TAG: LDAPTargetAttr attributename | |
356 | # Name of the attribute containing a name of the user | |
357 | # default value is 'cn' | |
358 | #LDAPTargetAttr cn | |
25697a35 GS |
359 | |
360 | # TAG: long_url yes|no | |
361 | # If yes, the full url is showed in report. | |
362 | # If no, only the site will be showed | |
363 | # | |
364 | # YES option generate very big sort files and reports. | |
365 | # | |
366 | #long_url no | |
367 | ||
368 | # TAG: date_time_by bytes|elap | |
84c9679c | 369 | # Date/Time reports show the downloaded volume or the elapsed time or both. |
25697a35 | 370 | # |
1752e8f8 | 371 | #date_time_by bytes |
25697a35 GS |
372 | |
373 | # TAG: charset name | |
374 | # ISO 8859 is a full series of 10 standardized multilingual single-byte coded (8bit) | |
375 | # graphic character sets for writing in alphabetic languages | |
376 | # You can use the following charsets: | |
377 | # Latin1 - West European | |
129e6ea5 FM |
378 | # Latin2 - East European |
379 | # Latin3 - South European | |
380 | # Latin4 - North European | |
381 | # Cyrillic | |
382 | # Arabic | |
383 | # Greek | |
384 | # Hebrew | |
385 | # Latin5 - Turkish | |
25697a35 GS |
386 | # Latin6 |
387 | # Windows-1251 | |
d6e703cc | 388 | # Japan |
25697a35 | 389 | # Koi8-r |
d6e703cc | 390 | # UTF-8 |
25697a35 GS |
391 | # |
392 | #charset Latin1 | |
393 | ||
394 | # TAG: user_invalid_char "&/" | |
395 | # Records that contain invalid characters in userid will be ignored by Sarg. | |
396 | # | |
397 | #user_invalid_char "&/" | |
398 | ||
399 | # TAG: privacy yes|no | |
400 | # privacy_string "***.***.***.***" | |
401 | # privacy_string_color blue | |
402 | # In some countries the sysadm cannot see the visited sites by a restrictive law. | |
403 | # Using privacy yes the visited url will be changes by privacy_string and the link | |
404 | # will be removed from reports. | |
405 | # | |
406 | #privacy no | |
407 | #privacy_string "***.***.***.***" | |
408 | #privacy_string_color blue | |
409 | ||
410 | # TAG: include_users "user1:user2:...:usern" | |
411 | # Reports will be generated only for listed users. | |
412 | # | |
413 | #include_users none | |
414 | ||
415 | # TAG: exclude_string "string1:string2:...:stringn" | |
416 | # Records from access.log file that contain one of listed strings will be ignored. | |
417 | # | |
418 | #exclude_string none | |
419 | ||
420 | # TAG: show_successful_message yes|no | |
421 | # Shows "Successful report generated on dir" at end of process. | |
422 | # | |
423 | #show_successful_message yes | |
424 | ||
425 | # TAG: show_read_statistics yes|no | |
426 | # Shows some reading statistics. | |
427 | # | |
428 | #show_read_statistics yes | |
429 | ||
430 | # TAG: topuser_fields | |
431 | # Which fields must be in Topuser report. | |
432 | # | |
433 | #topuser_fields NUM DATE_TIME USERID CONNECT BYTES %BYTES IN-CACHE-OUT USED_TIME MILISEC %TIME TOTAL AVERAGE | |
434 | ||
435 | # TAG: user_report_fields | |
436 | # Which fields must be in User report. | |
437 | # | |
438 | #user_report_fields CONNECT BYTES %BYTES IN-CACHE-OUT USED_TIME MILISEC %TIME TOTAL AVERAGE | |
439 | ||
d6e703cc FM |
440 | # TAG: bytes_in_sites_users_report yes|no |
441 | # Bytes field must be in Site & Users Report ? | |
442 | # | |
443 | #bytes_in_sites_users_report no | |
444 | ||
25697a35 GS |
445 | # TAG: topuser_num n |
446 | # How many users in topsites report. 0 = no limit | |
447 | # | |
448 | #topuser_num 0 | |
449 | ||
25697a35 GS |
450 | # TAG: datafile file |
451 | # Save the report results in a file to populate some database | |
452 | # | |
453 | #datafile none | |
25697a35 GS |
454 | |
455 | # TAG: datafile_delimiter ";" | |
456 | # ascii character to use as a field separator in datafile | |
457 | # | |
458 | #datafile_delimiter ";" | |
459 | ||
460 | # TAG: datafile_fields all | |
461 | # Which data fields must be in datafile | |
462 | # user;date;time;url;connect;bytes;in_cache;out_cache;elapsed | |
463 | # | |
464 | #datafile_fields user;date;time;url;connect;bytes;in_cache;out_cache;elapsed | |
465 | ||
491b862f GS |
466 | # TAG: datafile_url ip|name |
467 | # Saves the URL as ip or name in datafile | |
468 | # | |
f84a35a3 | 469 | #datafile_url ip |
491b862f | 470 | |
25697a35 | 471 | # TAG: weekdays |
3bd75b91 | 472 | # The weekdays to take into account ( Sunday->0, Saturday->6 ) |
25697a35 GS |
473 | # Example: |
474 | #weekdays 1-3,5 | |
475 | # Default: | |
476 | #weekdays 0-6 | |
477 | ||
478 | # TAG: hours | |
3bd75b91 | 479 | # The hours to take into account |
25697a35 GS |
480 | # Example: |
481 | #hours 7-12,14,16,18-20 | |
482 | # Default: | |
483 | #hours 0-23 | |
484 | ||
485 | # TAG: dansguardian_conf file | |
486 | # DansGuardian.conf file path | |
487 | # Generate reports from DansGuardian logs. | |
488 | # Use 'none' to disable it. | |
489 | # dansguardian_conf /usr/dansguardian/dansguardian.conf | |
490 | # | |
491 | #dansguardian_conf none | |
492 | ||
64dfb824 FM |
493 | # TAG: dansguardian_filter_out_date on|off |
494 | # This option replaces dansguardian_ignore_date whose name was not appropriate with respect to its action. | |
495 | # Note the change of parameter value compared with the old option. | |
496 | # 'off' use the record even if its date is outside of the range found in the input log file. | |
497 | # 'on' use the record only if its date is in the range found in the input log file. | |
491b862f | 498 | # |
64dfb824 | 499 | #dansguardian_filter_out_date on |
491b862f | 500 | |
25697a35 GS |
501 | # TAG: squidguard_conf file |
502 | # path to squidGuard.conf file | |
503 | # Generate reports from SquidGuard logs. | |
504 | # Use 'none' to disable. | |
491b862f | 505 | # You can use sarg -L filename to use an alternate squidGuard log. |
25697a35 GS |
506 | # squidguard_conf /usr/local/squidGuard/squidGuard.conf |
507 | # | |
508 | #squidguard_conf none | |
509 | ||
1f482a8d FM |
510 | # TAG: redirector_log file |
511 | # the location of the web proxy redirector log such as one created by squidGuard or Rejik. The option | |
512 | # may be repeated up to 64 times to read multiple files. | |
513 | # If this option is specified, it takes precedence over squidguard_conf. | |
514 | # The command line option -L override this option. | |
515 | # | |
516 | #redirector_log /usr/local/squidGuard/var/logs/urls.log | |
517 | ||
64dfb824 FM |
518 | # TAG: redirector_filter_out_date on|off |
519 | # This option replaces squidguard_ignore_date and redirector_ignore_date whose names were not | |
520 | # appropriate with respect to their action. | |
521 | # Note the change of parameter value compared with the old options. | |
522 | # 'off' use the record even if its date is outside of the range found in the input log file. | |
523 | # 'on' use the record only if its date is in the range found in the input log file. | |
491b862f | 524 | # |
64dfb824 | 525 | #redirector_filter_out_date on |
491b862f | 526 | |
1f482a8d FM |
527 | # TAG: redirector_log_format |
528 | # Format string for web proxy redirector logs. | |
529 | # This option was named squidguard_log_format before sarg 2.3. | |
25697a35 GS |
530 | # REJIK #year#-#mon#-#day# #hour# #list#:#tmp# #ip# #user# #tmp#/#tmp#/#url#/#end# |
531 | # SQUIDGUARD #year#-#mon#-#day# #hour# #tmp#/#list#/#tmp#/#tmp#/#url#/#tmp# #ip#/#tmp# #user# #end# | |
1f482a8d | 532 | #redirector_log_format #year#-#mon#-#day# #hour# #tmp#/#list#/#tmp#/#tmp#/#url#/#tmp# #ip#/#tmp# #user# #end# |
25697a35 GS |
533 | |
534 | # TAG: show_sarg_info yes|no | |
535 | # shows sarg information and site path on each report bottom | |
536 | # | |
537 | #show_sarg_info yes | |
538 | ||
539 | # TAG: show_sarg_logo yes|no | |
540 | # shows sarg logo | |
541 | # | |
542 | #show_sarg_logo yes | |
543 | ||
544 | # TAG: parsed_output_log directory | |
545 | # Saves the processed log in a sarg format after parsing the squid log file. | |
129e6ea5 | 546 | # This is a way to dump all of the data structures out, after parsing from |
25697a35 GS |
547 | # the logs (presumably this data will be much smaller than the log files themselves), |
548 | # and pull them back in for later processing and merging with data from previous logs. | |
549 | # | |
550 | #parsed_output_log none | |
551 | ||
491b862f | 552 | # TAG: parsed_output_log_compress /bin/gzip|/usr/bin/bzip2|nocompress |
ff8d5836 FM |
553 | # Command to run to compress sarg parsed output log. It may contain |
554 | # options (such as -f to overwrite existing target file). The name of | |
555 | # the file to compresse is provided at the end of this | |
556 | # command line. Don't forget to quote things appropriately. | |
25697a35 GS |
557 | # |
558 | #parsed_output_log_compress /bin/gzip | |
559 | ||
491b862f | 560 | # TAG: displayed_values bytes|abbreviation |
25697a35 GS |
561 | # how the values will be displayed in reports. |
562 | # eg. bytes - 209.526 | |
563 | # abbreviation - 210K | |
564 | # | |
565 | #displayed_values bytes | |
566 | ||
567 | # Report limits | |
491b862f GS |
568 | # TAG: authfail_report_limit n |
569 | # TAG: denied_report_limit n | |
570 | # TAG: siteusers_report_limit n | |
571 | # TAG: squidguard_report_limit n | |
572 | # TAG: user_report_limit n | |
573 | # TAG: dansguardian_report_limit n | |
574 | # TAG: download_report_limit n | |
25697a35 GS |
575 | # report limits (lines). |
576 | # '0' no limit | |
577 | # | |
578 | #authfail_report_limit 10 | |
579 | #denied_report_limit 10 | |
580 | #siteusers_report_limit 0 | |
581 | #squidguard_report_limit 10 | |
94ff9470 GS |
582 | #dansguardian_report_limit 10 |
583 | #user_report_limit 10 | |
584 | #user_report_limit 50 | |
25697a35 | 585 | |
491b862f | 586 | # TAG: www_document_root dir |
25697a35 GS |
587 | # Where is your Web DocumentRoot |
588 | # Sarg will create sarg-php directory with some PHP modules: | |
589 | # - sarg-squidguard-block.php - add urls from user reports to squidGuard DB | |
590 | # | |
591 | #www_document_root /var/www/html | |
592 | ||
491b862f | 593 | # TAG: block_it module_url |
25697a35 GS |
594 | # This tag allow you to pass urls from user reports to a cgi or php module, |
595 | # to be blocked by some Squid acl | |
596 | # | |
597 | # Eg.: block_it /sarg-php/sarg-block-it.php | |
598 | # sarg-block-it is a php that will append a url to a flat file. | |
599 | # You must change /var/www/html/sarg-php/sarg-block-it to point to your file | |
600 | # in $filename variable, and chown to a httpd owner. | |
601 | # | |
602 | # sarg will pass http://module_url?url=url | |
603 | # | |
604 | #block_it none | |
605 | ||
491b862f | 606 | # TAG: external_css_file path |
d183fb7f FM |
607 | # Provide the path to an external css file to link into the HTML reports instead of |
608 | # the inline css written by sarg when this option is not set. | |
33dc7dec FM |
609 | # |
610 | # In versions prior to 2.3, this used to be an absolute file name to | |
d183fb7f FM |
611 | # a file to include verbatim in each HTML page but, as it takes a lot of |
612 | # space, version 2.3 switched to a link to an external css file. | |
613 | # Therefore, this option must contain the HTTP server path on which a client | |
614 | # browser may find the css file. | |
33dc7dec | 615 | # |
25697a35 | 616 | # Sarg use theses style classes: |
3a422572 | 617 | # .logo logo class |
25697a35 | 618 | # .info sarg information class, align=center |
3a422572 FM |
619 | # .title_c title class, align=center |
620 | # .header_c header class, align:center | |
621 | # .header_l header class, align:left | |
622 | # .header_r header class, align:right | |
623 | # .text text class, align:right | |
25697a35 | 624 | # .data table text class, align:right |
3a422572 FM |
625 | # .data2 table text class, align:left |
626 | # .data3 table text class, align:center | |
25697a35 GS |
627 | # .link link class |
628 | # | |
d183fb7f FM |
629 | # Sarg can be instructed to output the internal css it inline |
630 | # into the reports with this command: | |
631 | # | |
632 | # sarg --css | |
633 | # | |
634 | # You can redirect the output to a file of your choice and edit | |
635 | # it to your liking. | |
25697a35 GS |
636 | # |
637 | #external_css_file none | |
638 | ||
491b862f | 639 | # TAG: user_authentication yes|no |
25697a35 | 640 | # Allow user authentication in User Reports using .htaccess |
129e6ea5 | 641 | # Parameters: |
d5d021c5 FM |
642 | # AuthUserTemplateFile - The template to use to create the |
643 | # .htaccess file. In the template, %u is replaced by the | |
644 | # user's ID for which the report is generated. The path of the | |
645 | # template is relative to the directory containing sarg | |
646 | # configuration file. | |
25697a35 GS |
647 | # |
648 | # user_authentication no | |
d5d021c5 | 649 | # AuthUserTemplateFile sarg_htaccess |
25697a35 | 650 | |
491b862f | 651 | # TAG: download_suffix "suffix,suffix,...,suffix" |
25697a35 | 652 | # file suffix to be considered as "download" in Download report. |
129e6ea5 | 653 | # Use 'none' to disable. |
25697a35 | 654 | # |
94ff9470 | 655 | #download_suffix "zip,arj,bzip,gz,ace,doc,iso,adt,bin,cab,com,dot,drv$,lha,lzh,mdb,mso,ppt,rtf,src,shs,sys,exe,dll,mp3,avi,mpg,mpeg" |
25697a35 | 656 | |
491b862f | 657 | # TAG: ulimit n |
25697a35 GS |
658 | # The maximum number of open file descriptors to avoid "Too many open files" error message. |
659 | # You need to run sarg as root to use ulimit tag. | |
d6e703cc | 660 | # If you run sarg with a low privilege user, set to 'none' to disable ulimit |
25697a35 GS |
661 | # |
662 | #ulimit 20000 | |
663 | ||
491b862f GS |
664 | # TAG: ntlm_user_format username|domainname+username |
665 | # NTLM users format. | |
25697a35 GS |
666 | # |
667 | #ntlm_user_format domainname+username | |
491b862f GS |
668 | |
669 | # TAG: realtime_refresh_time num sec | |
670 | # How many time to auto refresh the realtime report | |
671 | # 0 = disable | |
672 | # | |
673 | # realtime_refresh_time 3 | |
674 | ||
675 | # TAG: realtime_access_log_lines num | |
129e6ea5 | 676 | # How many last lines to get from access.log file |
491b862f GS |
677 | # |
678 | # realtime_access_log_lines 1000 | |
679 | ||
680 | # TAG: realtime_types: GET,PUT,CONNECT,ICP_QUERY,POST | |
681 | # Which records must be in realtime report. | |
682 | # | |
129e6ea5 | 683 | # realtime_types GET,PUT,CONNECT |
491b862f GS |
684 | |
685 | # TAG: realtime_unauthenticated_records: ignore|show | |
686 | # What to do with unauthenticated records in realtime report. | |
687 | # | |
d6e703cc | 688 | # realtime_unauthenticated_records: show |
491b862f GS |
689 | |
690 | # TAG: byte_cost value no_cost_limit | |
691 | # Cost per byte. | |
692 | # Eg. byte_cost 0.01 100000000 | |
693 | # per byte cost = 0.01 | |
694 | # bytes with no cost = 100 Mb | |
695 | # 0 = disable | |
696 | # | |
697 | # byte_cost 0.01 50000000 | |
d6e703cc FM |
698 | |
699 | # TAG: squid24 on|off | |
700 | # Compatilibity with squid version <= 2.4 when using emulate_http_log on | |
701 | # | |
702 | # squid24 off | |
ea275279 FM |
703 | |
704 | # TAG: sorttable path | |
418cd63d FM |
705 | # The path to a javascript script to dynamically sort the tables. |
706 | # The path is the link a browser must follow to find the script. For instance, | |
707 | # it may be http://www.myproxy.org/sorttable.js or just /sorttable.js if the script | |
708 | # is at the root of your web site. | |
2e96438d FM |
709 | # |
710 | # If the path starts with "../" then it is assumed to be a relative | |
711 | # path and sarg adds as many "../" as necessary to locate the js script from | |
418cd63d | 712 | # the output directory. Therefore, ../../sorttable.js links to the javascript |
2e96438d FM |
713 | # one level above output_dir. |
714 | # | |
ea275279 FM |
715 | # If this entry is set, each sortable table will have the "sortable" class set. |
716 | # You may have a look at http://www.kryogenix.org/code/browser/sorttable/ | |
2e96438d | 717 | # for the implementation on which sarg is based. |
ea275279 FM |
718 | # |
719 | # sorttable /sorttable.js |