Splunk Search

Running tscollect on a search head pool

sf_user_199
Path Finder

We have a dashboard that I would like to use tstats to generate the data, and run a search ever 2 minutes using tscollect.

The problem I have discovered is that since each search head in the pool saves tsidx files to it's own local tsidxstats directory, you only get a partial view of the data.

Any suggestions?

1 Solution

sf_user_199
Path Finder

We'll see if this blows up in my face, but:

  1. I stopped all search heads in the pool
  2. Created a new directory on the shared /nas that all the search heads use
  3. Copied the tsidx file that was the 'most full', as I had done some backfilling manually, to the new directory on the shared storage
  4. Deleted the tsidx directories on the search heads local storage, and replaced with a symlink to the new directory on shared storage
  5. Turned the search heads back on.

This has been running well for a few days, and the tsidx data is being updated by all search heads. Since the search that populates the data is only run by one search head, there have been no collisions so far.

View solution in original post

0 Karma

sf_user_199
Path Finder

We'll see if this blows up in my face, but:

  1. I stopped all search heads in the pool
  2. Created a new directory on the shared /nas that all the search heads use
  3. Copied the tsidx file that was the 'most full', as I had done some backfilling manually, to the new directory on the shared storage
  4. Deleted the tsidx directories on the search heads local storage, and replaced with a symlink to the new directory on shared storage
  5. Turned the search heads back on.

This has been running well for a few days, and the tsidx data is being updated by all search heads. Since the search that populates the data is only run by one search head, there have been no collisions so far.

0 Karma

jdunlea_splunk
Splunk Employee
Splunk Employee

Have you seen any performance hits having it running for a few months now? How big were/are your TSIDX namespaces?

Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...