I have been playing around with logstash and have been able to insert some of my MySQL tables to Elastic search.
Now, I need to combine multiple rows from the a MySQL Query statememt into one document. For example, lets say I have a mySQL query and I have the following result,
1 Group1 Company1 User1
1 Group1 Company1 User2
1 Group2 Company2 User3
1 Group2 Company2 User4
I would like to create 2 Group documents in Elastic Search for Group1 and Group2. Inside Group1, I will need to add User1 and User2. Inside Group2, I will need to add User3 and User4.
Is this possible using LogStash and combining with some Filters? If so can anyone point me in the right direction please.