-
Notifications
You must be signed in to change notification settings - Fork 220
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 #1106 from antrema/ordered_fluentd_config_file
fix: ordered fluentd-config #1104
- Loading branch information
Showing
9 changed files
with
384 additions
and
44 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
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
114 changes: 114 additions & 0 deletions
114
apis/fluentd/v1alpha1/tests/expected/fluentd-mixed-cfgs-output-copy-4.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,114 @@ | ||
<source> | ||
@type forward | ||
bind 0.0.0.0 | ||
port 24224 | ||
</source> | ||
<match **> | ||
@id main | ||
@type label_router | ||
<route> | ||
@label @2d9e59757d3bfc66d93c3bc44b408922 | ||
<match> | ||
namespaces fluent | ||
</match> | ||
</route> | ||
</match> | ||
<label @2d9e59757d3bfc66d93c3bc44b408922> | ||
<filter **> | ||
@id FluentdConfig-fluent-fluentd-config::fluent::filter::fluentd-filter-0 | ||
@type record_transformer | ||
<record> | ||
application my-application | ||
environment uat | ||
loki-tenant 9705b9de-d60e-4492-b322-eac870 | ||
</record> | ||
</filter> | ||
<match specific_tag_1> | ||
@id FluentdConfig-fluent-fluentd-config::fluent::output::fluentd-output-es2-0 | ||
@type copy | ||
copy_mode no_copy | ||
<store> | ||
@id FluentdConfig-fluent-fluentd-config::fluent::output::fluentd-output-es2-1 | ||
@type elasticsearch | ||
host elasticsearch-logging-data.kubesphere-logging-system.svc | ||
index_name es2-specific-tag-1-1 | ||
port 9243 | ||
scheme https | ||
ssl_verify false | ||
</store> | ||
<store> | ||
@id FluentdConfig-fluent-fluentd-config::fluent::output::fluentd-output-es2-2 | ||
@type elasticsearch | ||
host elasticsearch-logging-data.kubesphere-logging-system.svc | ||
index_name es2-specific-tag-1-2 | ||
port 9243 | ||
scheme https | ||
ssl_verify false | ||
</store> | ||
</match> | ||
<match specific_tag_2> | ||
@id FluentdConfig-fluent-fluentd-config::fluent::output::fluentd-output-es3-0 | ||
@type elasticsearch | ||
host elasticsearch-logging-data.kubesphere-logging-system.svc | ||
index_name es3-specific-tag-2-1 | ||
port 9243 | ||
scheme https | ||
ssl_verify false | ||
</match> | ||
<match specific_tag_2> | ||
@id FluentdConfig-fluent-fluentd-config::fluent::output::fluentd-output-es3-1 | ||
@type elasticsearch | ||
host elasticsearch-logging-data.kubesphere-logging-system.svc | ||
index_name es3-specific-tag-2-2 | ||
port 9243 | ||
scheme https | ||
ssl_verify false | ||
</match> | ||
<match **> | ||
@id FluentdConfig-fluent-fluentd-config::fluent::output::fluentd-output-es-0 | ||
@type copy | ||
copy_mode no_copy | ||
<store> | ||
@id FluentdConfig-fluent-fluentd-config::cluster::clusteroutput::fluentd-output-loki-0 | ||
@type loki | ||
drop_single_key true | ||
extra_labels {"key11":"value11","key12":"value12"} | ||
extract_kubernetes_labels true | ||
include_thread_label true | ||
insecure_tls true | ||
remove_keys key31,key32 | ||
url http://loki-logging-data.kubesphere-logging-system.svc:3100 | ||
<label> | ||
key21 key21 | ||
key22 key22 | ||
</label> | ||
</store> | ||
<store> | ||
@id FluentdConfig-fluent-fluentd-config::fluent::output::fluentd-output-es-1 | ||
@type elasticsearch | ||
host elasticsearch-logging-data.kubesphere-logging-system.svc | ||
index_name es1-notag-1 | ||
port 9243 | ||
scheme https | ||
ssl_verify false | ||
</store> | ||
<store> | ||
@id FluentdConfig-fluent-fluentd-config::fluent::output::fluentd-output-es-2 | ||
@type elasticsearch | ||
host elasticsearch-logging-data.kubesphere-logging-system.svc | ||
index_name es1-notag-2 | ||
port 9243 | ||
scheme https | ||
ssl_verify false | ||
</store> | ||
<store> | ||
@id FluentdConfig-fluent-fluentd-config::fluent::output::fluentd-output-es4-0 | ||
@type elasticsearch | ||
host elasticsearch-logging-data.kubesphere-logging-system.svc | ||
index_name es4-notag-1 | ||
port 9243 | ||
scheme https | ||
ssl_verify false | ||
</store> | ||
</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
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.