graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

Pipeline Processing error if 2 streams have same name

Open fadanner opened this issue 10 years ago • 1 comments

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)

  1. Build up 4 streams "abc", "bcd","bcd","xyz"
  2. rule "Test" when true then route_to_stream("xyz"); end
  3. Connect the rule & to the stream "abc"
  4. 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

fadanner avatar Nov 24 '16 08:11 fadanner

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!

kroepke avatar Nov 24 '16 09:11 kroepke