-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import-beats: copy ingest pipelines #270
Conversation
@@ -0,0 +1,32 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the pipeline is called default.yml
or default.json
we automatically fall back to it without any additional config in the manifest. Perhaps worth renaming it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's consider these two cases:
- Logstash
../beats/filebeat/module/logstash/slowlog/ingest/pipeline-json.yml
../beats/filebeat/module/logstash/slowlog/ingest/pipeline-plain.yml
Which one should called default.json
? Should I rename it only if there is a single pipeline?
- Elasticsearch
../beats/filebeat/module/elasticsearch/slowlog/ingest/pipeline-json.yml
../beats/filebeat/module/elasticsearch/slowlog/ingest/pipeline-plaintext.yml
../beats/filebeat/module/elasticsearch/slowlog/ingest/pipeline.yml
Which one should be called default.yml
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the case of Elasticsearch, it is the pipeline.yml
file as this is the one doing the routing. I had to dig into the LS one to see why it even works. It turns out this is an anti pattern from moving forward. It decides the ingest pipeline based on the config. Instead there should always be 1 pipeline. The LS module should be modified to use the ES pattern, otherwise it will not work with the packages.
@ph @ycombinator @exekias We should change the LS module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this has been on the cards for a while anyway: elastic/beats#9964.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Hey @mtojek, just to clarify, we still need elastic/beats#9964 to remain open, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Hey @mtojek, just to clarify, we still need elastic/beats#9964 to remain open, right?
Yes, would be great to fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ycombinator Yes, it now even becomes a must to change to migrate to packages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for clarifying. @ruflin other than "ASAP" 😄 what's the timeline you need this to be fixed in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How will you deal with the case where there is more then 1 ingest pipeline?
In Elasticseach filebeat module,
Ingest pipeline is an array. Let me compare with EPR's: Do you have any preferences against selecting the default pipeline? Name? first in directory list? |
EPM can have multiple pipelines, but just one is referenced in the manifest. The others are referenced inside the ingest pipelines itself. |
Ignore this comment. I still need the logic to determine which file should be named |
Fixed. |
This PR adds support for ingest pipelines to "import-beats" script.
Issue: #221