Hello,
I'm currently parsing our logs using using Logstash's multiline filter to combine entries with the same reference e,g,
P1-hrrnjee8
Message Field Value:
example 1
2016-02-15 00:00:05 P1-hrrnjee8:None processMethod None
2016-02-15 00:00:05 P1-hrrnjee8:P1-hrrnjee8 New session 1-1939c534
2016-02-15 00:00:08 P1-hrrnjee8:P1-hrrnjee8 Finished 7292 bytes (0.1821s)
2016-02-15 00:00:14 P1-hrrnjee8:None InHeads: {'UPGRADE_INSECURE_REQUESTS': '1'
2016-02-15 00:00:05 P1-hrrnjee8:P1-hrrnjee8 Web handlePage:
2016-02-15 00:00:05 P1-hrrnjee8:P1-hrrnjee8 Msgs: [] [] [] {}
As you can see, this is working just fine. However, I need the message value to also be displayed with the timestamp in ascending order e.g.
example 2
2016-02-15 00:00:05 P1-hrrnjee8:None processMethod None
2016-02-15 00:00:05 P1-hrrnjee8:P1-hrrnjee8 New session 1-1939c534
2016-02-15 00:00:05 P1-hrrnjee8:P1-hrrnjee8 Web handlePage:
2016-02-15 00:00:05 P1-hrrnjee8:P1-hrrnjee8 Msgs: [] [] [] {}
2016-02-15 00:00:08 P1-hrrnjee8:P1-hrrnjee8 Finished 7292 bytes (0.1821s)
2016-02-15 00:00:14 P1-hrrnjee8:None InHeads: {'UPGRADE_INSECURE_REQUESTS': '1'
Is there anyway I can achieve example 2 when sending the parsed data to elasticsearch.
In summary, I just need it to look like example 2 when being viewed in kibana. It doesn't necessarily have to be stored that way.