syslog logs to traces #35762
TopazAvraham
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I’m trying to set up the OpenTelemetry Collector to receive syslog logs, transform them into traces, and then export them as traces to Jaeger
I've tried diffferent proccessors, connectors etc. but I didn't find anything that helps.
this is my reciever:
`receivers:
otlp:
protocols:
grpc: # Enable gRPC on port 4317
http: # Enable HTTP on port 4318
endpoint: 0.0.0.0:4318
syslog:
tcp:
listen_address: 0.0.0.0:54526
protocol: rfc5424
I get the syslogs on the logs pipline (because syslog reciever is not supported in the traces pipline)
then I'm adding some trace info (trace id, span id, etc) from the transform proccessor,
and then I want to export it via the traces pipline to Jaeger.
I tried using connectors but this is what I get:
conf:
receivers:
otlp:
protocols:
grpc: # Enable gRPC on port 4317
http: # Enable HTTP on port 4318
endpoint: 0.0.0.0:4318
syslog:
tcp:
listen_address: 0.0.0.0:54526
protocol: rfc5424
processors:
transform:
log_statements:
- context: log
statements:
- 'set(attributes["trace_id"], "1234567890abcdef")'
- 'set(attributes["span_id"], "abcdef1234567890")'
- 'set(attributes["service.name"], "syslog_service")'
connectors:
routing:
default_pipelines: [traces]
error_mode: ignore
match_once: false
table:
- statement: route() where attributes["X-Tenant"] == "acme"
pipelines: [traces]
exporters:
debug:
otlp:
endpoint: jaeger:4317
tls:
insecure: true
service:
pipelines:
logs:
receivers: [syslog]
processors: [transform]
exporters: [routing]
traces:
receivers: [routing]
exporters: [debug, otlp]
and the error:
Error: failed to build pipelines: connector "routing" used as exporter in logs pipeline but not used in any supported receiver pipeline
Beta Was this translation helpful? Give feedback.
All reactions