ungrok

command module
v0.0.0-...-783d4ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 13 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL