Not very complex event concatenation by unique key.
Originally by https://github.com/timukas
Hi,
It would be nice to have a graylog2 feature, which could group/join different events by some unique key. Time window could be also configurable - 5 seconds or 2 minutes.
Here's some example logs: 2014.02.28 10:02:10,215 +0200 [192.168.14.112] [86dkl389] action:"something" 2014.02.28 10:02:10,415 +0200 [192.168.14.112] [GdhNalvZ] action:"request" 2014.02.28 10:02:11,526 +0200 [192.168.14.112] [GdhNalvZ] params1:"data 1" 2014.02.28 10:02:11,637 +0200 [192.168.14.112] [GdhNalvZ] params2:"data 2" 2014.02.28 10:02:12,748 +0200 [192.168.14.112] [GdhNalvZ] params3:"data 3" 2014.02.28 10:02:13,115 +0200 [192.168.14.112] [A89023JK] action:"another" 2014.02.28 10:02:13,148 +0200 [192.168.14.112] [GdhNalvZ] params4:"data 4" …
First you extract unique keys for events, in this example it goes after ip address. Then you set some timeframe - 10 seconds (could be any number, but be aware of high memory consumption) Finally you set an action. I'm thinking of joining all matched lines to single full_message. But actions could be different - remove all messages except the first one, etc etc.
Basically this example configuration would put all messages with [GdhNalvZ] key into on single event.
Or may be some drools guru is reading this message and can give a hand in writting rule which does something similar :)
p.s. Since i'm not sure whether it should be under web or server trees, i put it here :)
moved from https://github.com/Graylog2/graylog2-web-interface/issues/686
one possible implementation idea:
use extracted field value (e.g. the 'GdhNalvZ' from the example) to group messages, and later display matching messages as a single one.
Will it be possible to use extractor on combined message, to get some specific data from it?
Such a feature would be extremely helpful! I'm getting logs from a Cisco IronPort ESA appliance and they are in a format looking like that:
It would be awesome having the possibility after doing successful GROK field identification. For example grouping all logs where the message ID is 234989 for example.
This is possible by simply searching for MID:234989, but usually you are looking for an e-mail message based on "SENDER" "RECIPIENT" "SUBJECT" etc. So it would be very nice having a group-by feature!!!

This would be really helpful. As this issue is quite old, were there any changes to support something like this by now ?
Currently, aggregation allows group-by fields, this addresses in part the use case. Closing this ticket for now as no further changes are planned at the moment. Should we receive a similar request in the future, we will be happy to reassess its priority and need.