Hi, I'm trying to switch from Logstash in favor of Elasticsearch Ingest Pipeline feature, and I'm having trouble with topic of multiple ingest pipelines. How does Elastic know when to use which pipeline?
I ship data with Filebeat and add tags for different sources - in Logstash I can use something like below to decide which filter should be used:
filter {
if "something" in [tags]{
grok {
match => {
"message" => [
.....
.....
.....
How do I do this in Elasticsearch? Is there any metadata field I should add on Filebeat level?
I couldn't find anything like that in documentation.
You need to follow the path suggested by Stephen, have a main pipeline and use conditional to direct your filter to other pipelines.
Another thing that you need to check is if you really can replicate your logstash pipeline using an ingest pipeline, some things that are pretty simple to do in Logstash may be pretty complicated in a ingest pipeline, one example of this is the translate filter in logstash which needs to be done using an enrich processor.
Other are impossible of doing with a ingest pipeline, like for example enrich from external sources.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.