Crate rhit

Crate rhit 

Source

Re-exports§

pub use output::*;

Modules§

args
md
output

Structs§

BufReader
The BufReader<R> struct adds buffering to any reader.
Date
a not precise date, only valid in the context of the local set of log files. It’s implicitely in the timezone of the log files (assuming all the files have the same one). As nginx didn’t exist before JC, a u16 is good enough for the year.
DateBar
DateHistogram
DateTime
a date with time.
Fields
File
An object providing access to an open file on the filesystem.
FileFinder
FileReader
Filterer
Filtering
LineGroup
A non empty group of lines, with a common characteristic, for stats
LogBase
LogLine
A line in the access log, describing a hit.
MethodFilter
A filter for HTTP methods
Path
A slice of a path (akin to str).
Ranger
StatusFilter
A filter for status, allowing classes, ranges and exclusions Examples: 4xx 4xx,503 402-417,503 4xx,!404
StrFilter
a filter for strings
Time
a time, only valid in the context of the local set of log files. It’s implicitely in the timezone of the log files (assuming all the files have the same one).
TimeHistogram
An histogram of hit times.
Trend
TrendComputer

Enums§

DateTimeFilter
Field
one of the tables that can be displayed
Filter
Key
Method
An HTTP method
ParseDateTimeError
ParseFieldError
ParseKeyError
ParseLogError
ParseStatusFilterError
ParseStrFilterError
ParseTimeFilterError
RhitError
TimeFilter

Statics§

ALL_FIELDS
DEFAULT_FIELDS
MONTHS_3_LETTERS

Traits§

BufRead
A BufRead is a type of Reader which has an internal buffer, allowing it to perform extra ways of reading.
DateIndexed
A trait for structs which hold the index of a date
FromStr
Parse a value from a string
LineConsumer
Read
The Read trait allows for reading bytes from a source.

Functions§

get_file_first_date
histo_line
will panic if counts aren’t consistent with the max or if the max is 0. Use full height only if you don’t need to keep a margin with le line above
is_access_log_path
print_csv_lines
print_json_lines
print_raw_lines
run
unique_year_month