Categorygithub.com/siddweiker/ungrok
repositorypackage
0.0.0-20230905145702-783d4baf13a7
Repository: https://github.com/siddweiker/ungrok.git
Documentation: pkg.go.dev

# README

UNGROK

Convert GROK patterns to Regex

Installation

go install github.com/siddweiker/ungrok@latest

Usage

Usage of ungrok:
  -config string
        A directory containing grok pattern files
  -output string
        The output file to write too, default stdout
  -pattern string
        The GROK pattern to translate into regex

Example

ungrok -pattern "%{TIMESTAMP_ISO8601}"
ungrok -pattern "%{MONTH}" -output out.txt
ungrok -pattern "%{POSTGRESQL}" -config /path/to/patternsdir

Building from source

go generate
# Alternatively go run gen.go -url "custom_pattern_file"
go build