logs-anal

Crates.iologs-anal
lib.rslogs-anal
version0.1.1
sourcesrc
created_at2020-03-13 13:27:20.108037
updated_at2020-03-13 13:27:20.108037
descriptionCommand line logs analytics tool.
homepagehttps://mnwa.github.io/logs-anal/
repositoryhttps://github.com/Mnwa/logs-anal
max_upload_size
id218141
size15,381
Mikhail Panfilov (Mnwa)

documentation

https://mnwa.github.io/logs-anal/

README

Simple and fast logs analysis utils

Rust

Installing with cargo

cargo install logs-anal

Usage

logs-anal -h

#Logs Analysis Tool 0.1.1
#Mnwa
#Analyze logs with comfort
#
#USAGE:
#    logs-anal [OPTIONS] --command <Enum> [INPUT]
#
#FLAGS:
#    -h, --help       Prints help information
#    -V, --version    Prints version information
#
#OPTIONS:
#    -k, --column <Number>       Column for sorting
#    -c, --command <Enum>        Runs that command  [possible values: sort, head, skip, tail, uniq, wc]
#    -d, --delimiter <String>    Delimiter for sorting (default is whitespace)
#    -n, --lines <Number>        Lines for skip or take rows
#    -o, --order <ORDER_TYPE>    Sorting order [possible values: asc, desc]
#
#ARGS:
#    <INPUT>    Sets the input file to use

Usage example

echo "Joe   56789
Sam   45678
Wendy 23456
Adam  12345
Bob   34567" | logs-anal -c sort -k 1

# Adam  12345
# Bob   34567
# Joe   56789
# Sam   45678
# Wendy 23456

Supported tools

  • sort
  • head
  • skip
  • tail
  • uniq
  • wc
Commit count: 12

cargo fmt