]> git.ipfire.org Git - thirdparty/sarg.git/blob - sarg.conf
This commit was generated by cvs2svn to compensate for changes in r2,
[thirdparty/sarg.git] / sarg.conf
1 # sarg.conf
2 #
3 # TAG: language
4 # Available languages:
5 # Bulgarian_windows1251
6 # Catalan
7 # Czech
8 # Dutch
9 # English
10 # French
11 # German
12 # Greek
13 # Hungarian
14 # Indonesian
15 # Italian
16 # Japanese
17 # Latvian
18 # Polish
19 # Portuguese
20 # Romanian
21 # Russian_koi8
22 # Russian_windows1251
23 # Serbian
24 # Slovak
25 # Spanish
26 # Turkish
27 #
28 #language English
29
30 # TAG: access_log file
31 # Where is the access.log file
32 # sarg -l file
33 #
34 #access_log /usr/local/squid/var/logs/access.log
35
36 # TAG: graphs yes|no
37 # Use graphics where is possible.
38 # graph_days_bytes_bar_color blue|green|yellow|orange|brown|red
39 #
40 #graphs yes
41 #graph_days_bytes_bar_color orange
42
43 # TAG: title
44 # Especify the title for html page.
45 #
46 #title "Squid User Access Reports"
47
48 # TAG: font_face
49 # Especify the font for html page.
50 #
51 #font_face Tahoma,Verdana,Arial
52
53 # TAG: header_color
54 # Especify the header color
55 #
56 #header_color darkblue
57
58 # TAG: header_bgcolor
59 # Especify the header bgcolor
60 #
61 #header_bgcolor blanchedalmond
62
63 # TAG: font_size
64 # Especify the text font size
65 #
66 #font_size 9px
67
68 # TAG: header_font_size
69 # Especify the header font size
70 #
71 #header_font_size 9px
72
73 # TAG: title_font_size
74 # Especify the title font size
75 #
76 #title_font_size 11px
77
78 # TAG: background_color
79 # TAG: background_color
80 # Html page background color
81 #
82 # background_color white
83
84 # TAG: text_color
85 # Html page text color
86 #
87 #text_color #000000
88
89 # TAG: text_bgcolor
90 # Html page text background color
91 #
92 #text_bgcolor lavender
93
94 # TAG: title_color
95 # Html page title color
96 #
97 #title_color green
98
99 # TAG: logo_image
100 # Html page logo.
101 #
102 #logo_image none
103
104 # TAG: logo_text
105 # Html page logo text.
106 #
107 #logo_text ""
108
109 # TAG: logo_text_color
110 # Html page logo texti color.
111 #
112 #logo_text_color #000000
113
114 # TAG: logo_image_size
115 # Html page logo image size.
116 # width height
117 #
118 #image_size 80 45
119
120 # TAG: background_image
121 # Html page background image
122 #
123 #background_image none
124
125 # TAG: password
126 # User password file used by authentication
127 # If used here, reports will be generated only for that users.
128 #
129 #password none
130
131 # TAG: temporary_dir
132 # Temporary directory name for work files
133 # sarg -w dir
134 #
135 #temporary_dir /tmp
136
137 # TAG: output_dir
138 # The reports will be saved in that directory
139 # sarg -o dir
140 #
141 #output_dir /var/www/html/squid-reports
142
143 # TAG: output_email
144 # Email address to send the reports. If you use this tag, no html reports will be generated.
145 # sarg -e email
146 #
147 #output_email none
148
149 # TAG: resolve_ip yes/no
150 # Convert ip address to dns name
151 # sarg -n
152 #resolve_ip no
153
154 # TAG: user_ip yes/no
155 # Use Ip Address instead userid in reports.
156 # sarg -p
157 #user_ip no
158
159 # TAG: topuser_sort_field field normal/reverse
160 # Sort field for the Topuser Report.
161 # Allowed fields: USER CONNECT BYTES TIME
162 #
163 #topuser_sort_field BYTES reverse
164
165 # TAG: user_sort_field field normal/reverse
166 # Sort field for the User Report.
167 # Allowed fields: SITE CONNECT BYTES TIME
168 #
169 #user_sort_field BYTES reverse
170
171 # TAG: exclude_users file
172 # users within the file will be excluded from reports.
173 # you can use indexonly to have only index.html file.
174 #
175 #exclude_users none
176
177 # TAG: exclude_hosts file
178 # Hosts, domains or subnets will be excluded from reports.
179 #
180 # Eg.: 192.168.10.10 - exclude ip address only
181 # 192.168.10.0 - exclude full C class
182 # s1.acme.foo - exclude hostname only
183 # acme.foo - exclude full domain name
184 #
185 #exclude_hosts none
186
187 # TAG: useragent_log file
188 # Put here where is useragent.log to nable useragent report.
189 #
190 #useragent_log none
191
192 # TAG: date_format
193 # Date format in reports: e (European=dd/mm/yy), u (American=mm/dd/yy), w (Weekly=yy.ww)
194 #
195 #date_format u
196
197 # TAG: per_user_limit file MB
198 # Saves userid on file if download exceed n MB.
199 # This option allow you to disable user access if user exceed a download limit.
200 #
201 #per_user_limit none
202
203 # TAG: lastlog n
204 # How many reports files must be keept in reports directory.
205 # The oldest report file will be automatically removed.
206 # 0 - no limit.
207 #
208 #lastlog 0
209
210 # TAG: remove_temp_files yes
211 # Remove temporary files: geral, usuarios, top, periodo from root report directory.
212 #
213 #remove_temp_files yes
214
215 # TAG: index yes|no|only
216 # Generate the main index.html.
217 # only - generate only the main index.html
218 #
219 #index yes
220
221 # TAG: overwrite_report yes|no
222 # yes - if report date already exist then will be overwrited.
223 # no - if report date already exist then will be renamed to filename.n, filename.n+1
224 #
225 #overwrite_report no
226
227 # TAG: records_without_userid ignore|ip|everybody
228 # What can I do with records without user id (no authentication) in access.log file ?
229 #
230 # ignore - This record will be ignored.
231 # ip - Use ip address instead. (default)
232 # everybody - Use "everybody" instead.
233 #
234 #records_without_userid ip
235
236 # TAG: use_comma no|yes
237 # Use comma instead point in reports.
238 # Eg.: use_comma yes => 23,450,110
239 # use_comma no => 23.450.110
240 #
241 #use_comma no
242
243 # TAG: mail_utility mail|mailx
244 # Mail command to use to send reports via SMTP
245 #
246 #mail_utility mailx
247
248 # TAG: topsites_num n
249 # How many sites in topsites report.
250 #
251 #topsites_num 100
252
253 # TAG: topsites_sort_order CONNECT|BYTES A|D
254 # Sort for topsites report, where A=Ascendent, D=Descendent
255 #
256 #topsites_sort_order CONNECT D
257
258 # TAG: index_sort_order A/D
259 # Sort for index.html, where A=Ascendent, D=Descendent
260 #
261 #index_sort_order D
262
263 # TAG: exclude_codes file
264 # Ignore records with these codes. Eg.: NONE/400
265 #
266 #exclude_codes /usr/local/sarg/exclude_codes
267
268 # TAG: replace_index string
269 # Replace "index.html" in the main index file with this string
270 # If null "index.html" is used
271 #
272 #replace_index <?php echo str_replace(".", "_", $REMOTE_ADDR); echo ".html"; ?>
273
274 # TAG: max_elapsed milliseconds
275 # If elapsed time is recorded in log is greater than max_elapsed use 0 for elapsed time.
276 # Use 0 for no checking
277 #
278 #max_elapsed 0
279 # 8 Hours
280 max_elapsed 28800000
281
282 # TAG: report_type type
283 # What kind of reports to generate.
284 # topsites - shows the site, connect and bytes
285 # sites_users - shows which users were accessing a site
286 # users_sites - shows sites accessed by the user
287 # date_time - shows the amount of bytes used by day and hour
288 # denied - shows all denied sites with full URL
289 # auth_failures - shows autentication failures
290 # site_user_time_date - shows sites, dates, times and bytes
291 #
292 # Eg.: report_type topsites denied
293 #
294 #report_type topsites sites_users users_sites date_time denied auth_failures site_user_time_date
295
296 # TAG: usertab filename
297 # You can change the "userid" or the "ip address" to be a real user name on the reports.
298 # Table syntax:
299 # userid name or ip address name
300 # Eg:
301 # SirIsaac Isaac Newton
302 # vinci Leonardo da Vinci
303 # 192.168.10.1 Karol Wojtyla
304 #
305 # Each line must be terminated with '\n'
306 #
307 #usertab none
308
309 # TAG: long_url yes|no
310 # If yes, the full url is showed in report.
311 # If no, only the site will be showed
312 #
313 # YES option generate very big sort files and reports.
314 #
315 #long_url no
316
317 # TAG: date_time_by bytes|elap
318 # Date/Time reports will use bytes or elapsed time?
319 #
320 #date_time_by bytes
321
322 # TAG: charset name
323 # ISO 8859 is a full series of 10 standardized multilingual single-byte coded (8bit)
324 # graphic character sets for writing in alphabetic languages
325 # You can use the following charsets:
326 # Latin1 - West European
327 # Latin2 - East European
328 # Latin3 - South European
329 # Latin4 - North European
330 # Cyrillic
331 # Arabic
332 # Greek
333 # Hebrew
334 # Latin5 - Turkish
335 # Latin6
336 # Windows-1251
337 # Koi8-r
338 #
339 #charset Latin1
340
341 # TAG: user_invalid_char "&/"
342 # Records that contain invalid characters in userid will be ignored by Sarg.
343 #
344 #user_invalid_char "&/"
345
346 # TAG: privacy yes|no
347 # privacy_string "***.***.***.***"
348 # privacy_string_color blue
349 # In some countries the sysadm cannot see the visited sites by a restrictive law.
350 # Using privacy yes the visited url will be changes by privacy_string and the link
351 # will be removed from reports.
352 #
353 #privacy no
354 #privacy_string "***.***.***.***"
355 #privacy_string_color blue
356
357 # TAG: include_users "user1:user2:...:usern"
358 # Reports will be generated only for listed users.
359 #
360 #include_users none
361
362 # TAG: exclude_string "string1:string2:...:stringn"
363 # Records from access.log file that contain one of listed strings will be ignored.
364 #
365 #exclude_string none
366
367 # TAG: show_successful_message yes|no
368 # Shows "Successful report generated on dir" at end of process.
369 #
370 #show_successful_message yes
371
372 # TAG: show_read_statistics yes|no
373 # Shows some reading statistics.
374 #
375 #show_read_statistics yes
376
377 # TAG: topuser_fields
378 # Which fields must be in Topuser report.
379 #
380 #topuser_fields NUM DATE_TIME USERID CONNECT BYTES %BYTES IN-CACHE-OUT USED_TIME MILISEC %TIME TOTAL AVERAGE
381
382 # TAG: user_report_fields
383 # Which fields must be in User report.
384 #
385 #user_report_fields CONNECT BYTES %BYTES IN-CACHE-OUT USED_TIME MILISEC %TIME TOTAL AVERAGE
386
387 # TAG: topuser_num n
388 # How many users in topsites report. 0 = no limit
389 #
390 #topuser_num 0
391
392 # TAG: site_user_time_date_type list|table
393 # generate reports for site_user_time_date in list or table format
394 #
395 #site_user_time_date_type table
396
397 # TAG: datafile file
398 # Save the report results in a file to populate some database
399 #
400 #datafile none
401 #datafile /tmp/p8
402
403 # TAG: datafile_delimiter ";"
404 # ascii character to use as a field separator in datafile
405 #
406 #datafile_delimiter ";"
407
408 # TAG: datafile_fields all
409 # Which data fields must be in datafile
410 # user;date;time;url;connect;bytes;in_cache;out_cache;elapsed
411 #
412 #datafile_fields user;date;time;url;connect;bytes;in_cache;out_cache;elapsed
413
414 # TAG: weekdays
415 # The weekdays to take account ( Sunday->0, Saturday->6 )
416 # Example:
417 #weekdays 1-3,5
418 # Default:
419 #weekdays 0-6
420
421 # TAG: hours
422 # The hours to take account
423 # Example:
424 #hours 7-12,14,16,18-20
425 # Default:
426 #hours 0-23
427
428 # TAG: dansguardian_conf file
429 # DansGuardian.conf file path
430 # Generate reports from DansGuardian logs.
431 # Use 'none' to disable it.
432 # dansguardian_conf /usr/dansguardian/dansguardian.conf
433 #
434 #dansguardian_conf none
435
436 # TAG: squidguard_conf file
437 # path to squidGuard.conf file
438 # Generate reports from SquidGuard logs.
439 # Use 'none' to disable.
440 # squidguard_conf /usr/local/squidGuard/squidGuard.conf
441 #
442 #squidguard_conf none
443
444 # TAG: squidguard_log_format
445 # Format string SquidGuard logs.
446 # REJIK #year#-#mon#-#day# #hour# #list#:#tmp# #ip# #user# #tmp#/#tmp#/#url#/#end#
447 # SQUIDGUARD #year#-#mon#-#day# #hour# #tmp#/#list#/#tmp#/#tmp#/#url#/#tmp# #ip#/#tmp# #user# #end#
448 #squidguard_log_format #year#-#mon#-#day# #hour# #tmp#/#list#/#tmp#/#tmp#/#url#/#tmp# #ip#/#tmp# #user# #end#
449
450 # TAG: show_sarg_info yes|no
451 # shows sarg information and site path on each report bottom
452 #
453 #show_sarg_info yes
454
455 # TAG: show_sarg_logo yes|no
456 # shows sarg logo
457 #
458 #show_sarg_logo yes
459
460 # TAG: parsed_output_log directory
461 # Saves the processed log in a sarg format after parsing the squid log file.
462 # This is a way to dump all of the data structures out, after parsing from
463 # the logs (presumably this data will be much smaller than the log files themselves),
464 # and pull them back in for later processing and merging with data from previous logs.
465 #
466 #parsed_output_log none
467
468 # TAG parsed_output_log_compress /bin/gzip|/usr/bin/bzip2|nocompress
469 # sarg logs compress util
470 #
471 #parsed_output_log_compress /bin/gzip
472
473 # TAG displayed_values bytes|abbreviation
474 # how the values will be displayed in reports.
475 # eg. bytes - 209.526
476 # abbreviation - 210K
477 #
478 #displayed_values bytes
479
480 # Report limits
481 # TAG authfail_report_limit n
482 # TAG denied_report_limit n
483 # TAG siteusers_report_limit n
484 # TAG squidguard_report_limit n
485 # TAG user_report_limit n
486 # report limits (lines).
487 # '0' no limit
488 #
489 #authfail_report_limit 10
490 #denied_report_limit 10
491 #siteusers_report_limit 0
492 #squidguard_report_limit 10
493 #user_report_limit 0
494
495 # TAG www_document_root dir
496 # Where is your Web DocumentRoot
497 # Sarg will create sarg-php directory with some PHP modules:
498 # - sarg-squidguard-block.php - add urls from user reports to squidGuard DB
499 #
500 #www_document_root /var/www/html
501
502 # TAG block_it module_url
503 # This tag allow you to pass urls from user reports to a cgi or php module,
504 # to be blocked by some Squid acl
505 #
506 # Eg.: block_it /sarg-php/sarg-block-it.php
507 # sarg-block-it is a php that will append a url to a flat file.
508 # You must change /var/www/html/sarg-php/sarg-block-it to point to your file
509 # in $filename variable, and chown to a httpd owner.
510 #
511 # sarg will pass http://module_url?url=url
512 #
513 #block_it none
514
515 # TAG external_css_file path
516 # This tag allow internal sarg css override.
517 # Sarg use theses style classes:
518 # .body body class
519 # .info sarg information class, align=center
520 # .title title class, align=center
521 # .header header class, align:left
522 # .header2 header class, align:right
523 # .header3 header class, align:right
524 # .text text class, align:left
525 # .data table text class, align:right
526 # .data2 table text class, align:right, border colors
527 # .link link class
528 #
529 # There is a sample in /usr/local/sarg/etc/css.tpl
530 #
531 #external_css_file none
532
533 # TAG user_authentication yes|no
534 # Allow user authentication in User Reports using .htaccess
535 # Parameters:
536 # AuthUserFile - where the user password file is
537 # AuthName - authentication realm. Eg "Members Only"
538 # AuthType - authenticaion type - basic
539 # Require - authorized users to see the report.
540 # %u - user report
541 #
542 # user_authentication no
543 # AuthUserFile /usr/local/sarg/passwd
544 # AuthName "SARG, Restricted Access"
545 # AuthType Basic
546 # Require user admin %u
547
548 # TAG download_suffix "suffix,suffix,...,suffix"
549 # file suffix to be considered as "download" in Download report.
550 # Use 'none' to disable.
551 #
552 #download_suffix "7z,ace,arj,avi,bat,bin,bz2,bzip,cab,com,cpio,dll,doc,dot,exe,gz,iso,lha,lzh,mdb,mov,mp3,mpeg,mpg,mso,nrg,ogg,ppt,rar,rtf,shs,src,sys,tar,tgz,vcd,vob,wma,wmv,zip"
553
554 # ulimit n
555 # The maximum number of open file descriptors to avoid "Too many open files" error message.
556 # You need to run sarg as root to use ulimit tag.
557 #
558 #ulimit 20000
559
560 # TAG: ntlm_user_format username|domainname+username
561 # NTLM users format.
562 #
563 #ntlm_user_format domainname+username