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!

Industry Solutions for Supply Chain and OT, Amazon Use Cases, Plus More New Articles ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Enterprise Security Content Update (ESCU) | New Releases

In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...

Index This | Divide 100 by half. What do you get?

November 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...