Registry / utility / vjeantet-grok

vjeantet-grok

JSON →
library1.0.1gogounverified

A Go library for parsing structured log messages using Grok patterns, similar to Logstash.

go get github.com/vjeantet/grok
INSTALL
IMPORT
SIG · VJEANTET-GROK
V
vjeantet-grok
utilitygov1.0.1
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
github.com/vjeantet/grok

Parse an IP address from a log line using a Grok pattern.

package main import ( "fmt" "github.com/vjeantet/grok" ) func main() { g, _ := grok.New() values, _ := g.Parse("%{IP:client_ip}", "192.168.1.1") fmt.Println(values["client_ip"]) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
vjeantet-grok — go get vjeantet-grok · libregistry