Closed iacineIT closed 1 year ago
Hey, can you verify first if indexes test_web_sandbox
and k8s-system_sandbox
exist in Splunk?
I just want to make sure, as Incorrect index
is a typical problem returned from HEC endpoint when an index doesn't exist. Overall, this error originated from Splunk instance itself, so for sure something is configured wrongly.
Hello, yes the two index exist in Splunk
@iacinedecathlon is the index selected for the above HEC token?
Hello @VihasMakwana , Yes :)
Ok, can you run the curl from the place where Splunk Otel Collector Chart is installed? Here is one guide on how to do it.
It is just to verify if it won't return those Incorrect index
error.
Also, can you reinstall and see if you have any additional errors present?
For me every time Incorrect index
was returned by Splunk either the index had a typo or the HEC token had no permission for the specified index.
It would be really cool if Splunk would return Incorrect index: $nameOfThdIndex
. It would make debugging so much easier. Or the splunkexporter could potentially also know and print what index was used.
For me every time
Incorrect index
was returned by Splunk either the index had a typo or the HEC token had no permission for the specified index.It would be really cool if Splunk would return
Incorrect index: $nameOfThdIndex
. It would make debugging so much easier. Or the splunkexporter could potentially also know and print what index was used.
Yeah, it would be great if Splunk does that, but we have what we have 😅 Incorrect index
is the only information being returned in the Splunk's response.
Hello, I found the problem. It's a problem with Splunk directly. Thank you for your answers.
What happened?
Hello,
I have an issue with the splunk otel collector. When I active the annotation splunk.com/index the log is not sent on the first index and not in the index on the annotation. I can send the log from the forwarder container. I think the url of splunk is good and the token is good.
Steps to Reproduce
1: Install chart on GKE. 2: Define the values:
3: Define annotation on the namespace.
kubectl annotate namespaces nginx splunk.com/index=test_web_sandbox
Expected Result
Send log on pod in the namespace nginx in test_web_sandbox index splunk cloud
Actual Result
Not send on test_web_sandbox index and k8s-system_sandbox index
Chart version
Splunk-otel-collector-0.81.0
Environment information
Cloud: GKE k8s version: 1.26.5-gke.1200 Splunk cloud
Chart configuration
Log output
Additional context
No response