Pipeline Processing error if 2 streams have same name
Created one pipeline processing rule which is connected to stream "abc". The processing works fine, until I add 2 streams with the same name. For example the streams "bcd" and "bcd". Pipeline Processing then crashes and appends an error on all messages to be processed (from stream abc).
gl2_processing_error
For rule 'from 10.250.x.x': In call to function 'route_to_stream' at 8:4 an exception was thrown: Multiple entries with same key: AD Failed Logons=5835a2844c5768163e4668f9: "AD Failed Logons" and AD Failed Logons=582ed5844c576818ca47358b: "AD Failed Logons". To index multiple values under a key, use Multimaps.index.
In my pipeline rule I used the function "route_to_stream("xyz"). "abc", "bcd","bcd" & "xyz" are stream names.
Expected Behavior
Pipeline should work even if two streams have the same name. If this isn't possible the pipeline should at least run, if the duplicated stream isn't used in the pipeline rule.
Current Behavior
Pipeline processing appends gl2_processing_error to all messages on which it runs.
Possible Solution
- Make Streamnames unique
- Show an error globally on the graylog interface
- produce all other stream rules
Steps to Reproduce (for bugs)
- Build up 4 streams "abc", "bcd","bcd","xyz"
rule "Test" when true then route_to_stream("xyz"); end- Connect the rule & to the stream "abc"
- See that there is an error appended to all messages on "abc"
Your Environment
- Graylog Version: 2.1.2+50e449a
- Elasticsearch Version: 2.4.1
- MongoDB Version: 1:2.6.10
- Operating System:Linux 4.4.0-47-generic (java Oracle Corporation 1.8.0_111)
- Browser version: Firefox 48.0
Yup, this is a known issue. Please see https://github.com/Graylog2/graylog-plugin-pipeline-processor/issues/101
I'll close this a duplicate, please watch the other issue. Thank you for your report!