Since the last line (with the URL) is basically a superset of the preceding lines, what kind of aggregation are you looking to do? That is, given the three-line snippet in your post, what is the expected outcome?
Do Grok Parse the message and create field that has gtid.
Do Grep to pick corresponding entries based on gtid
Pick the URL from Latency record corresponding to gtid.
Create URL field for all three log entries.
so when the 3 log entries are shipped to Elastic Search, i should have URL filed for all the three log entries.
For Latency record it will not be an issue, but for other two log records i need to create URL field with the URL value from Latency record.
Oh, okay. There's no stock Logstash plugin that can help you here. I'd either write a custom plugin or have the third message sent to a broker and write a small service that consumes those messages and updates the remaining two entries in ES with the URL.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.