Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

hpstat takes lines in the httpipe format via standard input and prints them, if they match a given status code filter. If no filter is given, hpstat will count how often each status code occurs.

Examples

$ cat /path/to/saved/httpipe | hpstatInvalid lines: 3Status code 200: 1013xStatus code 301: 11xStatus code 404: 2817xStatus code 500: 1x
$ # Investigate the 500 response:
$ cat /path/to/saved/httpipe | hpstat 500 | jq ....
$ # Extract all non-2xx responses:
$ cat /path/to/saved/httpipe | hpstat -v 200:299 > /path/to/new/file

Installation

You can download precompiled binaries from the releases page or install it with go install github.com/codesoap/hpstat@latest.

Usage

$ hpstat -hUsage: hpstat [-v] [FILTER]...If no argument is given, the amounts of occurrences of each status codeare counted and displayed.If one or more arguments are given, lines are filtered and printed onlyif they match the filter. Arguments may either be single status codes,like '200' or ranges, like '200:299'.If the -v flag is given, the filter is inverted. Only lines with statuscodes, that don't match the given arguments, will be printed.

About

a status code filter for the httpipe format

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages