Dashboards & Visualizations

HEC not working properly with multiple indexes

miena
Loves-to-Learn Lots

I have an HEC configured as follows:

[http://customer]
disabled = 0
index = index1
indexes = index1, index2, index3, index4
token = <token>
sourcetype = _json

however when I test the endpoint using the command: curl -k -L https://<mysplunkurl>/collector -H 'Authorization: Splunk <token>' -d '{"sourcetype": "local_cURL test", "event":"Test Event For New Index"}'...I get a successful 200 response, but the event doesn't appear under any of the configured indexes.  Is this the correct configuration to send events to multiple indexes? 

Labels (1)
0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @miena,

In HEC configuration "index" parameter sets the default index for events that no index defined as metadata. Since you didn't set index parameter on your test command, the event should go to "index1".

"indexes" parameter sets the permitted indexes for this input. This does not mean it will be duplicated to all indexes.

If this reply helps you an upvote and "Accept as Solution" is appreciated.
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 ...