-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: juicer <[email protected]>
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
apis/fluentd/v1alpha1/tests/expected/fluentd-cluster-cfg-filter-recordTransformer.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,35 @@ | ||
<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> | ||
<filter **> | ||
@id ClusterFluentdConfig-cluster-fluentd-config::cluster::clusterfilter::fluentd-filter-0 | ||
@type record_transformer | ||
auto_typecast true | ||
enable_ruby true | ||
renew_record true | ||
<record> | ||
kubernetes_ns ${record["kubernetes"]["namespace_name"]} | ||
</record> | ||
</filter> | ||
<match **> | ||
@id ClusterFluentdConfig-cluster-fluentd-config::cluster::clusteroutput::fluentd-output-cluster-0 | ||
@type elasticsearch | ||
host elasticsearch-logging-data.kubesphere-logging-system.svc | ||
logstash_format true | ||
logstash_prefix ks-logstash-log | ||
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
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