Hello Everyone,
I have the following in the pipeline yaml file
pipeline1:
workers: 2
delay: "5000"
source:
http:
port: 3333
sink:
- pipeline:
name: "pipeline2"
- pipeline:
name: "pipeline3"
pipeline2:
source:
pipeline:
name: "pipeline1"
processor:
- substitute_string:
entries:
- source: "message"
from: "word"
to: "wOrD"
sink:
- stdout:
pipeline3:
workers: 1
source:
pipeline:
name: "pipeline1"
processor:
- grok:
match:
message: ['%{WORD:word1} %{WORD:word2} %{WORD:word3}']
sink:
- stdout:
When send the input
{"message": "words wordy woodword"}
I see the following
{"message":"wOrDs wOrDy woodwOrD","word1":"words","word3":"woodword","word2":"wordy"}
{"message":"wOrDs wOrDy woodwOrD","word1":"words","word3":"woodword","word2":"wordy"}
and when I send this input
{"message": "firstword secondword thirdword"}
I see this output
{"message":"firstwOrD secondwOrD thirdwOrD","word1":"firstword","word3":"thirdword"}
{"message":"firstwOrD secondwOrD thirdwOrD", "word1":"firstword","word3":"thirdword","word2":"secondword"}
Is this expected? It looks like both outputs are wrong.
if I use “string coverter” processor instead of “string substitute” processor, I think the results look OK.