Splunk Observability Cloud

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

glingaraj
Explorer

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!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...