<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How can I find duplicate scheduled searches running in a search head clustering environment? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-find-duplicate-scheduled-searches-running-in-a-search/m-p/209682#M7877</link>
    <description>&lt;P&gt;I have a three Node Search Head Cluster environment and I suspect that some of the scheduled searches are running multiple times. How can I find these duplicate Scheduled searches running in an SHC environment.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2016 21:35:25 GMT</pubDate>
    <dc:creator>sat94541</dc:creator>
    <dc:date>2016-04-19T21:35:25Z</dc:date>
    <item>
      <title>How can I find duplicate scheduled searches running in a search head clustering environment?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-find-duplicate-scheduled-searches-running-in-a-search/m-p/209682#M7877</link>
      <description>&lt;P&gt;I have a three Node Search Head Cluster environment and I suspect that some of the scheduled searches are running multiple times. How can I find these duplicate Scheduled searches running in an SHC environment.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 21:35:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-find-duplicate-scheduled-searches-running-in-a-search/m-p/209682#M7877</guid>
      <dc:creator>sat94541</dc:creator>
      <dc:date>2016-04-19T21:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find duplicate scheduled searches running in a search head clustering environment?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-find-duplicate-scheduled-searches-running-in-a-search/m-p/209683#M7878</link>
      <description>&lt;P&gt;If you have a DMC that searches across all SHC member  on Scheduler.log - you can proceed with the following steps to debug, or else you need to index Scheduler.log from all SHC members somewhere.&lt;/P&gt;

&lt;P&gt;1)Run the search below to check if any scheduled search was run multiple times:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;( host=  OR host=) )  source=*scheduler.log  status=success 
| rex field=sid "(?\w+_\w+_\w+_\w+_at_\d+)_" 
| eval secDiff=dispatch_time-scheduled_time 
| eval schedT=strftime(scheduled_time, "%F %H:%M:%S") 
| eval dispatchT=strftime(dispatch_time, "%F %H:%M:%S") 
| transaction shortID keepevicted=t 
| search linecount&amp;gt;1
|table savedsearch_name, sid, schedT, dispatchT, secDiff, alert_actions
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample Result:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1250iC747AFE5B4B8BE37/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;2) Next you can focus on duplicate sid of one saved search like below to get more detail on the sid like  and use the search below to get more details &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; (
  host=  OR host=
 )
 AND
 (
  (source=*scheduler.log*   AND status=success   AND ( sid=scheduler__admin_dWlfc21zcw__RMD5ae47099b8f1c50d5_at_1460388900_111_96EB1F29-E71E-49E0-982C-767B6E64BE32 OR sid=scheduler__admin_dWlfc21zcw__RMD5ae47099b8f1c50d5_at_1460388900_122_181ABE0B-D122-42D2-A0C1-BACD9B46F50A ))
 OR 
 ( source=*splunkd.log* AND "Making node the captain" )

) | table _raw host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result: In this case it shows duplicate were caused by the captain switch.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1251i3BA8F7EFC276C61B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;In this case duplicate were caused due to switch Captain- this is from Splunk version 6.2.6.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 22:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-find-duplicate-scheduled-searches-running-in-a-search/m-p/209683#M7878</guid>
      <dc:creator>rbal_splunk</dc:creator>
      <dc:date>2016-04-19T22:30:14Z</dc:date>
    </item>
  </channel>
</rss>

