-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
(check apply)
- read the contribution guideline
- (optional) already reported 3rd party upstream repository or mailing list if you use k8s addon or helm charts.
Problem
opensearch_data_stream mandates host to be configured even though hosts is configured. Otherwise following error is seen in the logs.
[error]: config error file="/fluentd/etc/fluentd-standalone.conf" error_class=Fluent::ConfigError error="Failed to create data stream: <data-stream-name> Connection refused - connect(2) for 127.0.0.1:9200 (Errno::ECONNREFUSED)"
This is due to
create_index_template(@data_stream_name, @data_stream_template_name, @host) |
create_index_template(data_stream_name, data_stream_template_name, host) |
Steps to replicate
Do not configure host for opensearch_data_stream
Example:
@type opensearch_data_stream
@id out_systemd
@log_level info
log_es_400_reason true
data_stream_name datas-stream-name
data_stream_template_name data-stream-template
hosts "#{ENV['ELASTICSEARCH_URL']}"
ca_file "#{ENV['CA_FILE']}"
...
Expected Behavior or What you need to ask
When hosts is configured, it should not expect host also to be configured.
Using Fluentd and ES plugin versions
- OS version NA
- Bare Metal or within Docker or Kubernetes or others? NA
- Fluentd v0.12 or v0.14/v1.0
- fluentd --version
- fluentd 1.12.3
- fluentd --version
- ES plugin 3.x.y/2.x.y or 1.x.y
- fluent-plugin-opensearch 1.0.0
Metadata
Metadata
Assignees
Labels
No labels