sarg  2.4.0
About: SARG ia a Squid Analysis Report Generator.
  Fossies Dox: sarg-2.4.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

log.c File Reference

Program entry point */. More...

#include "include/conf.h"
#include "include/defs.h"
#include "include/readlog.h"
#include "include/filelist.h"
Include dependency graph for log.c:

Go to the source code of this file.

Functions

static void getusers (const char *pwdfile, int debug)
 
static void CleanTemporaryDir ()
 
int main (int argc, char *argv[])
 

Variables

struct ReadLogDataStruct ReadFilter
 The log file filtering. More...
 
char * userfile =NULL
 The list of the system users. More...
 
FileListObject AccessLog =NULL
 List of the input log files to process. More...
 
char * CurrentLocale =NULL
 Selected locale set through the environment variable. More...
 
bool UserAgentFromCmdLine = 0
 Set to true if a useragent log is provided on the command line. More...
 
FileListObject UserAgentLog
 

Detailed Description

Program entry point */.

/*!

Definition in file log.c.

Function Documentation

◆ CleanTemporaryDir()

static void CleanTemporaryDir ( )
static

Definition at line 829 of file log.c.

References KeepTempLog, tmp, and unlinkdir().

Referenced by main().

Here is the caller graph for this function:

◆ getusers()

static void getusers ( const char *  pwdfile,
int  debug 
)
static

Definition at line 773 of file log.c.

References _, debug, debuga(), and userfile.

Referenced by main().

Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 54 of file log.c.

References _, AccessLog, AccessLogFromCmdLine, addr, AnonymousOutputFiles, append_to_path(), authfail_cleanup(), AuthfailReportLimit, AuthUserTemplateFile, BgColor, BgImage, bindtextdomain, BlockIt, BytesInSitesUsersReport, CharSet, CleanTemporaryDir(), close_usertab(), code, ConfigFile, convlog(), cost, css_content(), CurrentLocale, dansguardian_count, DansGuardianConf, DansguardianFilterOutDate, DansGuardianReportLimit, DATA_FIELD_BYTES, DATA_FIELD_CONNECT, DATA_FIELD_DATE, DATA_FIELD_ELAPSED, DATA_FIELD_IN_CACHE, DATA_FIELD_OUT_CACHE, DATA_FIELD_TIME, DATA_FIELD_URL, DATA_FIELD_USER, data_file(), DataFile, DataFileDelimiter, DataFileFields, DataFileUrl, DATAFILEURL_IP, dataonly, date_from(), DateFormat, ReadLogDataStruct::DateRange, DATETIME_BYTE, datetimeby, debug, debuga(), debugz, denied_cleanup(), DeniedReportLimit, df, DISPLAY_ABBREV, DisplayedValues, download_cleanup(), DownloadReportLimit, email, periodstruct::end, ReadLogDataStruct::EndDate, ReadLogDataStruct::EndTime, ExcludeCodes, ExcludeHosts, ExcludeString, ExcludeUsers, ExternalCSSFile, FileList_AddFile(), FileList_Create(), FileList_Destroy(), FileList_IsEmpty(), FileListIter_Close(), FileListIter_Next(), FileListIter_NextWithMask(), FileListIter_Open(), FontFace, FontSize, free_download(), free_exclude(), free_excludecodes(), free_hostalias(), free_useralias(), gerarel(), getconf(), gethexclude(), GetLogPeriod(), getperiod_buildtext(), getperiod_fromrange(), getuexclude(), getusers(), GraphDaysBytesBarColor, GraphFont, Graphs, HeaderBgColor, HeaderColor, HeaderFontSize, Height, HostAliasFile, ReadLogDataStruct::HostFilter, ImageFile, IncludeUsers, Index, INDEX_HTML_FILE, INDEX_ONLY, INDEX_TREE_FILE, INDEX_YES, IndexFields, INDEXFIELDS_DIRSIZE, indexonly, IndexSortOrder, IndexTree, Ip2Name, ip2name_cleanup(), ip2name_forcedns(), iprel, is_indexonly(), KeepTempLog, langcode, LastLog, LDAPBaseSearch, LDAPBindDN, LDAPBindPW, LDAPFilterSearch, LDAPHost, LDAPNativeCharset, LDAPPort, LDAPProtocolVersion, LDAPTargetAttr, lines_read, load_excludecodes(), LogoImage, LogoText, LogoTextColor, LongUrl, MailUtility, makeTmpDir(), ReadLogDataStruct::max_elapsed, MAX_REDIRECTOR_FILELEN, MAX_REDIRECTOR_LOGS, MaxElapsed, MAXLEN, my_mkdir(), nocost, NRedirectorLogs, NtlmUserFormat, NTLMUSERFORMAT_DOMAINUSER, NumLogSuccessiveErrors, NumLogTotalErrors, nusers, outdir, OutputDir, OutputEmail, OverwriteReport, ParsedOutputLog, ParsedOutputLogCompress, PasswdFile, period, Privacy, PrivacyString, PrivacyStringColor, rc, read_hostalias(), read_useralias(), ReadFilter, ReadLogFile(), realtime(), realtime_access_log_lines, realtime_refresh, REALTIME_UNAUTH_REC_SHOW, RealtimeTypes, RealtimeUnauthRec, records_kept, RecordsWithoutUser, RECORDWITHOUTUSER_IP, redirector_count, RedirectorFilterOutDate, RedirectorLogFormat, RedirectorLogFromCmdLine, RedirectorLogs, RemoveTempFiles, ReplaceIndex, REPORT_TYPE_AUTH_FAILURES, REPORT_TYPE_DATE_TIME, REPORT_TYPE_DENIED, REPORT_TYPE_DOWNLOADS, REPORT_TYPE_SITE_USER_TIME_DATE, REPORT_TYPE_SITES_USERS, REPORT_TYPE_TOPSITES, REPORT_TYPE_TOPUSERS, REPORT_TYPE_USERAGENT, REPORT_TYPE_USERS_SITES, ReportType, safe_strcpy(), set_download_suffix(), ShowReadPercent, ShowReadStatistics, ShowSargInfo, ShowSargLogo, site, SiteUsersReportLimit, SortTableJs, splitlog(), squid24, SquidGuardConf, SquidGuardReportLimit, periodstruct::start, ReadLogDataStruct::StartDate, ReadLogDataStruct::StartTime, SuccessfulMsg, ReadLogDataStruct::SysUsers, TempDir, TempDirPath, textdomain, TiColor, Title, TitleFontSize, tmp, TOPSITE_SORT_CONNECT, TOPSITE_SORT_REVERSE, TopSitesNum, TopsitesSort, TOPUSER_SORT_BYTES, TOPUSER_SORT_REVERSE, TopUserFields, TOPUSERFIELDS_AVERAGE, TOPUSERFIELDS_BYTES, TOPUSERFIELDS_CONNECT, TOPUSERFIELDS_DATE_TIME, TOPUSERFIELDS_IN_CACHE_OUT, TOPUSERFIELDS_MILISEC, TOPUSERFIELDS_NUM, TOPUSERFIELDS_PTIME, TOPUSERFIELDS_SETYB, TOPUSERFIELDS_TOTAL, TOPUSERFIELDS_USED_TIME, TOPUSERFIELDS_USERID, TopUsersNum, TopuserSort, TxBgColor, TxColor, Ulimit, us, usage(), UseComma, USER_SORT_BYTES, USER_SORT_REVERSE, useragent_count, UserAgentFromCmdLine, UserAgentLog, UserAliasFile, UserAuthentication, userfile, ReadLogDataStruct::UserFilter, userinfo_free(), UserInvalidChar, UserIp, UserReportFields, USERREPORTFIELDS_AVERAGE, USERREPORTFIELDS_BYTES, USERREPORTFIELDS_CONNECT, USERREPORTFIELDS_IN_CACHE_OUT, USERREPORTFIELDS_MILISEC, USERREPORTFIELDS_PTIME, USERREPORTFIELDS_SETYB, USERREPORTFIELDS_TOTAL, USERREPORTFIELDS_USED_TIME, UserReportLimit, UserSort, UserTabFile, VERSION, version(), and Width.

Referenced by getperiod_merge().

Here is the caller graph for this function:

Variable Documentation

◆ AccessLog

FileListObject AccessLog =NULL

List of the input log files to process.

Definition at line 43 of file log.c.

Referenced by GetLatestModified(), main(), parmtest(), and ReadLogFile().

◆ CurrentLocale

char* CurrentLocale =NULL

Selected locale set through the environment variable.

Definition at line 45 of file log.c.

Referenced by main(), and version().

◆ ReadFilter

◆ UserAgentFromCmdLine

bool UserAgentFromCmdLine = 0

Set to true if a useragent log is provided on the command line.

Definition at line 47 of file log.c.

Referenced by main(), and parmtest().

◆ UserAgentLog

FileListObject UserAgentLog

Definition at line 31 of file useragent.c.

Referenced by main().

◆ userfile

char* userfile =NULL

The list of the system users.

Definition at line 40 of file log.c.

Referenced by getusers(), main(), and process_user().