Deployment Architecture

Why are scheduled reports failing to run after enabling search head clustering in Splunk 6.2.1?

Chubbybunny
Splunk Employee
Splunk Employee

We just enabled SHC 6.2.1 and I'm finding none of my scheduled reports are running at all.

As a test, I created a simple search (index=_internal | stats count) along with a cron to execute it every minute, but the saved scheduled search does not run at all. I can also confirm this search provides results as an Adhoc search.
Investigating further, it seems nothing has ran since the day I enabled SHC last week. I have also confirmed, default-mode.conf does not have the 'pipeline:scheduler' thread disabled, so I'm assuming this is specific to SHC and my configuration.

1 Solution

Chubbybunny
Splunk Employee
Splunk Employee

found the problem!!

We had an app get punted over from our DEV environment that had

 server.conf: adhoc_searchhead = true

Once we killed the app and restarted, ALL scheduled searches started up nicely.

adhoc_searchhead = <bool>
    * This setting configures a member as an adhoc searchhead; i.e., the member will not
      run any scheduled jobs.
    * Use the setting captain_is_adhoc_searchhead to reduce compute load on the captain.
    * Defaults to false.

View solution in original post

Chubbybunny
Splunk Employee
Splunk Employee

found the problem!!

We had an app get punted over from our DEV environment that had

 server.conf: adhoc_searchhead = true

Once we killed the app and restarted, ALL scheduled searches started up nicely.

adhoc_searchhead = <bool>
    * This setting configures a member as an adhoc searchhead; i.e., the member will not
      run any scheduled jobs.
    * Use the setting captain_is_adhoc_searchhead to reduce compute load on the captain.
    * Defaults to false.

nvonkorff
Path Finder

Thanks for this. It pointed me in the right direction. While not the exact cause of our issue, it is similar.

We had a user who couldn't load a dashboard from scheduled search results on a search head cluster. It seemed to only happen on one node of the cluster. Turned out it was alway the captain node. We had the captain configured to only run ad-hoc searches:
https://docs.splunk.com/Documentation/Splunk/6.6.2/DistSearch/Adhocclustermember#Configure_the_capta...

This explains why there were no results from the scheduled search to load the dashboard on that one instance.

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!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...