Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of SYNTAX for logstash's grok

Tags:

The syntax for a grok pattern is %{SYNTAX:SEMANTIC}. How do i generate a list of all available SYNTAX keywords ? I know that I can use the grok debugger to discover patterns from text. But is there a list which i can scan through?

like image 914
user1411110 Avatar asked May 07 '14 16:05

user1411110


People also ask

What Is syntax in grok?

Reusing Grok Patterns SYNTAX is the name of the pattern that will match the text. SEMANTIC is the identifier given to the piece of text being matched. TYPE is the type to cast the named field.


1 Answers

They are in GIT and included somewhere in the distribution. But it's probably just easiest to view it online:

https://github.com/elasticsearch/logstash/blob/v1.4.0/patterns/grok-patterns

like image 130
Alcanzar Avatar answered Sep 23 '22 01:09

Alcanzar