I want to parse following log patterns with logstash:
2016-08-12 16:37:00,039  ERROR OnlineService Object reference not set to an instance of an object.
As of now I have created following pattern:
I need to extract timestamp(2016-08-12 16:37:00), code_1(039), code_2(8), log_level(ERROR),message(OnlineService Object reference not set to an instance of an object.) from log file to ingest into elasticsearch index.
Can anyone please help in above patter creation.