Getting Data In

Why is scripted input not forwarding to peers ?

tdiestel
Path Finder

Our setup comprises of 1 heavy forwarder, 3 searchheads and 3 peers/indexers all in the clustered environment.
We are trying to create a scripted input on the heavy forwarder. We need the scripted input to output the data on an index on the peered cluster. When we try to create the scripted input on the heavy forwarder via the UI only the local indexes on the heavy forwarder show up.

How can we achieve our main objective without storing data on the heavy forwarder and only storing it in on the indexers.

0 Karma

Yasaswy
Contributor

Hi,
If there is no need/requirement for local indexing, it can be disabled:

Go to Splunk install directory
cd bin
./splunk disable local-index
./splunk restart 

You can explicitly define your data inputs in your inputs and outputs.conf. Assuming it's a Linux env and you are using default ports..Eg:

inputs.conf  
[script:///Path to your script]
disabled = false
interval = your_interval (cron or secs)
sourcetype = your_sourcetype
index = your_index_on_cluster

outputs.conf
[indexAndForward]
index = false

[tcpout]
defaultGroup = your-group

[tcpout:your-group]
server=idx1:9997,idx2:9997,idx3:9997
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...