Registry / utility / jls-grok

jls-grok

JSON →
library0.11.5rbrubygemsunverified

Grok Ruby bindings for pattern matching and extraction.

gem install jls-grok
INSTALL
IMPORT
SIG · JLS-GROK
J
jls-grok
utilityrubyv0.11.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Grok
require 'jls-grok'

Parse a log line using Grok patterns

require 'jls-grok' grok = Grok.new grok.add_patterns_from_file('/path/to/patterns') grok.compile('%{IP:client_ip}') result = grok.match('192.168.1.1') puts result.captures['client_ip']
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.11.5latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
jls-grok — gem install jls-grok · libregistry