<?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 Re: How does Splunk work internally when I create an alert and gets loaded to savedsearches.conf? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-does-Splunk-work-internally-when-I-create-an-alert-and-gets/m-p/139967#M2257</link>
    <description>&lt;P&gt;Found a way.. I just want to share.... Please let me know if I am missing anything..&lt;BR /&gt;
(While we doing &lt;A href="http://..//debug/refresh" target="test_blank"&gt;http://..//debug/refresh&lt;/A&gt;, refres method inside debug.py is executed .. there they call the refreshEntities of splunk.entity.. I just tried the same below...)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;try:
     splunk.entity.refreshEntities("admin/savedsearch", namespace='search')
     output.append("Refresh oK ")
except:
     output.append("Failed")
     return '\n'.join(output)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above loads any manual modification done in savedsearches.conf&lt;BR /&gt;
It works for me... &lt;/P&gt;</description>
    <pubDate>Wed, 11 Feb 2015 06:43:02 GMT</pubDate>
    <dc:creator>paramagurukarth</dc:creator>
    <dc:date>2015-02-11T06:43:02Z</dc:date>
    <item>
      <title>How does Splunk work internally when I create an alert and gets loaded to savedsearches.conf?</title>
      <link>https://community.splunk.com/t5/Alerting/How-does-Splunk-work-internally-when-I-create-an-alert-and-gets/m-p/139966#M2256</link>
      <description>&lt;P&gt;How do Splunk alerts work?&lt;/P&gt;

&lt;P&gt;If we make any changes to the savedsearches.conf manually, it will only get loaded after restarting / refreshing splunk (http://..//debug/refresh), but when we create an alert using the Splunk Web UI, it creates an entry in the same savedsearches.conf and the changes are loaded at the same time.&lt;/P&gt;

&lt;P&gt;What does Splunk do internally? Does it trigger the same refresh process or something else?&lt;BR /&gt;
( If it triggers the refresh process, please let me know how to do that using Splunk's python SDK )&lt;/P&gt;

&lt;P&gt;Thanks..&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2015 06:07:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-does-Splunk-work-internally-when-I-create-an-alert-and-gets/m-p/139966#M2256</guid>
      <dc:creator>paramagurukarth</dc:creator>
      <dc:date>2015-02-10T06:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk work internally when I create an alert and gets loaded to savedsearches.conf?</title>
      <link>https://community.splunk.com/t5/Alerting/How-does-Splunk-work-internally-when-I-create-an-alert-and-gets/m-p/139967#M2257</link>
      <description>&lt;P&gt;Found a way.. I just want to share.... Please let me know if I am missing anything..&lt;BR /&gt;
(While we doing &lt;A href="http://..//debug/refresh" target="test_blank"&gt;http://..//debug/refresh&lt;/A&gt;, refres method inside debug.py is executed .. there they call the refreshEntities of splunk.entity.. I just tried the same below...)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;try:
     splunk.entity.refreshEntities("admin/savedsearch", namespace='search')
     output.append("Refresh oK ")
except:
     output.append("Failed")
     return '\n'.join(output)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above loads any manual modification done in savedsearches.conf&lt;BR /&gt;
It works for me... &lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 06:43:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-does-Splunk-work-internally-when-I-create-an-alert-and-gets/m-p/139967#M2257</guid>
      <dc:creator>paramagurukarth</dc:creator>
      <dc:date>2015-02-11T06:43:02Z</dc:date>
    </item>
  </channel>
</rss>

