Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 813 Bytes

examples.md

File metadata and controls

22 lines (15 loc) · 813 Bytes

EXAMPLES

# Show top 30 visited urls. Update it every 5 seconds for 60 seconds (default)
$ cat testfiles/access.log | statpipe -f 7

# Most active ip's that are not 10.84.X.X
$ varnishncsa |statpipe -f 7 --limit 15 --not 10.84 '^([^\?]+)\??'

# Seperate fields by " and show field two
$ tail -f /var/log/httpd/access.log | statpipe -d \" -f 2

# Group jpeg and jpg differently
$ tail -f /var/log/httpd/access.log | statpipe 'jpe?g' png gif

# Group jpeg and jpg into one key
$ tail -f /var/log/httpd/access.log | statpipe '(jpe?g)' png gif --not gift

# Count all words in a file
$ cat file | statpipe --multi '(\w)'

# List top 20 articles the last 10 seconds
$ tail -f /var/log/httpd/access.log | statpipe 'artid=(\d+)' --maxtime=10 --limit 20 --time=0