Skip to content

Commit

Permalink
Fix configuring LogForwarding pipelines only when needed (#152)
Browse files Browse the repository at this point in the history
This commit ensures that infrastructure or application logs pipelines only
get configured when enabled in forwarding only mode.
  • Loading branch information
DebakelOrakel authored Aug 16, 2024
1 parent 0ff4d9e commit 208caa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions component/config_forwarding.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ local patchPipelineDefaults = {
local auditPipeline = std.get(std.get(params.clusterLogForwarder, 'pipelines', {}), 'audit-logs', {}),

pipelines: {
'application-logs': {
[if !forwardingOnly || std.length(appsPipeline) > 0 then 'application-logs']: {
inputRefs: [ 'application' ],
outputRefs: pipelineOutputRefs(appsPipeline),
},
'infrastructure-logs': {
[if !forwardingOnly || std.length(infraPipeline) > 0 then 'infrastructure-logs']: {
inputRefs: [ 'infrastructure' ],
outputRefs: pipelineOutputRefs(infraPipeline),
},
Expand Down

0 comments on commit 208caa0

Please sign in to comment.