My log file has different sections. At the beginning it can have a tabular data and then a multiple log lines with format1 and then multiple lines with format 2 etc..
How can I split the log file in to different sections and parse each individual section of lines with a specific way...
For eg.. I want to extract tabular data portion and extract intereseted fields from it using csv filer.
Again in the same log file, I want to extract section having PATTERN1 type lines and parse it using grok filter.
Again in the same log file, I want to extract section having PATTERN2 type lines and parse it using grok filter.
I can identify start of each section in log file by the pattern of the first line.
Is something like this can be achieved using Logstash?