grok

Simplify regular expressions with a pattern matching tool for DRY regex

brewmacoslinux
Try with needOr install directly
Source

About

DRY and RAD for regular expressions and then some

Commands

grok

Examples

Test a pattern against input text$ grok '%{IP}' '192.168.1.1'
Extract named groups from log lines$ grok '%{IP:ip} - %{USER:user}' '10.0.0.1 - admin' -o json
List available patterns$ grok -l