I am trying to write a grok classifier for below fix width text/csv file. Since file has empty line my grok classifier does not create table. once empty line is removed classifier works perfectly fine. please help.
grok pattern for below text file. this patter work on https://regex101.com/r/8qbExt/1/
(?.{3})(?.{3})(?<c3:int>.{4})(/^s*|s*$|s*(r?n)s*/g)
abcdef1234
ghijkl4567
grok pattern for below text file. this patter work on https://regex101.com/r/8qbExt/1/
(?.{3})(?.{3})(?<c3:int>.{4})(/^s*|s*$|s*(r?n)s*/g)
Text file data
abcdef1234
ghijkl4567
user25340390 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.