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.
$ 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/fileYou can download precompiled binaries from the releases
page or install it with
go install github.com/codesoap/hpstat@latest.
$ 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.