A command line pipe inspection utility.
pipeview.toml
file in current folder or ~/.config/
.pv
) - WIP.Explicit coloring can be performed on the input based on a regular expression.
bash
$ cat test/demo_nginx_access_log | pipeview "^(.*?) - - \\[(.*?)\\] \"(.*?) .*?\" (.*?) .*? \".*?\" \"(.*?)\"" 'bgreen white yellow cyan blue'
Nginx and aim logs can be directly inspected using the --nginx
or --aim
flag:
bash
$ cat test/demo_nginx_access_log | pipeview --nginx
You can create a config in ~/.config/pipeview.toml
or the current folder with filename pipeview.toml
and call it using pipeview --config=foo
.
An example custom config could be:
toml
[foo]
regex="^(.*?) (.*?) (.*?): (.*?) (.*)"
colors="red green blue red green"
bash
$ cargo install pipeview