A brief file description. More...
#include "libts.h"
#include "ink_config.h"
#include "ink_file.h"
#include "I_Layout.h"
#include "I_Version.h"
#include "LogStandalone.cc"
#include "LogObject.h"
#include "hdrs/HTTP.h"
#include <math.h>
#include <sys/utsname.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <string>
#include <algorithm>
#include <vector>
#include <list>
#include <functional>
#include <fcntl.h>
#include <ext/hash_map>
#include <ext/hash_set>
Go to the source code of this file.
Data Structures | |
struct | LastState |
struct | StatsCounter |
struct | ElapsedStats |
struct | OriginStats |
struct | UrlStats |
struct | eqstr |
struct | hash_fnv32 |
class | UrlLru |
struct | CommandLineArgs |
struct | ExitStatus |
Defines | |
#define | _XOPEN_SOURCE 600 |
#define | PROGRAM_NAME "traffic_logstats" |
#define | _BACKWARD_BACKWARD_WARNING_H |
Typedefs | |
typedef std::list< UrlStats > | LruStack |
typedef __gnu_cxx::hash_map < const char *, OriginStats *, hash_fnv32, eqstr > | OriginStorage |
typedef __gnu_cxx::hash_set < const char *, hash_fnv32, eqstr > | OriginSet |
typedef __gnu_cxx::hash_map < const char *, LruStack::iterator, hash_fnv32, eqstr > | LruHash |
typedef pair< const char *, OriginStats * > | OriginPair |
Enumerations | |
enum | ExitLevel { EXIT_OK = 0, EXIT_WARNING = 1, EXIT_CRITICAL = 2, EXIT_UNKNOWN = 3 } |
enum | ParseStates { P_STATE_ELAPSED, P_STATE_IP, P_STATE_RESULT, P_STATE_CODE, P_STATE_SIZE, P_STATE_METHOD, P_STATE_URL, P_STATE_RFC931, P_STATE_HIERARCHY, P_STATE_PEER, P_STATE_TYPE, P_STATE_END } |
enum | HTTPMethod { METHOD_OPTIONS, METHOD_GET, METHOD_HEAD, METHOD_POST, METHOD_PUT, METHOD_DELETE, METHOD_TRACE, METHOD_CONNECT, METHOD_PURGE, METHOD_NONE, METHOD_OTHER } |
enum | URLScheme { SCHEME_HTTP, SCHEME_HTTPS, SCHEME_NONE, SCHEME_OTHER } |
Functions | |
template<class T , class N > | |
void | rehash (T &container, N size) |
void | update_elapsed (ElapsedStats &stat, const int elapsed, const StatsCounter &counter) |
void | init_elapsed (OriginStats *stats) |
void | update_counter (StatsCounter &counter, int size) |
void | update_results_elapsed (OriginStats *stat, int result, int elapsed, int size) |
void | update_codes (OriginStats *stat, int code, int size) |
void | update_methods (OriginStats *stat, int method, int size) |
void | update_schemes (OriginStats *stat, int scheme, int size) |
int | parse_log_buff (LogBufferHeader *buf_header, bool summary=false) |
int | process_file (int in_fd, off_t offset, unsigned max_age) |
int | use_origin (const OriginStats *stat) |
void | format_center (const char *str) |
void | format_int (int64_t num) |
void | format_elapsed_header () |
void | format_elapsed_line (const char *desc, const ElapsedStats &stat, bool json=false) |
void | format_detail_header (const char *desc) |
void | format_line (const char *desc, const StatsCounter &stat, const StatsCounter &total, bool json=false) |
bool | operator< (const OriginPair &a, const OriginPair &b) |
void | print_detail_stats (const OriginStats *stat, bool json=false) |
void | my_exit (const ExitStatus &status) |
int | open_main_log (ExitStatus &status) |
int | main (int, char *argv[]) |
Variables | |
const int | MAX_LOGBUFFER_SIZE = 65536 |
const int | DEFAULT_LINE_LEN = 78 |
const double | LOG10_1024 = 3.0102999566398116 |
const int | MAX_ORIG_STRING = 4096 |
const int | GET_AS_INT = 5522759 |
const int | PUT_AS_INT = 5526864 |
const int | HEAD_AS_INT = 1145128264 |
const int | POST_AS_INT = 1414745936 |
const int | TEXT_AS_INT = 1954047348 |
const int | JPEG_AS_INT = 1734701162 |
const int | JPG_AS_INT = 6778986 |
const int | GIF_AS_INT = 6711655 |
const int | PNG_AS_INT = 6778480 |
const int | BMP_AS_INT = 7368034 |
const int | CSS_AS_INT = 7566179 |
const int | XML_AS_INT = 7105912 |
const int | HTML_AS_INT = 1819112552 |
const int | ZIP_AS_INT = 7367034 |
const int | JAVA_AS_INT = 1635148138 |
const int | X_JA_AS_INT = 1634348408 |
const int | RSSp_AS_INT = 728986482 |
const int | PLAI_AS_INT = 1767992432 |
const int | IMAG_AS_INT = 1734438249 |
const int | HTTP_AS_INT = 1886680168 |
static LastState | last_state |
static OriginStats | totals |
static OriginStorage | origins |
static OriginSet * | origin_set |
static UrlLru * | urls |
static int | parse_errors |
static CommandLineArgs | cl |
static ArgumentDescription | argument_descriptions [] |
static const char * | USAGE_LINE = " [-f logfile] [-o origin[,...]] [-O originfile] [-m minhits] [-inshv]" |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file logstats.cc.
#define _BACKWARD_BACKWARD_WARNING_H |
Definition at line 362 of file logstats.cc.
#define _XOPEN_SOURCE 600 |
Definition at line 56 of file logstats.cc.
#define PROGRAM_NAME "traffic_logstats" |
Definition at line 62 of file logstats.cc.
Referenced by main().
typedef __gnu_cxx::hash_map<const char *, LruStack::iterator, hash_fnv32, eqstr> LruHash |
Definition at line 367 of file logstats.cc.
Definition at line 345 of file logstats.cc.
typedef pair<const char *, OriginStats *> OriginPair |
Definition at line 1902 of file logstats.cc.
typedef __gnu_cxx::hash_set<const char *, hash_fnv32, eqstr> OriginSet |
Definition at line 366 of file logstats.cc.
typedef __gnu_cxx::hash_map<const char *, OriginStats *, hash_fnv32, eqstr> OriginStorage |
Definition at line 365 of file logstats.cc.
enum ExitLevel |
Definition at line 747 of file logstats.cc.
enum HTTPMethod |
METHOD_OPTIONS | |
METHOD_GET | |
METHOD_HEAD | |
METHOD_POST | |
METHOD_PUT | |
METHOD_DELETE | |
METHOD_TRACE | |
METHOD_CONNECT | |
METHOD_PURGE | |
METHOD_NONE | |
METHOD_OTHER |
Definition at line 801 of file logstats.cc.
enum ParseStates |
P_STATE_ELAPSED | |
P_STATE_IP | |
P_STATE_RESULT | |
P_STATE_CODE | |
P_STATE_SIZE | |
P_STATE_METHOD | |
P_STATE_URL | |
P_STATE_RFC931 | |
P_STATE_HIERARCHY | |
P_STATE_PEER | |
P_STATE_TYPE | |
P_STATE_END |
Definition at line 784 of file logstats.cc.
enum URLScheme |
Definition at line 817 of file logstats.cc.
void format_center | ( | const char * | str | ) | [inline] |
Definition at line 1800 of file logstats.cc.
References cl, and CommandLineArgs::line_len.
Referenced by my_exit().
void format_detail_header | ( | const char * | desc | ) |
Definition at line 1860 of file logstats.cc.
References cl, and CommandLineArgs::line_len.
Referenced by print_detail_stats().
void format_elapsed_header | ( | ) |
Definition at line 1827 of file logstats.cc.
References cl, and CommandLineArgs::line_len.
Referenced by print_detail_stats().
void format_elapsed_line | ( | const char * | desc, | |
const ElapsedStats & | stat, | |||
bool | json = false | |||
) | [inline] |
Definition at line 1836 of file logstats.cc.
References ElapsedStats::avg, format_int(), ElapsedStats::max, ElapsedStats::min, and ElapsedStats::stddev.
Referenced by print_detail_stats().
void format_int | ( | int64_t | num | ) | [inline] |
Definition at line 1806 of file logstats.cc.
Referenced by format_elapsed_line(), format_line(), and my_exit().
void format_line | ( | const char * | desc, | |
const StatsCounter & | stat, | |||
const StatsCounter & | total, | |||
bool | json = false | |||
) | [inline] |
Definition at line 1869 of file logstats.cc.
References StatsCounter::bytes, StatsCounter::count, format_int(), and LOG10_1024.
Referenced by print_detail_stats().
void init_elapsed | ( | OriginStats * | stats | ) | [inline] |
Definition at line 829 of file logstats.cc.
References OriginStats::elapsed, OriginStats::hits, and OriginStats::misses.
Referenced by main(), and parse_log_buff().
int main | ( | int | , | |
char * | argv[] | |||
) |
Definition at line 2286 of file logstats.cc.
References ExitStatus::append(), appVersionInfo, argument_descriptions, CommandLineArgs::as_object, ats_strdup, BUILD_MACHINE, BUILD_PERSON, CommandLineArgs::cgi, cl, countof, Layout::create(), EXIT_CRITICAL, EXIT_OK, EXIT_WARNING, Layout::get(), CommandLineArgs::incremental, Log::init(), init_elapsed(), init_log_standalone_basic(), last_state, ExitStatus::level, CommandLineArgs::log_file, Log::LOGCAT, CommandLineArgs::max_age, my_exit(), Log::NO_REMOTE_MANAGEMENT, LastState::offset, open_main_log(), CommandLineArgs::origin_file, CommandLineArgs::origin_list, origin_set, PACKAGE_NAME, PACKAGE_VERSION, CommandLineArgs::parse_arguments(), parse_errors, process_file(), PROGRAM_NAME, ExitStatus::set(), AppVersionInfo::setup(), CommandLineArgs::show_urls, LastState::st_ino, start, CommandLineArgs::state_tag, CommandLineArgs::tail, totals, urls, CommandLineArgs::urls, usage(), and USAGE_LINE.
void my_exit | ( | const ExitStatus & | status | ) |
Definition at line 2140 of file logstats.cc.
References CommandLineArgs::as_object, cl, UrlLru::dump(), EXIT_CRITICAL, EXIT_OK, EXIT_UNKNOWN, EXIT_WARNING, format_center(), format_int(), CommandLineArgs::json, ExitStatus::level, CommandLineArgs::line_len, CommandLineArgs::max_origins, ExitStatus::notice, origin_set, origins, print_detail_stats(), totals, urls, and use_origin().
Referenced by main().
int open_main_log | ( | ExitStatus & | status | ) |
Definition at line 2252 of file logstats.cc.
References ExitStatus::append(), and Layout::get().
Referenced by main().
bool operator< | ( | const OriginPair & | a, | |
const OriginPair & | b | |||
) | [inline] |
Definition at line 1904 of file logstats.cc.
int parse_log_buff | ( | LogBufferHeader * | buf_header, | |
bool | summary = false | |||
) |
Definition at line 1204 of file logstats.cc.
References LogFieldIp::_family, UrlLru::add_stat(), OriginStats::application, CommandLineArgs::as_object, ats_malloc(), ats_strdup, OriginStats::audio, BMP_AS_INT, cl, OriginStats::content, CSS_AS_INT, OriginStats::direct, OriginStats::empty, LogFieldList::first(), LogBufferHeader::fmt_fieldlist(), GET_AS_INT, GIF_AS_INT, HEAD_AS_INT, OriginStats::hierarchies, HTML_AS_INT, HTTP_AS_INT, IMAG_AS_INT, OriginStats::image, init_elapsed(), INK_ALIGN_DEFAULT, ink_assert, OriginStats::invalid, JAVA_AS_INT, JPEG_AS_INT, JPG_AS_INT, LogFieldList::next(), LogBufferIterator::next(), OriginStats::none, origin_set, origins, OriginStats::other, P_STATE_CODE, P_STATE_ELAPSED, P_STATE_END, P_STATE_HIERARCHY, P_STATE_IP, P_STATE_METHOD, P_STATE_PEER, P_STATE_RESULT, P_STATE_RFC931, P_STATE_SIZE, P_STATE_TYPE, P_STATE_URL, OriginStats::parent, parse_errors, LogFormat::parse_symbol_string(), PLAI_AS_INT, PNG_AS_INT, POST_AS_INT, PUT_AS_INT, LogAccess::round_strlen(), RSSp_AS_INT, OriginStats::server, OriginStats::sibling, SQUID_HIER_DIRECT, SQUID_HIER_EMPTY, SQUID_HIER_INVALID_ASSIGNED_CODE, SQUID_HIER_NONE, SQUID_HIER_PARENT_HIT, SQUID_HIER_SIBLING_HIT, LogAccess::strlen(), OriginStats::text, TEXT_AS_INT, OriginStats::total, totals, update_codes(), update_counter(), update_methods(), update_results_elapsed(), update_schemes(), urls, X_JA_AS_INT, XML_AS_INT, and ZIP_AS_INT.
Referenced by process_file().
void print_detail_stats | ( | const OriginStats * | stat, | |
bool | json = false | |||
) |
Definition at line 1910 of file logstats.cc.
References OriginStats::application, OriginStats::audio, OriginStats::c_000, OriginStats::c_100, OriginStats::c_200, OriginStats::c_201, OriginStats::c_202, OriginStats::c_203, OriginStats::c_204, OriginStats::c_205, OriginStats::c_206, OriginStats::c_2xx, OriginStats::c_300, OriginStats::c_301, OriginStats::c_302, OriginStats::c_303, OriginStats::c_304, OriginStats::c_305, OriginStats::c_307, OriginStats::c_3xx, OriginStats::c_400, OriginStats::c_401, OriginStats::c_402, OriginStats::c_403, OriginStats::c_404, OriginStats::c_405, OriginStats::c_406, OriginStats::c_407, OriginStats::c_408, OriginStats::c_409, OriginStats::c_410, OriginStats::c_411, OriginStats::c_412, OriginStats::c_413, OriginStats::c_414, OriginStats::c_415, OriginStats::c_416, OriginStats::c_417, OriginStats::c_4xx, OriginStats::c_500, OriginStats::c_501, OriginStats::c_502, OriginStats::c_503, OriginStats::c_504, OriginStats::c_505, OriginStats::c_5xx, cl, OriginStats::codes, OriginStats::connect, OriginStats::content, OriginStats::del, OriginStats::direct, OriginStats::elapsed, OriginStats::empty, OriginStats::errors, format_detail_header(), format_elapsed_header(), format_elapsed_line(), format_line(), OriginStats::get, OriginStats::head, OriginStats::hierarchies, OriginStats::hits, OriginStats::http, OriginStats::https, OriginStats::image, ink_time_wall_seconds(), OriginStats::invalid, CommandLineArgs::line_len, OriginStats::methods, OriginStats::misses, OriginStats::none, OriginStats::options, OriginStats::other, OriginStats::parent, OriginStats::post, OriginStats::purge, OriginStats::put, OriginStats::results, OriginStats::schemes, OriginStats::sibling, OriginStats::text, OriginStats::total, and OriginStats::trace.
Referenced by my_exit().
int process_file | ( | int | in_fd, | |
off_t | offset, | |||
unsigned | max_age | |||
) |
Definition at line 1672 of file logstats.cc.
References LogBufferHeader::byte_count, cl, LogBufferHeader::cookie, Debug, LogBufferHeader::high_timestamp, LOG_SEGMENT_COOKIE, LOG_SEGMENT_VERSION, MAX_LOGBUFFER_SIZE, parse_log_buff(), CommandLineArgs::summary, and LogBufferHeader::version.
Referenced by main().
void rehash | ( | T & | container, | |
N | size | |||
) |
Definition at line 372 of file logstats.cc.
void update_codes | ( | OriginStats * | stat, | |
int | code, | |||
int | size | |||
) | [inline] |
Definition at line 986 of file logstats.cc.
References OriginStats::c_000, OriginStats::c_100, OriginStats::c_200, OriginStats::c_201, OriginStats::c_202, OriginStats::c_203, OriginStats::c_204, OriginStats::c_205, OriginStats::c_206, OriginStats::c_2xx, OriginStats::c_300, OriginStats::c_301, OriginStats::c_302, OriginStats::c_303, OriginStats::c_304, OriginStats::c_305, OriginStats::c_307, OriginStats::c_3xx, OriginStats::c_400, OriginStats::c_401, OriginStats::c_402, OriginStats::c_403, OriginStats::c_404, OriginStats::c_405, OriginStats::c_406, OriginStats::c_407, OriginStats::c_408, OriginStats::c_409, OriginStats::c_410, OriginStats::c_411, OriginStats::c_412, OriginStats::c_413, OriginStats::c_414, OriginStats::c_415, OriginStats::c_416, OriginStats::c_417, OriginStats::c_4xx, OriginStats::c_500, OriginStats::c_501, OriginStats::c_502, OriginStats::c_503, OriginStats::c_504, OriginStats::c_505, OriginStats::c_5xx, OriginStats::codes, and update_counter().
Referenced by parse_log_buff().
void update_counter | ( | StatsCounter & | counter, | |
int | size | |||
) | [inline] |
Definition at line 845 of file logstats.cc.
References StatsCounter::bytes, and StatsCounter::count.
Referenced by parse_log_buff(), update_codes(), update_methods(), update_results_elapsed(), and update_schemes().
void update_elapsed | ( | ElapsedStats & | stat, | |
const int | elapsed, | |||
const StatsCounter & | counter | |||
) | [inline] |
Definition at line 852 of file logstats.cc.
References ElapsedStats::avg, StatsCounter::count, ink_release_assert, ElapsedStats::max, ElapsedStats::min, and ElapsedStats::stddev.
Referenced by UrlLru::add_stat(), and update_results_elapsed().
void update_methods | ( | OriginStats * | stat, | |
int | method, | |||
int | size | |||
) | [inline] |
Definition at line 1134 of file logstats.cc.
References OriginStats::connect, OriginStats::del, OriginStats::get, OriginStats::head, METHOD_CONNECT, METHOD_DELETE, METHOD_GET, METHOD_HEAD, METHOD_NONE, METHOD_OPTIONS, METHOD_POST, METHOD_PURGE, METHOD_PUT, METHOD_TRACE, OriginStats::methods, OriginStats::none, OriginStats::options, OriginStats::other, OriginStats::post, OriginStats::purge, OriginStats::put, OriginStats::trace, and update_counter().
Referenced by parse_log_buff().
void update_results_elapsed | ( | OriginStats * | stat, | |
int | result, | |||
int | elapsed, | |||
int | size | |||
) | [inline] |
Definition at line 898 of file logstats.cc.
References OriginStats::elapsed, OriginStats::errors, OriginStats::hits, OriginStats::misses, OriginStats::other, OriginStats::results, SQUID_LOG_ERR_CLIENT_ABORT, SQUID_LOG_ERR_CONNECT_FAIL, SQUID_LOG_ERR_INVALID_REQ, SQUID_LOG_ERR_READ_TIMEOUT, SQUID_LOG_ERR_UNKNOWN, SQUID_LOG_TCP_DISK_HIT, SQUID_LOG_TCP_EXPIRED_MISS, SQUID_LOG_TCP_HIT, SQUID_LOG_TCP_IMS_HIT, SQUID_LOG_TCP_IMS_MISS, SQUID_LOG_TCP_MEM_HIT, SQUID_LOG_TCP_MISS, SQUID_LOG_TCP_REF_FAIL_HIT, SQUID_LOG_TCP_REFRESH_HIT, SQUID_LOG_TCP_REFRESH_MISS, SQUID_LOG_TCP_WEBFETCH_MISS, SQUID_LOG_UDP_HIT, SQUID_LOG_UDP_HIT_OBJ, SQUID_LOG_UDP_MISS, SQUID_LOG_UDP_WEAK_HIT, update_counter(), and update_elapsed().
Referenced by parse_log_buff().
void update_schemes | ( | OriginStats * | stat, | |
int | scheme, | |||
int | size | |||
) | [inline] |
Definition at line 1188 of file logstats.cc.
References OriginStats::http, OriginStats::https, OriginStats::none, OriginStats::other, SCHEME_HTTP, SCHEME_HTTPS, SCHEME_NONE, OriginStats::schemes, and update_counter().
Referenced by parse_log_buff().
int use_origin | ( | const OriginStats * | stat | ) | [inline] |
Definition at line 1791 of file logstats.cc.
References cl, StatsCounter::count, CommandLineArgs::min_hits, OriginStats::server, and OriginStats::total.
Referenced by my_exit().
ArgumentDescription argument_descriptions[] [static] |
{ {"help", 'h', "Give this help", "T", &cl.help, NULL, NULL}, {"log_file", 'f', "Specific logfile to parse", "S1023", cl.log_file, NULL, NULL}, {"origin_list", 'o', "Only show stats for listed Origins", "S4095", cl.origin_list, NULL, NULL}, {"origin_file", 'O', "File listing Origins to show", "S1023", cl.origin_file, NULL, NULL}, {"max_orgins", 'M', "Max number of Origins to show", "I", &cl.max_origins, NULL, NULL}, {"urls", 'u', "Produce JSON stats for URLs, argument is LRU size", "I", &cl.urls, NULL, NULL}, {"show_urls", 'U', "Only show max this number of URLs", "I", &cl.show_urls, NULL, NULL}, {"as_object", 'A', "Produce URL stats as a JSON object instead of array", "T", &cl.as_object, NULL, NULL}, {"incremental", 'i', "Incremental log parsing", "T", &cl.incremental, NULL, NULL}, {"statetag", 'S', "Name of the state file to use", "S1023", cl.state_tag, NULL, NULL}, {"tail", 't', "Parse the last <sec> seconds of log", "I", &cl.tail, NULL, NULL}, {"summary", 's', "Only produce the summary", "T", &cl.summary, NULL, NULL}, {"json", 'j', "Produce JSON formatted output", "T", &cl.json, NULL, NULL}, {"cgi", 'c', "Produce HTTP headers suitable as a CGI", "T", &cl.cgi, NULL, NULL}, {"min_hits", 'm', "Minimum total hits for an Origin", "L", &cl.min_hits, NULL, NULL}, {"max_age", 'a', "Max age for log entries to be considered", "I", &cl.max_age, NULL, NULL}, {"line_len", 'l', "Output line length", "I", &cl.line_len, NULL, NULL}, {"debug_tags", 'T', "Colon-Separated Debug Tags", "S1023", &error_tags, NULL, NULL}, {"version", 'V', "Print Version Id", "T", &cl.version, NULL, NULL}, }
Definition at line 658 of file logstats.cc.
const int BMP_AS_INT = 7368034 |
Definition at line 83 of file logstats.cc.
Referenced by parse_log_buff().
CommandLineArgs cl [static] |
Definition at line 656 of file logstats.cc.
Referenced by format_center(), format_detail_header(), format_elapsed_header(), HttpTransact::handle_content_length_header(), HttpTransact::initialize_state_variables_from_response(), HttpSM::is_http_server_eos_truncation(), main(), my_exit(), parse_log_buff(), print_detail_stats(), process_file(), and use_origin().
const int CSS_AS_INT = 7566179 |
Definition at line 84 of file logstats.cc.
Referenced by parse_log_buff().
const int DEFAULT_LINE_LEN = 78 |
Definition at line 65 of file logstats.cc.
const int GET_AS_INT = 5522759 |
Definition at line 72 of file logstats.cc.
Referenced by parse_log_buff().
const int GIF_AS_INT = 6711655 |
Definition at line 81 of file logstats.cc.
Referenced by parse_log_buff().
const int HEAD_AS_INT = 1145128264 |
Definition at line 74 of file logstats.cc.
Referenced by parse_log_buff().
const int HTML_AS_INT = 1819112552 |
Definition at line 86 of file logstats.cc.
Referenced by parse_log_buff().
const int HTTP_AS_INT = 1886680168 |
Definition at line 94 of file logstats.cc.
Referenced by parse_log_buff().
const int IMAG_AS_INT = 1734438249 |
Definition at line 93 of file logstats.cc.
Referenced by parse_log_buff().
const int JAVA_AS_INT = 1635148138 |
Definition at line 89 of file logstats.cc.
Referenced by parse_log_buff().
const int JPEG_AS_INT = 1734701162 |
Definition at line 79 of file logstats.cc.
Referenced by parse_log_buff().
const int JPG_AS_INT = 6778986 |
Definition at line 80 of file logstats.cc.
Referenced by parse_log_buff().
LastState last_state [static] |
Definition at line 102 of file logstats.cc.
Referenced by main(), and ClusterHandler::mainClusterEvent().
const double LOG10_1024 = 3.0102999566398116 |
Definition at line 66 of file logstats.cc.
Referenced by format_line().
const int MAX_LOGBUFFER_SIZE = 65536 |
Definition at line 64 of file logstats.cc.
Referenced by process_file().
const int MAX_ORIG_STRING = 4096 |
Definition at line 67 of file logstats.cc.
Referenced by CommandLineArgs::parse_arguments().
OriginSet* origin_set [static] |
Definition at line 617 of file logstats.cc.
Referenced by main(), my_exit(), and parse_log_buff().
OriginStorage origins [static] |
Definition at line 616 of file logstats.cc.
Referenced by my_exit(), and parse_log_buff().
int parse_errors [static] |
Definition at line 619 of file logstats.cc.
Referenced by main(), and parse_log_buff().
const int PLAI_AS_INT = 1767992432 |
Definition at line 92 of file logstats.cc.
Referenced by parse_log_buff().
const int PNG_AS_INT = 6778480 |
Definition at line 82 of file logstats.cc.
Referenced by parse_log_buff().
const int POST_AS_INT = 1414745936 |
Definition at line 75 of file logstats.cc.
Referenced by parse_log_buff().
const int PUT_AS_INT = 5526864 |
Definition at line 73 of file logstats.cc.
Referenced by parse_log_buff().
const int RSSp_AS_INT = 728986482 |
Definition at line 91 of file logstats.cc.
Referenced by parse_log_buff().
const int TEXT_AS_INT = 1954047348 |
Definition at line 77 of file logstats.cc.
Referenced by parse_log_buff().
OriginStats totals [static] |
Definition at line 615 of file logstats.cc.
Referenced by main(), my_exit(), and parse_log_buff().
Definition at line 618 of file logstats.cc.
Referenced by main(), my_exit(), parse_log_buff(), and SDK_API_TSUrlParse().
const char* USAGE_LINE = " [-f logfile] [-o origin[,...]] [-O originfile] [-m minhits] [-inshv]" [static] |
Definition at line 680 of file logstats.cc.
Referenced by main(), and CommandLineArgs::parse_arguments().
const int X_JA_AS_INT = 1634348408 |
Definition at line 90 of file logstats.cc.
Referenced by parse_log_buff().
const int XML_AS_INT = 7105912 |
Definition at line 85 of file logstats.cc.
Referenced by parse_log_buff().
const int ZIP_AS_INT = 7367034 |
Definition at line 87 of file logstats.cc.
Referenced by parse_log_buff().