sarg
2.4.0
About: SARG ia a Squid Analysis Report Generator.
![]() ![]() |
Include headers and define global variables. */. More...
Go to the source code of this file.
Data Structures | |
struct | periodstruct |
Macros | |
#define | true 1 |
#define | false 0 |
#define | MY_FOPEN fopen |
#define | bzero(mem, size) memset(mem,0,size) |
#define | _(String) (String) |
#define | N_(String) (String) |
#define | __attribute__(x) |
#define | MAXLEN 20000 |
#define | MAX_URL_LEN 40000 |
#define | MAX_TRUNCATED_URL 250 |
#define | MAX_USER_LEN 256 |
#define | MAX_USER_FNAME_LEN 128 |
#define | MAX_IP_LEN 64 |
#define | MAX_DATETIME_LEN 32 |
#define | MAX_REDIRECTOR_LOGS 64 |
#define | MAX_REDIRECTOR_FILELEN 1024 |
#define | MAX_DATETIME_DAYS 1000 |
#define | REPORT_TYPE_USERS_SITES 0x0001UL |
#define | REPORT_TYPE_SITE_USER_TIME_DATE 0x0002UL |
#define | REPORT_TYPE_TOPUSERS 0x0004UL |
#define | REPORT_TYPE_TOPSITES 0x0008UL |
#define | REPORT_TYPE_SITES_USERS 0x0010UL |
#define | REPORT_TYPE_DATE_TIME 0x0020UL |
#define | REPORT_TYPE_DENIED 0x0040UL |
#define | REPORT_TYPE_AUTH_FAILURES 0x0080UL |
#define | REPORT_TYPE_DOWNLOADS 0x0100UL |
#define | REPORT_TYPE_USERAGENT 0x0200UL |
#define | DATA_FIELD_USER 0x0001UL |
#define | DATA_FIELD_DATE 0x0002UL |
#define | DATA_FIELD_TIME 0x0004UL |
#define | DATA_FIELD_URL 0x0008UL |
#define | DATA_FIELD_CONNECT 0x0010UL |
#define | DATA_FIELD_BYTES 0x0020UL |
#define | DATA_FIELD_IN_CACHE 0x0040UL |
#define | DATA_FIELD_OUT_CACHE 0x0080UL |
#define | DATA_FIELD_ELAPSED 0x0100UL |
#define | TOPUSERFIELDS_NUM 0x0001UL |
#define | TOPUSERFIELDS_DATE_TIME 0x0002UL |
#define | TOPUSERFIELDS_USERID 0x0004UL |
#define | TOPUSERFIELDS_CONNECT 0x0008UL |
#define | TOPUSERFIELDS_BYTES 0x0010UL |
#define | TOPUSERFIELDS_SETYB 0x0020UL |
#define | TOPUSERFIELDS_IN_CACHE_OUT 0x0040UL |
#define | TOPUSERFIELDS_USED_TIME 0x0080UL |
#define | TOPUSERFIELDS_MILISEC 0x0100UL |
#define | TOPUSERFIELDS_PTIME 0x0200UL |
#define | TOPUSERFIELDS_TOTAL 0x0400UL |
#define | TOPUSERFIELDS_AVERAGE 0x0800UL |
#define | TOPUSERFIELDS_USERIP 0x1000UL |
#define | USERREPORTFIELDS_CONNECT 0x0001UL |
#define | USERREPORTFIELDS_BYTES 0x0002UL |
#define | USERREPORTFIELDS_SETYB 0x0004UL |
#define | USERREPORTFIELDS_IN_CACHE_OUT 0x0008UL |
#define | USERREPORTFIELDS_USED_TIME 0x0010UL |
#define | USERREPORTFIELDS_MILISEC 0x0020UL |
#define | USERREPORTFIELDS_PTIME 0x0040UL |
#define | USERREPORTFIELDS_TOTAL 0x0080UL |
#define | USERREPORTFIELDS_AVERAGE 0x0100UL |
#define | INDEX_YES 0x0001UL |
#define | INDEX_NO 0x0002UL |
#define | INDEX_ONLY 0x0004UL |
#define | INDEX_TREE_DATE 0x0001UL |
#define | INDEX_TREE_FILE 0x0002UL |
#define | INDEXFIELDS_DIRSIZE 0x0001UL |
#define | NTLMUSERFORMAT_USER 0x0001UL |
#define | NTLMUSERFORMAT_DOMAINUSER 0x0002UL |
#define | RECORDWITHOUTUSER_IP 0x0001UL |
#define | RECORDWITHOUTUSER_IGNORE 0x0002UL |
#define | RECORDWITHOUTUSER_EVERYBODY 0x0004UL |
#define | DATAFILEURL_IP 0x0001UL |
#define | DATAFILEURL_NAME 0x0002UL |
#define | DISPLAY_BYTES 0x0001UL |
#define | DISPLAY_ABBREV 0x0002UL |
#define | DATETIME_ELAP 0x0001UL |
#define | DATETIME_BYTE 0x0002UL |
#define | REALTIME_UNAUTH_REC_SHOW 0x0001UL |
#define | REALTIME_UNAUTH_REC_IGNORE 0x0002UL |
#define | SORT_REVERSE 0x0001 |
#define | TOPUSER_SORT_REVERSE SORT_REVERSE |
#define | TOPUSER_SORT_BYTES 0x0002UL |
#define | TOPUSER_SORT_USER 0x0004UL |
#define | TOPUSER_SORT_CONNECT 0x0008UL |
#define | TOPUSER_SORT_TIME 0x0010UL |
#define | TOPSITE_SORT_REVERSE SORT_REVERSE |
#define | TOPSITE_SORT_BYTES 0x0002UL |
#define | TOPSITE_SORT_CONNECT 0x0004UL |
#define | TOPSITE_SORT_TIME 0x0008UL |
#define | TOPSITE_SORT_USER 0x0010UL |
#define | USER_SORT_REVERSE SORT_REVERSE |
#define | USER_SORT_BYTES 0x0002UL |
#define | USER_SORT_SITE 0x0004UL |
#define | USER_SORT_CONNECT 0x0008UL |
#define | USER_SORT_TIME 0x0010UL |
#define | HTML_JS_NONE 0x0000 |
Value to exclude all the javascripts from the html page. More... | |
#define | HTML_JS_SORTTABLE 0x0001 |
Bit to include sorttable.js in the html plage. More... | |
#define | ALIAS_PREFIX '*' |
The character prefixed in front of the host names that are aliased. More... | |
#define | MAX_USER_LIMITS 16 |
Maximum number of limit files that can be stored. More... | |
#define | INDEX_HTML_FILE "index.html" |
Name of the html file containing the index of a report file. More... | |
Typedefs | |
typedef int | bool |
Variables | |
char | outdir [20000] |
char | outdirname [20000] |
struct periodstruct | period |
char | code [20000] |
char | code2 [20000] |
char | tmp [20000] |
char | parse_out [20000] |
char | html [20000] |
char | ConfigFile [20000] |
char | df |
int | LastLog |
bool | RemoveTempFiles |
char | ReplaceIndex [256] |
unsigned long int | Index |
bool | OverwriteReport |
unsigned long int | RecordsWithoutUser |
bool | UseComma |
char | MailUtility [PATH_MAX] |
int | TopSitesNum |
int | TopUsersNum |
char | ExcludeCodes [256] |
unsigned long int | TopsitesSort |
unsigned long int | ReportType |
char | UserTabFile [255] |
char | warea [20000] |
char | name [20000] |
bool | LongUrl |
bool | Ip2Name |
int | AccessLogFromCmdLine |
char | Title [20000] |
char | BgColor [20000] |
char | BgImage [20000] |
char | TxColor [20000] |
char | TxBgColor [20000] |
char | TiColor [20000] |
char | LogoImage [20000] |
char | LogoText [20000] |
char | LogoTextColor [20000] |
char | Width [20000] |
char | Height [20000] |
char | FontFace [20000] |
char | HeaderColor [20000] |
char | HeaderBgColor [20000] |
char | FontSize [20000] |
char | PasswdFile [20000] |
char | TempDir [20000] |
char | TempDirPath [20000] |
char | OutputDir [20000] |
char | OutputEmail [20000] |
unsigned long int | TopuserSort |
unsigned long int | UserSort |
char | module [255] |
char | ExcludeHosts [255] |
char | ExcludeUsers [255] |
char | DateFormat |
bool | UserIp |
char | MaxElapsed [255] |
unsigned long int | datetimeby |
char | CharSet [255] |
char | UserInvalidChar [255] |
bool | Graphs |
char | GraphDaysBytesBarColor [255] |
bool | Privacy |
char | PrivacyString [255] |
char | PrivacyStringColor [30] |
char | IncludeUsers [20000] |
char | ExcludeString [20000] |
bool | SuccessfulMsg |
unsigned long int | TopUserFields |
unsigned long int | UserReportFields |
char | DataFile [20000] |
char | DataFileDelimiter [3] |
unsigned long int | DataFileFields |
unsigned long int | DataFileUrl |
bool | ShowReadStatistics |
if true , show the number of lines read from the input log file during the reading of the file. More... | |
bool | ShowReadPercent |
char | IndexSortOrder [5] |
char | DansGuardianConf [20000] |
bool | DansguardianFilterOutDate |
char | SquidGuardConf [20000] |
char | SquidGuarddbHome [255] |
char | RedirectorLogFormat [4096] |
int | NRedirectorLogs |
char | RedirectorLogs [64][1024] |
int | RedirectorLogFromCmdLine |
bool | RedirectorFilterOutDate |
bool | ShowSargInfo |
bool | BytesInSitesUsersReport |
bool | ShowSargLogo |
char | ParsedOutputLog [20000] |
char | ParsedOutputLogCompress [512] |
unsigned long int | DisplayedValues |
char | HeaderFontSize [5] |
char | TitleFontSize [5] |
char | wwwDocumentRoot [20000] |
char | ExternalCSSFile [20000] |
char | BlockIt [255] |
unsigned long int | NtlmUserFormat |
unsigned long int | IndexTree |
How to display the index of the reports. More... | |
unsigned long int | IndexFields |
The columns to show in the index of the reports. More... | |
bool | UserAuthentication |
char | AuthUserTemplateFile [1024] |
bool | AnonymousOutputFiles |
True to use anonymous file and directory names in the report. More... | |
char | val1 [20000] |
char | val3 [20000] |
char | val5 [20000] |
char | val6 [20000] |
char | val7 [20000] |
char | val8 [20000] |
char | val9 [20000] |
char | val10 [20000] |
char | val11 [20000] |
char | mask [20000] |
char | site [20000] |
char | us [50] |
char | email [20000] |
char | test [1] |
char | user2 [20000] |
char | wentp [512] |
char | addr [20000] |
char | Ulimit [6] |
char | RealtimeTypes [1024] |
char | cmd [255] |
char | ImageFile [255] |
unsigned long int | RealtimeUnauthRec |
char | LDAPHost [255] |
char | LDAPBindDN [512] |
char | LDAPBindPW [255] |
int | LDAPPort |
int | LDAPProtocolVersion |
char | LDAPBaseSearch [255] |
char | LDAPFilterSearch [512] |
char | LDAPTargetAttr [64] |
char | LDAPNativeCharset [20] |
Character set to convert the LDAP returned string to. More... | |
char | GraphFont [20000] |
char | SortTableJs [256] |
The full path to sorttable.js if the table in the reports must be dynamicaly sorted. More... | |
char | HostAliasFile [512] |
The name of the file containing the host names to replace by an alias in the report. More... | |
char | UserAliasFile [512] |
The name of the file containing the user names to replace by an alias in the report. More... | |
int | NumLogSuccessiveErrors |
The number of consecutive errors allowed in an input log file before the process is interrupted. More... | |
int | NumLogTotalErrors |
unsigned long int | lines_read |
Count the number of lines read from the input log files. More... | |
unsigned long int | records_kept |
Count the number of records kept for the processing. More... | |
unsigned long int | nusers |
Count the number of users. More... | |
int | idate |
int | dansguardian_count |
int | redirector_count |
int | useragent_count |
int | z1 |
int | z2 |
int | z3 |
int | ttopen |
int | sarglog |
int | isalog |
bool | dataonly |
bool | indexonly |
bool | iprel |
int | langcode |
int | debug |
int | debugz |
int | AuthfailReportLimit |
int | DeniedReportLimit |
int | DownloadReportLimit |
int | SiteUsersReportLimit |
int | DansGuardianReportLimit |
int | SquidGuardReportLimit |
int | UserReportLimit |
int | realtime_refresh |
int | realtime_access_log_lines |
int | rc |
int | ntopsites |
int | nrepday |
bool | squid24 |
bool | KeepTempLog |
True to keep the temporary files for inspection. More... | |
long long int | nocost |
float | cost |
#define ALIAS_PREFIX '*' |
#define HTML_JS_NONE 0x0000 |
#define HTML_JS_SORTTABLE 0x0001 |
#define INDEX_HTML_FILE "index.html" |
#define MAX_DATETIME_DAYS 1000 |
#define MAX_USER_LIMITS 16 |
#define TOPSITE_SORT_REVERSE SORT_REVERSE |
#define TOPUSER_SORT_REVERSE SORT_REVERSE |
#define USER_SORT_REVERSE SORT_REVERSE |
int AccessLogFromCmdLine |
Definition at line 338 of file conf.h.
Referenced by main(), and parmtest().
char addr[20000] |
Definition at line 439 of file conf.h.
Referenced by extract_address_mask(), gerarel(), ip2name_dns(), main(), name2ip(), ReadOneLogFile(), store_exclude_ip4(), store_exclude_ip6(), and vrfydir().
bool AnonymousOutputFiles |
True
to use anonymous file and directory names in the report.
Definition at line 422 of file conf.h.
Referenced by main(), parmtest(), and userinfo_create().
int AuthfailReportLimit |
Definition at line 491 of file conf.h.
Referenced by authfail_report(), main(), and parmtest().
char AuthUserTemplateFile[1024] |
Definition at line 420 of file conf.h.
Referenced by htaccess(), main(), and parmtest().
char BgColor[20000] |
Definition at line 340 of file conf.h.
Referenced by css_content(), header(), main(), parmtest(), and smartfilter_report().
char BgImage[20000] |
Definition at line 341 of file conf.h.
Referenced by css_content(), header(), main(), parmtest(), and smartfilter_report().
char BlockIt[255] |
Definition at line 413 of file conf.h.
Referenced by authfail_report(), download_report(), gen_denied_report(), htmlrel(), main(), parmtest(), siteuser(), and topsites().
bool BytesInSitesUsersReport |
Definition at line 404 of file conf.h.
Referenced by main(), parmtest(), and siteuser().
char CharSet[255] |
Definition at line 368 of file conf.h.
Referenced by ccharset(), greport_prepare(), header(), main(), parmtest(), smartfilter_report(), and write_html_head().
char cmd[255] |
Definition at line 442 of file conf.h.
Referenced by file_index_to_date_index(), and ip2name_exec().
char code2[20000] |
Definition at line 314 of file conf.h.
Referenced by dansguardian_log().
char ConfigFile[20000] |
Definition at line 318 of file conf.h.
Referenced by getconf(), greport_prepare(), and main().
float cost |
Definition at line 508 of file conf.h.
Referenced by main(), and parmtest().
int dansguardian_count |
Definition at line 478 of file conf.h.
Referenced by dansguardian_log(), dansguardian_report(), main(), and TopUser_HtmlReport().
char DansGuardianConf[20000] |
Definition at line 394 of file conf.h.
Referenced by dansguardian_log(), gerarel(), main(), and parmtest().
bool DansguardianFilterOutDate |
Definition at line 395 of file conf.h.
Referenced by dansguardian_log(), main(), and parmtest().
int DansGuardianReportLimit |
Definition at line 495 of file conf.h.
Referenced by dansguardian_report(), main(), and parmtest().
char DataFile[20000] |
Definition at line 380 of file conf.h.
Referenced by data_file(), main(), and parmtest().
char DataFileDelimiter[3] |
Definition at line 381 of file conf.h.
Referenced by main(), parmtest(), and saverecs().
unsigned long int DataFileFields |
Definition at line 382 of file conf.h.
Referenced by main(), parmtest(), and saverecs().
unsigned long int DataFileUrl |
Definition at line 383 of file conf.h.
Referenced by main(), parmtest(), and saverecs().
bool dataonly |
Definition at line 485 of file conf.h.
Referenced by main(), and ReadLogFile().
char DateFormat |
Definition at line 364 of file conf.h.
Referenced by IsTreeFileDirName(), main(), parmtest(), and zdate().
unsigned long int datetimeby |
Definition at line 367 of file conf.h.
Referenced by day_totalize(), gerarel(), greport_day(), main(), parmtest(), and report_day().
int debug |
Definition at line 489 of file conf.h.
Referenced by dansguardian_log(), data_file(), DeleteEmptyDirs(), Email_Send(), gerarel(), getconf(), gethexclude(), getuexclude(), getusers(), htmlrel(), init_usertab(), ip2name_chainmodule(), ip2name_forcedns(), main(), make_index(), maketmp(), makeTmpDir(), mklastlog(), read_hostalias(), read_log(), read_useralias(), ReadLogFile(), ReadOneLogFile(), redirector_log(), removetmp(), sort_users_log(), tmpsort(), UserAgent(), UserAgent_Readlog(), version(), and vrfydir().
int debugz |
Definition at line 490 of file conf.h.
Referenced by authfail_open(), authfail_report(), dansguardian_report(), debuga(), debugaz(), denied_open(), download_open(), download_report(), gen_denied_report(), gerarel(), getconf(), greport_prepare(), LogLine_Parse(), main(), parmtest(), process_user(), ReadOneLogFile(), redirector_log(), redirector_report(), siteuser(), topsites(), topuser(), and TopUser_HtmlReport().
int DeniedReportLimit |
Definition at line 492 of file conf.h.
Referenced by gen_denied_report(), main(), and parmtest().
char df |
Definition at line 319 of file conf.h.
Referenced by convlog(), dansguardian_report(), datashow(), date_index_to_file_index(), file_index_to_date_index(), getperiod_buildtext(), main(), make_file_index(), show_info(), smartfilter_report(), splitlog(), and vrfydir().
unsigned long int DisplayedValues |
Definition at line 408 of file conf.h.
Referenced by fixnum(), main(), and parmtest().
int DownloadReportLimit |
Definition at line 493 of file conf.h.
Referenced by download_report(), main(), and parmtest().
char email[20000] |
Definition at line 435 of file conf.h.
Referenced by Email_OutputFile(), Email_Send(), gerarel(), main(), and topuser().
char ExcludeCodes[256] |
Definition at line 330 of file conf.h.
Referenced by load_excludecodes(), main(), and parmtest().
char ExcludeHosts[255] |
Definition at line 362 of file conf.h.
Referenced by main(), and parmtest().
char ExcludeString[20000] |
Definition at line 376 of file conf.h.
Referenced by main(), parmtest(), and ReadOneLogFile().
char ExcludeUsers[255] |
Definition at line 363 of file conf.h.
Referenced by main(), and parmtest().
char ExternalCSSFile[20000] |
Definition at line 412 of file conf.h.
Referenced by css(), main(), and parmtest().
char FontFace[20000] |
Definition at line 350 of file conf.h.
Referenced by css_content(), header(), main(), parmtest(), and smartfilter_report().
char FontSize[20000] |
Definition at line 353 of file conf.h.
Referenced by css_content(), main(), parmtest(), and smartfilter_report().
char GraphDaysBytesBarColor[255] |
Definition at line 371 of file conf.h.
Referenced by main(), and parmtest().
char GraphFont[20000] |
Definition at line 455 of file conf.h.
Referenced by greport_day(), greport_prepare(), main(), parmtest(), and TopUser_HtmlReport().
bool Graphs |
Definition at line 370 of file conf.h.
Referenced by greport_day(), greport_prepare(), main(), parmtest(), and TopUser_HtmlReport().
char HeaderBgColor[20000] |
Definition at line 352 of file conf.h.
Referenced by css_content(), main(), parmtest(), and smartfilter_report().
char HeaderColor[20000] |
Definition at line 351 of file conf.h.
Referenced by css_content(), main(), and parmtest().
char HeaderFontSize[5] |
Definition at line 409 of file conf.h.
Referenced by css_content(), main(), and parmtest().
char Height[20000] |
Definition at line 349 of file conf.h.
Referenced by main(), parmtest(), smartfilter_report(), and write_logo_image().
char HostAliasFile[512] |
The name of the file containing the host names to replace by an alias in the report.
Definition at line 459 of file conf.h.
Referenced by main(), and parmtest().
int idate |
Definition at line 477 of file conf.h.
Referenced by UserAgent().
char ImageFile[255] |
Definition at line 443 of file conf.h.
Referenced by download_report(), gen_denied_report(), htmlrel(), main(), and TopUser_HtmlReport().
char IncludeUsers[20000] |
Definition at line 375 of file conf.h.
Referenced by main(), parmtest(), and process_user().
unsigned long int Index |
Definition at line 323 of file conf.h.
Referenced by datashow(), main(), make_index(), and parmtest().
unsigned long int IndexFields |
The columns to show in the index of the reports.
Definition at line 418 of file conf.h.
Referenced by main(), make_date_index(), make_date_index_day(), make_date_index_month(), and parmtest().
bool indexonly |
Definition at line 486 of file conf.h.
Referenced by gerarel(), main(), siteuser(), and TopUser_HtmlReport().
char IndexSortOrder[5] |
Definition at line 393 of file conf.h.
Referenced by main(), make_date_index(), make_file_index(), and parmtest().
unsigned long int IndexTree |
How to display the index of the reports.
Definition at line 416 of file conf.h.
Referenced by authfail_report(), dansguardian_report(), download_report(), gen_denied_report(), gerarel(), getperiod_buildtext(), greport_day(), htmlrel(), main(), make_index(), parmtest(), redirector_report(), report_day(), siteuser(), topsites(), TopUser_HtmlReport(), UserAgent(), and vrfydir().
bool Ip2Name |
Definition at line 337 of file conf.h.
Referenced by dansguardian_report(), data_file(), datashow(), gerarel(), ip2name_chainmodule(), ip2name_forcedns(), main(), parse_log(), redirector_report(), and UserAgent().
bool KeepTempLog |
True
to keep the temporary files for inspection.
Definition at line 505 of file conf.h.
Referenced by authfail_cleanup(), authfail_report(), CleanTemporaryDir(), dansguardian_log(), dansguardian_report(), day_deletefile(), denied_cleanup(), download_report(), download_sort(), Email_Send(), gen_denied_report(), gerarel(), htmlrel(), main(), parmtest(), redirector_log(), redirector_report(), siteuser(), smartfilter_report(), sort_users_log(), tmpsort(), topsites(), topuser(), TopUser_HtmlReport(), TopUser_TextEmail(), and UserAgent().
int LastLog |
Definition at line 320 of file conf.h.
Referenced by main(), make_index(), mklastlog(), and parmtest().
char LDAPBaseSearch[255] |
Definition at line 450 of file conf.h.
Referenced by main(), and parmtest().
char LDAPBindDN[512] |
Definition at line 446 of file conf.h.
Referenced by main(), and parmtest().
char LDAPBindPW[255] |
Definition at line 447 of file conf.h.
Referenced by main(), and parmtest().
char LDAPFilterSearch[512] |
Definition at line 451 of file conf.h.
Referenced by main(), and parmtest().
char LDAPHost[255] |
Definition at line 445 of file conf.h.
Referenced by main(), and parmtest().
char LDAPNativeCharset[20] |
Character set to convert the LDAP returned string to.
Definition at line 454 of file conf.h.
Referenced by main(), and parmtest().
int LDAPPort |
Definition at line 448 of file conf.h.
Referenced by main(), and parmtest().
int LDAPProtocolVersion |
Definition at line 449 of file conf.h.
Referenced by main(), and parmtest().
char LDAPTargetAttr[64] |
Definition at line 452 of file conf.h.
Referenced by main(), and parmtest().
unsigned long int lines_read |
Count the number of lines read from the input log files.
Definition at line 471 of file conf.h.
Referenced by main(), and ReadOneLogFile().
char LogoImage[20000] |
Definition at line 345 of file conf.h.
Referenced by main(), parmtest(), smartfilter_report(), and write_logo_image().
char LogoText[20000] |
Definition at line 346 of file conf.h.
Referenced by main(), parmtest(), smartfilter_report(), and write_logo_image().
char LogoTextColor[20000] |
Definition at line 347 of file conf.h.
Referenced by css_content(), main(), parmtest(), and smartfilter_report().
bool LongUrl |
Definition at line 336 of file conf.h.
Referenced by main(), parmtest(), and ReadOneLogFile().
char MailUtility[PATH_MAX] |
Definition at line 327 of file conf.h.
Referenced by Email_Send(), main(), and parmtest().
char mask[20000] |
Definition at line 432 of file conf.h.
Referenced by extract_address_mask(), and htmlrel().
char MaxElapsed[255] |
Definition at line 366 of file conf.h.
Referenced by main(), and parmtest().
char module[255] |
Definition at line 361 of file conf.h.
Referenced by ip2name_configmodule().
char name[20000] |
Definition at line 335 of file conf.h.
Referenced by Alias_MatchName(), Alias_Store(), Alias_StoreName(), dansguardian_report(), datashow(), get_usertab_name(), gethexclude(), getparam_list(), getparam_select(), getparam_sort(), getparam_userlimit(), my_mkdir(), name2ip(), obtdate(), obttotal(), obtuser(), saverecs(), and vhexclude().
long long int nocost |
Definition at line 507 of file conf.h.
Referenced by main(), and parmtest().
int NRedirectorLogs |
Definition at line 399 of file conf.h.
Referenced by main(), parmtest(), and redirector_log().
unsigned long int NtlmUserFormat |
Definition at line 414 of file conf.h.
Referenced by main(), parmtest(), and process_user().
int ntopsites |
Definition at line 501 of file conf.h.
Referenced by topsites().
int NumLogSuccessiveErrors |
The number of consecutive errors allowed in an input log file before the process is interrupted.
Definition at line 463 of file conf.h.
Referenced by LogLine_Parse(), main(), and parmtest().
int NumLogTotalErrors |
The total number of errors allowed in an input log file before the process is interrupted. A negative value means the process should never fails irrespective of the number of errors found in the input log files.
Definition at line 469 of file conf.h.
Referenced by LogLine_Parse(), main(), and parmtest().
unsigned long int nusers |
Count the number of users.
Definition at line 475 of file conf.h.
Referenced by main(), ReadOneLogFile(), and topsites().
char outdir[20000] |
Definition at line 310 of file conf.h.
Referenced by BuildDirList(), copy_images(), date_index_to_file_index(), file_index_to_date_index(), main(), make_date_index(), make_file_index(), make_index(), mklastlog(), removetmp(), splitlog(), and vrfydir().
char outdirname[20000] |
Definition at line 311 of file conf.h.
Referenced by authfail_report(), dansguardian_report(), download_report(), gen_denied_report(), gerarel(), greport_day(), htaccess(), htmlrel(), redirector_report(), report_day(), set_total_users(), siteuser(), smartfilter_report(), topsites(), topuser(), TopUser_HtmlReport(), UserAgent(), and vrfydir().
char OutputDir[20000] |
Definition at line 357 of file conf.h.
Referenced by main(), and parmtest().
char OutputEmail[20000] |
Definition at line 358 of file conf.h.
Referenced by main(), and parmtest().
bool OverwriteReport |
Definition at line 324 of file conf.h.
Referenced by main(), parmtest(), and vrfydir().
char ParsedOutputLog[20000] |
Definition at line 406 of file conf.h.
Referenced by main(), parmtest(), ReadLogFile(), and ReadOneLogFile().
char ParsedOutputLogCompress[512] |
Definition at line 407 of file conf.h.
Referenced by main(), parmtest(), and ReadLogFile().
char PasswdFile[20000] |
Definition at line 354 of file conf.h.
Referenced by main(), and parmtest().
struct periodstruct period |
Definition at line 312 of file conf.h.
Referenced by authfail_report(), dansguardian_log(), dansguardian_report(), download_report(), gen_denied_report(), gerarel(), getperiod_buildtext(), getperiod_fromrange(), getperiod_fromsarglog(), getperiod_torange(), htmlrel(), main(), ReadLogFile(), ReadOneLogFile(), redirector_log(), redirector_report(), report_day(), Sarg_ReadEntry(), siteuser(), smartfilter_report(), topsites(), TopUser_HtmlReport(), TopUser_TextEmail(), and UserAgent_Readlog().
bool Privacy |
Definition at line 372 of file conf.h.
Referenced by authfail_open(), denied_open(), download_open(), htmlrel(), main(), parmtest(), siteuser(), topsites(), and TopUser_HtmlReport().
char PrivacyString[255] |
Definition at line 373 of file conf.h.
Referenced by htmlrel(), main(), and parmtest().
char PrivacyStringColor[30] |
Definition at line 374 of file conf.h.
Referenced by htmlrel(), main(), and parmtest().
int realtime_access_log_lines |
Definition at line 499 of file conf.h.
Referenced by datashow(), main(), parmtest(), and realtime().
int realtime_refresh |
Definition at line 498 of file conf.h.
Referenced by header(), main(), and parmtest().
char RealtimeTypes[1024] |
Definition at line 441 of file conf.h.
Referenced by main(), parmtest(), and realtime().
unsigned long int RealtimeUnauthRec |
Definition at line 444 of file conf.h.
Referenced by main(), parmtest(), and realtime().
unsigned long int records_kept |
Count the number of records kept for the processing.
Definition at line 473 of file conf.h.
Referenced by main(), and ReadOneLogFile().
unsigned long int RecordsWithoutUser |
Definition at line 325 of file conf.h.
Referenced by main(), parmtest(), and process_user().
int redirector_count |
Definition at line 479 of file conf.h.
Referenced by main(), parse_log(), redirector_log(), redirector_report(), and TopUser_HtmlReport().
bool RedirectorFilterOutDate |
Definition at line 402 of file conf.h.
Referenced by main(), parmtest(), and parse_log().
char RedirectorLogFormat[4096] |
Definition at line 398 of file conf.h.
Referenced by main(), parmtest(), and parse_log().
int RedirectorLogFromCmdLine |
Definition at line 401 of file conf.h.
Referenced by main(), and parmtest().
char RedirectorLogs[64][1024] |
Definition at line 400 of file conf.h.
Referenced by main(), parmtest(), and redirector_log().
bool RemoveTempFiles |
Definition at line 321 of file conf.h.
Referenced by main(), parmtest(), and removetmp().
char ReplaceIndex[256] |
Definition at line 322 of file conf.h.
Referenced by main(), make_file_index(), and parmtest().
unsigned long int ReportType |
Definition at line 332 of file conf.h.
Referenced by authfail_open(), denied_open(), download_open(), gerarel(), gravaporuser(), htmlrel(), main(), maketmp(), parmtest(), siteuser(), TopUser_HtmlReport(), and UserAgent_Open().
bool ShowReadPercent |
If true
, the read statistics also includes the percent of the number of lines read.
Beware that it requires two readings of the input log file. It is not possible if the input log file is stdin or a pipe.
Definition at line 392 of file conf.h.
Referenced by main(), parmtest(), and ReadOneLogFile().
bool ShowReadStatistics |
if true
, show the number of lines read from the input log file during the reading of the file.
Definition at line 385 of file conf.h.
Referenced by main(), parmtest(), and ReadOneLogFile().
bool ShowSargInfo |
Definition at line 403 of file conf.h.
Referenced by main(), parmtest(), show_info(), and smartfilter_report().
bool ShowSargLogo |
Definition at line 405 of file conf.h.
Referenced by main(), parmtest(), and show_sarg().
char site[20000] |
int SiteUsersReportLimit |
Definition at line 494 of file conf.h.
Referenced by main(), parmtest(), and siteuser().
char SortTableJs[256] |
The full path to sorttable.js if the table in the reports must be dynamicaly sorted.
Definition at line 457 of file conf.h.
Referenced by css_content(), htmlrel(), main(), make_file_index(), parmtest(), siteuser(), topsites(), TopUser_HtmlReport(), and write_html_head().
bool squid24 |
Definition at line 503 of file conf.h.
Referenced by Common_ReadEntry(), main(), and parmtest().
char SquidGuardConf[20000] |
Definition at line 396 of file conf.h.
Referenced by main(), parmtest(), and redirector_log().
int SquidGuardReportLimit |
Definition at line 496 of file conf.h.
Referenced by main(), parmtest(), and redirector_report().
bool SuccessfulMsg |
Definition at line 377 of file conf.h.
Referenced by gerarel(), main(), and parmtest().
char TempDir[20000] |
Definition at line 355 of file conf.h.
Referenced by main(), and parmtest().
char TempDirPath[20000] |
Definition at line 356 of file conf.h.
Referenced by main(), and parmtest().
char TiColor[20000] |
Definition at line 344 of file conf.h.
Referenced by css_content(), main(), parmtest(), and smartfilter_report().
char Title[20000] |
Definition at line 339 of file conf.h.
Referenced by main(), parmtest(), smartfilter_report(), and write_html_header().
char TitleFontSize[5] |
Definition at line 410 of file conf.h.
Referenced by css_content(), header(), main(), and parmtest().
char tmp[20000] |
Definition at line 315 of file conf.h.
Referenced by Alias_StoreIpv4(), Alias_StoreIpv6(), Alias_StoreName(), authfail_open(), authfail_report(), CleanTemporaryDir(), dansguardian_log(), dansguardian_report(), data_file(), day_deletefile(), day_totalize(), denied_open(), download_open(), download_report(), download_sort(), Email_OutputFile(), gen_denied_report(), gerarel(), get_parent(), gravaporuser(), greport_day(), htmlrel(), main(), maketmp(), makeTmpDir(), ReadOneLogFile(), redirector_log(), report_day(), rotate_left(), rotate_right(), smartfilter_report(), sort_users_log(), tmpsort(), topuser(), UserAgent(), and UserAgent_Open().
int TopSitesNum |
Definition at line 328 of file conf.h.
Referenced by main(), parmtest(), and topsites().
unsigned long int TopsitesSort |
Definition at line 331 of file conf.h.
Referenced by main(), parmtest(), and topsites().
unsigned long int TopUserFields |
Definition at line 378 of file conf.h.
Referenced by main(), parmtest(), and TopUser_HtmlReport().
int TopUsersNum |
Definition at line 329 of file conf.h.
Referenced by main(), parmtest(), TopUser_HtmlReport(), and TopUser_TextEmail().
unsigned long int TopuserSort |
Definition at line 359 of file conf.h.
Referenced by main(), parmtest(), and topuser().
int ttopen |
Definition at line 482 of file conf.h.
Referenced by closett(), data_file(), and gerarel().
char TxBgColor[20000] |
Definition at line 343 of file conf.h.
Referenced by css_content(), main(), parmtest(), and smartfilter_report().
char TxColor[20000] |
Definition at line 342 of file conf.h.
Referenced by css_content(), main(), parmtest(), and smartfilter_report().
char Ulimit[6] |
Definition at line 440 of file conf.h.
Referenced by main(), and parmtest().
char us[50] |
bool UseComma |
int useragent_count |
Definition at line 480 of file conf.h.
Referenced by main(), TopUser_HtmlReport(), UserAgent(), and UserAgent_Write().
char UserAliasFile[512] |
The name of the file containing the user names to replace by an alias in the report.
Definition at line 461 of file conf.h.
Referenced by main(), and parmtest().
bool UserAuthentication |
Definition at line 419 of file conf.h.
Referenced by htaccess(), main(), and parmtest().
char UserInvalidChar[255] |
Definition at line 369 of file conf.h.
Referenced by main(), parmtest(), and testvaliduserchar().
bool UserIp |
Definition at line 365 of file conf.h.
Referenced by dansguardian_report(), datashow(), main(), parmtest(), and process_user().
unsigned long int UserReportFields |
Definition at line 379 of file conf.h.
Referenced by htmlrel(), main(), and parmtest().
int UserReportLimit |
Definition at line 497 of file conf.h.
Referenced by htmlrel(), main(), and parmtest().
unsigned long int UserSort |
Definition at line 360 of file conf.h.
Referenced by main(), parmtest(), sort_labels(), and tmpsort().
char UserTabFile[255] |
Definition at line 333 of file conf.h.
Referenced by data_file(), gerarel(), init_file_usertab(), init_usertab(), main(), parmtest(), and realtime().
char val1[20000] |
Definition at line 423 of file conf.h.
Referenced by date_index_to_file_index(), ReadLogFile(), and ReadOneLogFile().
char warea[20000] |
Definition at line 334 of file conf.h.
Referenced by BuildDirList(), Email_Send(), get_usertab_name(), htmlrel(), mklastlog(), parmtest(), topuser(), TopUser_HtmlReport(), and TopUser_TextEmail().
char wentp[512] |
Definition at line 438 of file conf.h.
Referenced by parse_log(), read_log(), and redirector_log().
char Width[20000] |
Definition at line 348 of file conf.h.
Referenced by main(), parmtest(), smartfilter_report(), and write_logo_image().
char wwwDocumentRoot[20000] |
Definition at line 411 of file conf.h.
Referenced by authfail_report(), download_report(), gen_denied_report(), htmlrel(), parmtest(), siteuser(), and topsites().
int z1 |
Definition at line 481 of file conf.h.
Referenced by get_usertab_name(), and init_file_usertab().
int z2 |
Definition at line 481 of file conf.h.
Referenced by init_file_usertab().