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