angle-grinder

Parse, filter, and aggregate log files with SQL-like syntax

brewmacoslinux
Try with needOr install directly
Source

About

Slice and dice log files on the command-line

Commands

ag

Examples

Extract specific fields from a log file$ ag 'select _raw | grep ERROR' access.log
Count occurrences of events grouped by status code$ ag 'select status, count() | grep status' access.log
Filter logs for requests with latency > 1000ms$ ag 'select _raw | grep latency > 1000' app.log