Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/collector/otelcol.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ receivers:
{{- end }}

{{- range $index, $tcplogReceiver := .Receivers.TcplogReceivers }}
tcplog/{{$index}}:
tcp_log/{{$index}}:
listen_address: "{{- .ListenAddress -}}"
operators:
{{- range $index, $operator := .Operators }}
Expand Down Expand Up @@ -317,7 +317,7 @@ service:
receivers:
{{- range $receiver := $pipeline.Receivers }}
{{- if eq $receiver "tcplog/nginx_app_protect" }}
- tcplog/nginx_app_protect
- tcp_log/nginx_app_protect
{{- else }}
- {{ $receiver }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion internal/collector/settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func TestTemplateWrite(t *testing.T) {
}
cfg.Collector.Pipelines.Logs = make(map[string]*config.Pipeline)
cfg.Collector.Pipelines.Logs["default"] = &config.Pipeline{
Receivers: []string{"tcplog/default"},
Receivers: []string{"tcp_log/default"},
Processors: []string{"securityviolationsfilter/default", "resource/default", "batch/default"},
Exporters: []string{"otlp_grpc/default", "debug"},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ receivers:
location: ""
ca: ""
collection_interval: 20s
tcplog/default:
tcp_log/default:
listen_address: "localhost:151"
operators:
- type: add
Expand Down Expand Up @@ -138,7 +138,7 @@ service:
- debug
logs/default:
receivers:
- tcplog/default
- tcp_log/default
processors:
- securityviolationsfilter/default
- resource/default
Expand Down
Loading