Struct rhit::args::Args [−][src]
Rhit gives you a report of the hits found in your nginx logs.
Complete documentation at https://dystroy.org/rhit
Fields
version: bool
print the version
color: BoolArg
color and style: ‘yes’, ‘no’ or ‘auto’ (auto should be good in most cases)
key: Key
key used in sorting and histogram, either ‘hits’ (default) or ‘bytes’
length: usize
detail level, from 0 to 6 (default 1), impacts the lengths of tables
fields: Fields
comma separated list of hit fields to display.
Use -f a
to get all fields.
Use -f +i
to add i(p).
Available fields: date,method,status,ip,ref,path.
Default fields: date,status,ref,path.
changes: bool
add tables with more popular and less popular entries (ip, referers or paths)
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'
)
ip: Option<String>
ip address to filter by. May be negated with a !
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
)
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
status: Option<String>
comma separated list of statuses or status ranges.
(eg: -s 514
or -s 4xx,5xx
, or -s 310-340,400-450
or -s 5xx,!502
)
all: bool
show all paths, including resources
no_name_check: bool
tries to open all files, whatever their names
lines: bool
print the original log lines, filtered and sorted
file: Option<PathBuf>
the log file or folder to analyze
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[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]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a Tⓘ
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tⓘ
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,