Struct rhit::Args[][src]

pub struct Args {
    pub version: bool,
    pub length: usize,
    pub tables: Tables,
    pub status: Option<String>,
    pub method: Option<String>,
    pub addr: Option<String>,
    pub date: Option<String>,
    pub path: Option<String>,
    pub referer: Option<String>,
    pub file: Option<PathBuf>,
}

Rhit gives you a report of the hits found in your nginx logs.

Source at https://github.com/Canop/rhit

Fields

version: bool

print the version

length: usize

detail level, from 0 to 6 (default 1), impacts the lengths of tables

tables: Tables

tables to display: comma separated list of tables (default all but methods). use -t a to get all tables. Available tables: date,status,method,addr,ref,path

status: Option<String>

comma separated list of statuses or status range. (eg: -s 514 or -s 4xx,5xx, or -s 310-340,400-450 or -s 5xx)

method: Option<String>

http method to filter by. Make it negative with a !. (eg: -m PUT or -m !DELETE or -m none or -m other)

addr: Option<String>

ip address to filter by. May be negated with a !

date: Option<String>

filter the dates, on a precise day or in an inclusive range (eg: -r 12/24 or -r '2021/12/24-2022/01/21')

path: Option<String>

filter the paths with a pattern (eg: -p broot or -p '^/\d+' or -p 'miaou | blog')

referer: Option<String>

filter the referers with a pattern

file: Option<PathBuf>

the log file or folder to analyze

Trait Implementations

impl Debug for Args[src]

impl FromArgs for Args[src]

impl TopLevelCommand for Args[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Fun for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.