Dashboards & Visualizations

HEC Token with multiple indexes not working properly

ripleyramirocas
New Member

Hi,

I have configured a HEC Token with two different indexes (at my work we have lots of apps that are being used by two countries, for example, index APP_C1 and index APP_C2). The thing is that I want to have one token per app and configure the scripts so it can send data to the respective country index independently.

So, my HEC is configured with those two indexes, the thing is that it only works for the first one. I've tried with other HECs configured with more indexes and the problem happens the same way.

I'm using the NPM package called "splunk-logging". And the error I get is
"Response from Splunk { text: 'Incorrect index', code: 7, 'invalid-event-number': 1 } APP_C2"

I've been searching for a while with no luck. Please help!

0 Karma

dhihoriya_splun
Splunk Employee
Splunk Employee

Hi @ripleyramirocastillo93

If you want to add more than one indexes under one HEC token then you have to add below config under HEC token stanza in inputs.conf :

[HEC Token name]
Indexes = All the index name that you want to send the data by a comma-separated

If you are using Splunk-cloud then you have to raise a support case to add this config under HEC token stanza.

I hope this will help you.

Thanks,
Dixit

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...