Splunk Observability Cloud

Why getting 401 error while sending Spans to SignalFx(Splunk Observability as a cloud)?

glingaraj
Engager

Hi Team,

I have created a trial account in Splunk Observability as a cloud for checking traces and spans. While trying to send spans from an Java based application from EC2 instance(Personal account) using Java agent, I am getting 401 unauthorized error. Have verified creating API tokens as per the documentation but still getting same error. 

Can you please help in suggesting way forward for this issue?

Links referred:

https://docs.splunk.com/Observability/gdi/get-data-in/application/java/instrumentation/instrument-ja...

(Referred topic "Send data directly to Observability Cloud") in above Link

https://docs.splunk.com/Observability/gdi/get-data-in/application/java/troubleshooting/common-java-t...

https://docs.splunk.com/Observability/admin/authentication-tokens/api-access-tokens.html#admin-api-a...

Error:

[otel.javaagent 2022-07-15 01:57:56:036 +0000] [BatchSpanProcessor_WorkerThread-1] WARN io.opentelemetry.exporter.jaeger.thrift.JaegerTh
riftSpanExporter - Failed to export spans
io.jaegertracing.internal.exceptions.SenderException: Could not send 72 spans, response 401:
at io.jaegertracing.thrift.internal.senders.HttpSender.send(HttpSender.java:87)
at io.opentelemetry.exporter.jaeger.thrift.JaegerThriftSpanExporter.lambda$export$2(JaegerThriftSpanExporter.java:99)
at java.util.HashMap.forEach(HashMap.java:1290)
at io.opentelemetry.exporter.jaeger.thrift.JaegerThriftSpanExporter.export(JaegerThriftSpanExporter.java:93)
at io.opentelemetry.sdk.trace.export.BatchSpanProcessor$Worker.exportCurrentBatch(BatchSpanProcessor.java:326)
at io.opentelemetry.sdk.trace.export.BatchSpanProcessor$Worker.run(BatchSpanProcessor.java:244)
at java.lang.Thread.run(Thread.java:748)

 

Tags (2)

mlambertzp
Engager

Did you find the root cause or a solution to this issue?

0 Karma
Get Updates on the Splunk Community!

Build Scalable Security While Moving to Cloud - Guide From Clayton Homes

 Clayton Homes faced the increased challenge of strengthening their security posture as they went through ...

Mission Control | Explore the latest release of Splunk Mission Control (2.3)

We’re happy to announce the release of Mission Control 2.3 which includes several new and exciting features ...

Cloud Platform | Migrating your Splunk Cloud deployment to Python 3.7

Python 2.7, the last release of Python 2, reached End of Life back on January 1, 2020. As part of our larger ...