Skip to content

Commit 92121e4

Browse files
authored
Merge pull request #271 from kube-logging/feat/protected-cluster-output
feat: protected cluster outputs
2 parents 83a2a38 + 00df905 commit 92121e4

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

content/docs/configuration/output.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,11 @@ spec:
3333
secretKeyRef:
3434
name: s3-secret
3535
key: awsAccessKeyId
36-
namespace: default
3736
aws_sec_key:
3837
valueFrom:
3938
secretKeyRef:
4039
name: s3-secret
4140
key: awsSecretAccessKey
42-
namespace: default
4341
s3_bucket: example-logging-bucket
4442
s3_region: eu-west-1
4543
path: logs/${tag}/%Y/%m/%d/
@@ -97,3 +95,42 @@ spec:
9795
- For the details of the supported output plugins, see {{% xref "/docs/configuration/plugins/syslog-ng-outputs/_index.md" %}}.
9896
- For the details of `SyslogNGOutput` custom resource, see {{% xref "/docs/configuration/crds/v1beta1/syslogng_output_types.md" %}}.
9997
- For the details of `SyslogNGClusterOutput` custom resource, see {{% xref "/docs/configuration/crds/v1beta1/syslogng_clusteroutput_types.md" %}}.
98+
99+
## protected flag cluster outputs
100+
101+
Since versions:
102+
103+
- 4.7 for Fluentd
104+
- 5.0 for Syslog-ng
105+
106+
You can set the `protected` flag on a `ClusterOutput` and `SyslogNGClusterOutput`. This prevents namespaced `Flows` and `SyslogNGFlows` from sending logs to these outputs and only allows `ClusterFlows` and `SyslogNGClusterFlows` to reference it.
107+
108+
By default, `ClusterOutputs` can be referenced by any `Flow`. Setting the `protected` flag restricts this access to `ClusterFlows` only.
109+
110+
```yaml
111+
apiVersion: logging.banzaicloud.io/v1beta1
112+
kind: ClusterOutput
113+
metadata:
114+
name: protected-cluster-output
115+
namespace: infra
116+
spec:
117+
protected: true
118+
s3:
119+
aws_key_id:
120+
valueFrom:
121+
secretKeyRef:
122+
name: s3-secret
123+
key: awsAccessKeyId
124+
aws_sec_key:
125+
valueFrom:
126+
secretKeyRef:
127+
name: s3-secret
128+
key: awsSecretAccessKey
129+
s3_bucket: example-logging-bucket
130+
s3_region: eu-west-1
131+
path: logs/${tag}/%Y/%m/%d/
132+
buffer:
133+
timekey: 1m
134+
timekey_wait: 10s
135+
timekey_use_utc: true
136+
```

0 commit comments

Comments
 (0)