Logstash - Grok - Parse Digit


I have this simple chain that represent a date (with 2digit year format)


I'm looking for a way to parse it to obtain this output :

year : 20
month : 04
montday : 24

Is it possible with grok to extract part of a string / digit based on start/end position (like php function substr) ?


it look this do the job with regexp rather than grok pattern


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.