Getting Data In

How to configure search head to forward internal data to the indexer and how to view indexer's indexes on search head's "Indexes" page?

DaClyde
Contributor

We have a slightly odd architecture as we have a single search head, a single indexer and multiple forwarders (for the sake of arguement, all running 6.2.1 after several upgrades from prior versions). All of the current documentation only seems to address scenarios of a search head pool and indexer clusters, but nothing seems to allow for just one of each server type.

The issue I have is that the search head is indexing its own events (_audit, _internal and _introspection indexes are active), rather than forwarding them to the indexer. Is it just a simple matter of adding an outputs.conf to push all search head activity to the indexer? If so, what would I put in there?

Also, is there a way to make the indexer's indexes appear in the "Indexes" page of the search head, instead of seeing a pile of empty search head indexes?

1 Solution

DaClyde
Contributor

Ok, so I guess this answers question one:

http://docs.splunk.com/Documentation/Splunk/latest/DistSearch/Forwardsearchheaddata

Not sure how I kept missing that. Still looking for help with question two.

View solution in original post

rmorlen
Splunk Employee
Splunk Employee

We do something similar to what you are referring to.

Yes, outputs.conf on the searchhead to forward data to the indexer.

We have an indexapp that contains a local directory with indexes.conf in it. Whenever we add an index we update that file and deploy to all of our indexers and any searchhead who need the index list.

We use a script to "enable" the indexes without restarting the indexers.

echo Enter in Admin password
read pw

for indexer in indexer1 indexer2 indexer3  
do
   echo $indexer
   echo -------------
   curl -k -u admin:$pw  https://$indexer:8089/servicesNS/admin/indexerbase/configs/conf-indexes/_reload
   curl -k -u admin:$pw  https://$indexer:8089/services/data/indexes/_reload
echo
sleep 1
done

echo -------------
echo Indexes reloaded

DaClyde
Contributor

Ok, so I guess this answers question one:

http://docs.splunk.com/Documentation/Splunk/latest/DistSearch/Forwardsearchheaddata

Not sure how I kept missing that. Still looking for help with question two.

DaClyde
Contributor

I guess I have basically figured question two out as well. Seems I can't find any answers until I've broadcast a question to the world. The index_status view (not sure how to access it without actually digging into the views via the User Interface settings screen) shows the pertinents of all available indexes.

../en-US/app/search/index_status

Get Updates on the Splunk Community!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...