forked from fluent/fluent-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request fluent#1190 from fschlager/feat/elastic-data-stream
Support elastic_data_stream
- Loading branch information
Showing
16 changed files
with
1,967 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
apis/fluentd/v1alpha1/tests/expected/fluentd-cluster-cfg-output-copy-es-data-stream.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<source> | ||
@type forward | ||
bind 0.0.0.0 | ||
port 24224 | ||
</source> | ||
<match **> | ||
@id main | ||
@type label_router | ||
<route> | ||
@label @a2170d34e9940ec56d328100e375c43e | ||
<match> | ||
namespaces default,kube-system | ||
</match> | ||
</route> | ||
</match> | ||
<label @a2170d34e9940ec56d328100e375c43e> | ||
<match **> | ||
@id ClusterFluentdConfig-cluster-fluentd-config::cluster::clusteroutput::fluentd-output-es-copy-0 | ||
@type copy | ||
copy_mode no_copy | ||
<store> | ||
@id ClusterFluentdConfig-cluster-fluentd-config::cluster::clusteroutput::fluentd-output-es-copy-1 | ||
@type elasticsearch_data_stream | ||
data_stream_name es1-notag-1 | ||
host elasticsearch-logging-data.kubesphere-logging-system.svc | ||
password s3cr3tP@ssword | ||
port 9243 | ||
scheme https | ||
ssl_verify false | ||
user s3cr3tUsern4me | ||
<buffer> | ||
@type memory | ||
flush_mode immediate | ||
</buffer> | ||
</store> | ||
<store> | ||
@id ClusterFluentdConfig-cluster-fluentd-config::cluster::clusteroutput::fluentd-output-es-copy-2 | ||
@type elasticsearch_data_stream | ||
data_stream_name es1-notag-2 | ||
host elasticsearch-logging-data.kubesphere-logging-system.svc | ||
password s3cr3tP@ssword | ||
port 9243 | ||
scheme https | ||
ssl_verify false | ||
user s3cr3tUsern4me | ||
<buffer> | ||
@type memory | ||
flush_mode immediate | ||
</buffer> | ||
</store> | ||
</match> | ||
</label> |
24 changes: 24 additions & 0 deletions
24
apis/fluentd/v1alpha1/tests/expected/fluentd-cluster-cfg-output-es-data-stream.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<source> | ||
@type forward | ||
bind 0.0.0.0 | ||
port 24224 | ||
</source> | ||
<match **> | ||
@id main | ||
@type label_router | ||
<route> | ||
@label @a2170d34e9940ec56d328100e375c43e | ||
<match> | ||
namespaces default,kube-system | ||
</match> | ||
</route> | ||
</match> | ||
<label @a2170d34e9940ec56d328100e375c43e> | ||
<match **> | ||
@id ClusterFluentdConfig-cluster-fluentd-config::cluster::clusteroutput::fluentd-output-es-0 | ||
@type elasticsearch_data_stream | ||
data_stream_name test-ds | ||
host elasticsearch-logging-data.kubesphere-logging-system.svc | ||
port 9200 | ||
</match> | ||
</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.