Open Floppe opened 8 months ago
You can use a workaround to write to a datastream with the type set to Elasticsearch, ensuring the pipeline functions correctly:
<match **>
@type elasticsearch
scheme https
host es01
port 9200
user elastic
password xxxxxxx
include_timestamp true
verify_es_version_at_startup false
default_elasticsearch_version 8
suppress_type_name true
ssl_verify false
# Use index_name instead of data_stream_name
index_name filebeat-8.12.2
# Datastreams can only handle 'create' operations, so we set this to write to the datastream
write_operation create
# The pipeline is now functioning correctly
pipeline filebeat-8.12.2-apache-access-pipeline
</match>
I could not get it to work. Debugging says: Dropping record because its missing an '_id' field and write_operation is create
(check apply)
Problem
When I switched to ES & Filebeat 8 which uses DataStreams and also changed type in Fluentd to elasticsearch_data_stream then all pipelines stopped to work.
Example ES document coming from Filebeat that has read an Apache access log through the module. You can see the metadata pipeline there.
...
Expected Behavior or What you need to ask
That ES should use the pipeline supplied. Both if supplied in config file and also from @metadata.pipeline that Filebeat ships. ...
Using Fluentd and ES plugin versions