Getting Data In

How To Create HEC Http_Input in Indexer Cluster Envirmment

AliMaher
Path Finder

Hello,

 

I want to create Input: HEC on the indexers => Indexer Cluster.

 

Create inputs.conf under /opt/splunk/etc/master-apps/_cluster/http_input/local:

[http]
disabled=0
enableSSL=0

[http://hec-input]
disabled=0
enableSSL=0
#useACK=true
index=HEC
source=HEC_Source
sourcetype=_json
token=2f5c143f-b777-4777-b2cc-ea45a4288677

Push these configuration to the peer-app (Indexers).

 

But we go to the Data inputs => HTTP Event Collector  at indexer Side

we still found it as below:

2024-11-23_141605.png

 

 

Labels (2)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

What do you mean by "we go to the Data inputs => HTTP Event Collector at indexer Side"?

You have WebUI enabled on your clustered indexers? It's a big no-no.

AliMaher
Path Finder

Yes, I know the WebUI should be disabled for the indexers, but it's test environment so it's enabled.

0 Karma

marnall
Motivator

You shouldn't need to put inputs.conf into master-apps/_cluster/http_input/local, it should either go into master-apps/_cluster/local or master-apps/http_input/local . Try moving it into _cluster/local or http_input/local.

AliMaher
Path Finder

Kindly, let me know why you need to skip _cluster path?

0 Karma

marnall
Motivator

In terms of pathing to the config file, you can think of _cluster as an app. So you can do:

master-apps/_cluster/local

-or-

master-apps/<yourapp>/local

 

But it makes no sense to have both:

master-apps/_cluster/<yourapp>/local

 

ref: https://docs.splunk.com/Documentation/Splunk/9.3.2/Indexer/Updatepeerconfigurations

 

Also one other thing came to mind: You are using the old name "master-apps" rather than the new name "manager-apps". This is fine as long as all your apps are placed either in master-apps or manager-apps, but your apps should not be in both folders.

Get Updates on the Splunk Community!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...