Ordnung muß sein. Ordnung über alles (18+)

User Tools

Site Tools





Добавить новую страницу

You are not allowed to add pages

Утилита httpry

Description httpry is a tool designed for displaying and logging HTTP traffic. It is not intended to perform analysis itself, but instead to capture, parse and/or log the traffic for later analysis. It can be run in real-time displaying the live traffic on the wire, or as a daemon process that logs to an output file. It is written to be as lightweight and flexible as possible, so that it can be easily adaptable to different applications. It does not display the raw HTTP data transferred, but instead focuses on parsing and displaying the request/response line along with associated header fields.
Homepage http://dumpsterventures.com/jason/httpry/, https://github.com/jbittel/httpry

НЕ работает с https


# yum install httpry
# apt-get install httpry

Пример запуска

# httpry -i eth0
2016-12-23 15:00:45  >  GET  rtfm.wiki  /  HTTP/1.1  -    -
2016-12-23 15:00:45  <  -    -          -  HTTP/1.1  200  OK

Добавив ключ -s можно также посмотреть количество запросов в секунду и найти наиболее активный виртуальный хост

# httpry -i eth0 -s
2016-12-23 15:35:36     example.com        103 rps
2016-12-23 15:35:36     dev.example.com    3 rps
2016-12-23 15:35:36     totals  106.00 rps
2016-12-23 15:35:41     example.com        116 rps
2016-12-23 15:35:41     dev.example.com    5 rps
2016-12-23 15:35:41     totals  120.80 rps
2016-12-23 15:35:46     example.com        121 rps
2016-12-23 15:35:46     dev.example.com    5 rps
2016-12-23 15:35:46     foobar.com         6 rps
2016-12-23 15:35:46     totals  127.40 rps


Enter your comment. Wiki syntax is allowed:
linux/httpry.txt · Last modified: 2016/12/21 18:57 (external edit)