Registry / utility / jeffail-grok

jeffail-grok

JSON →
library1.1.0gogounverified

Package grok provides a Go implementation of the Grok pattern-matching library for parsing unstructured data.

go get github.com/Jeffail/grok
INSTALL
IMPORT
SIG · JEFFAIL-GROK
J
jeffail-grok
utilitygov1.1.0
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/Jeffail/grok

Parse a string using a Grok pattern

package main import ( "fmt" "github.com/Jeffail/grok" ) func main() { g, _ := grok.New() values, _ := g.Parse("%{IP:client}", "192.168.1.1") fmt.Printf("Client IP: %s\n", values["client"]) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
jeffail-grok — go get jeffail-grok · libregistry