A small command line tool for testing grok patterns on file contents.

grogg

A small command line tool for testing grok patterns on file contents.

It uses the vjeantet/grok library for parsing and pterm for some extra gloss.

Usage

Available parameters are:

  -custom-file string
        File containing custom Grok patterns
  -failures
        Show only failures
  -input string
        Input file
  -line-length int
        Set max line length buffer in bytes (default 4096)
  -multiline string
        Multiline pattern
  -pattern string
        Grok pattern to match
  -prompt
        Prompt after each line
  -silent
        Silent mode (summary at the end of execution)
  -verbose
        Verbose mode

Examples

Show only lines that didn't return any matches:

grogg -input=access.log -pattern='%{COMMONAPACHELOG}' -failures -prompt

Add additional patterns from file and match multiline events where every new event starts with "###":

grogg -input=file.log -pattern='%{CUSTOMLOGFILE}' -custom-file=grok-patterns.txt -multiline='###'
Similar Resources

It is a package and command line application that provides you to store encrypted credentials/secrets in your repository.

sypher[ ⚠️ Work in progress] sypher provides you to store your credentials and secrets as encrypted in your repository. Usage Install the command line

Feb 23, 2022

Run vscode task in command line

vstask Run vscode task in command line install go install "github.com/ttttmr/vstask" usage NAME: vstask - Run vscode task in command line USAGE:

Jul 1, 2022

vault-init is a small utility for automating the initialization and unsealing of HashiCorp Vault.

vault-init vault-init is a small utility for automating the initialization and unsealing of HashiCorp Vault. It draws inspiration from kelseyhightower

Aug 17, 2022

A small, fast, reliable pastemyst API wrapper written in Golang

A small, fast, reliable pastemyst API wrapper written in Golang. Official pastemyst API docs found here.

Dec 12, 2022

This is a small Go program, which can tell you what processes are actively using a set of files

winuse This is a small Go program, which can tell you what processes are actively using a set of files. It primarily exists to show off how one can bi

Jan 28, 2022

With this small library you can interact with the timev2 API

Library for timev2 With this small library you can interact with the timev2 API.

Jan 28, 2022

A WIP ad hoc file transfer tool

Telepathy Telepathy is a work in progress file sharing server and client for ad hoc file sharing between computers on a local network. This lets you q

Feb 1, 2022

Hassle-free REST API testing for Go

melatonin melatonin is a fluent, flexible REST API testing library for Go. It provides many of the benefits of a domain-specific test language but wit

Jan 8, 2022

This program performs stress testing for the Cosmos module

Cosmos Modules Testing Program 🔧 Overview This program performs stress testing for the Cosmos module. Support: Liquidity , IBC transfer Note: Require

May 25, 2022
Common functional data manipulation and abstraction patterns in Golang.

Functional Patterns in Golang GOMAD (Early stage) This package is still in an early stage of development. Feel free to open a PR and contribute or jus

Jan 8, 2023
A command-line tool to pretty print your system's PATH environment variable.
A command-line tool to pretty print your system's PATH environment variable.

Description A command-line tool to pretty print your system's PATH environment variable. The output paths are colorized if they have special associati

Nov 9, 2022
Maven-client - A command line tool to query first order and transitive maven coordinates based off an initial list of coordinates.

maven-client Description This CLI reads a list of maven group artifact version (GAV) coordinates and returns an ordered list of first order and transi

Jan 6, 2022
Stc - An unofficial command line tool for Syncthing

STC - Syncthing Cli This is an unofficial command line tool for Syncthing. Stc c

Dec 22, 2022
File-generator - Creates a file filled with bytes

creates a file filled with bytes ./filegen from to from : index of first piece t

Feb 14, 2022
A single-binary cross-platform lightweight client/server connection testing tool.

conntest A single-binary cross-platform lightweight client/server connection testing tool. Currently supports L7 TCP (HTTP). Configuration Options con

Jan 13, 2022
Command line interface to windows clipboard over KiTTY remote-control printing

kclip Command line interface to windows clipboard over KiTTY remote-control printing About This tool behaves like the cat command, it just tries to pa

Dec 12, 2021
GoSearch: Search the Go packages via command-line

GoSearch Search the Go packages for pkg.go.dev via command-line. It supports all search options in Search Help. Installation go get github.com/mingram

Jun 23, 2022
A simple command line -based snake game built with go and termbox
A simple command line -based snake game built with go and termbox

snake-task Snake Game A simple command line -based snake game built with go and termbox library. This is a test task for a Golang positon. It took me

Jan 16, 2022
High-level YugabyteDB RPC and command line client

YugabyteDB Client API YugabyteDB Client API provides high level API operations and command line interface for YugabyteDB RPC. Command line interface i

Jan 8, 2022