-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[connector/routing] Routing by Attribute value fails and route to default pipeline #27020
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@mwear are you able to take a look at this one? |
I'll take a look @jpkrohling. |
Sorry for the delay @nadavleva. I had a chance to look into this today. The routing connector routes based on resource attributes. The problem is that you do not have a resource attribute named
Note that the Your output should look similar to this:
Give this a try and report back. |
Hi @mwear Here is the schema of the Log Resource. Resource SchemaURL: Thank you for your answer and guidance |
Component(s)
connector/routing
What happened?
Description
I am running PoC to check routing by Resource Attributes using the connector routingconnector
I am trying to route to a different pipeline based on the Logs Severity Attribute
The routing by attribute fails to route to the correct attribute instead it routes to the default pipeline
The Logs output and otel-collector logs show the attribute value is "info" and the routing rule for info should be logs/apiengine exporter
Steps to Reproduce
Build customer otel collector including routingconnector, see
otelcol-builder.txt
Run the custom collector with the configuration
otel-collector-config_connector.txt
Copy a sample file with the severity attribute "info" to the path the collector file receiver is watching
input_sample.txt
Expected Result
The log resource should be routed to the pipeline logs/apiengine
Actual Result
The Log resource is routed to the default pipeline logs/all
Collector version
v0.85.0
Environment information
Environment
OS: Ubuntu 20.04.5 LTS
Compiler(if manually compiled): go1.21.1 linux/amd64
OpenTelemetry Collector configuration
Log output
Additional context
When checking the routing processor with the following configuration
otel-collector-config_processor.txt
The routing to the correct exporter worked
See the resource output:
outputLog.txt
The instructions how to build and include the routing connector was mentioned in #26495
The text was updated successfully, but these errors were encountered: