Hi,
My log line looks like below. In my log it is possible that few tags could miss (example: CITY or ZIPCODE or any other tag may not always be present). I want to parse this log and show output as JSON.
Log Line:
20180524T104101.550 GMT, ID=A-124, FIRST_NAME=ABC, LAST_NAME=XYZ, ADDRESS1=123 STREET, CITY=NEW YORK, STATE=NEW YORK ZIPCODE=40001
I tried giving regex patterns but they work only when all tags are present if any of the random tags are not present then I get _grokparsefailure
Can you please help me know if it is possible to parse log into JSON even when some tags can miss.
Thank you!