<?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: Why is the email alert action not working for a scheduled search after moving the saved search to a different app? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262687#M4862</link>
    <description>&lt;P&gt;Hi somesoni2,&lt;BR /&gt;
                    Thanks for replying.&lt;BR /&gt;
                     I had deleted from search app and created in my new app.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 04:35:38 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2016-02-03T04:35:38Z</dc:date>
    <item>
      <title>Why is the email alert action not working for a scheduled search after moving the saved search to a different app?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262681#M4856</link>
      <description>&lt;P&gt;Hi Everyone!&lt;/P&gt;

&lt;P&gt;I have an issue regarding scheduled Alerts.&lt;/P&gt;

&lt;P&gt;Below defined saved search was configured in the Search app. It was working fine and triggered an email: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Test Email Alert]
action.email = 1
action.email.format = table
action.email.inline = 1
action.email.reportServerEnabled = 0
action.email.sendresults = 1
action.email.to = xyz@gmail.com
action.keyindicator.invert = 0
alert.digest_mode = True
alert.expires = 1h
alert.suppress = 0
alert.track = 1
auto_summarize.dispatch.earliest_time = -1d@h
counttype = number of events
cron_schedule = */10 * * * *
dispatch.earliest_time = -10min@min
dispatch.latest_time = now
display.general.type = statistics
display.page.search.mode = verbose
display.page.search.tab = statistics
enableSched = 1
quantity = 0
relation = greater than
request.ui_dispatch_app = search
request.ui_dispatch_view = search
search = index=main host="127.0.0.1"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can find the log of successful execution with the search below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*scheduler.log savedsearch_name="Test Email Alert" alert_actions=email
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After this, I shifted this saved search to a different app (myapp) .&lt;/P&gt;

&lt;P&gt;The saved search was scheduled and runs perfectly, but an email is not received. Using this search below, I cannot find any log of the search successfully executing.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*scheduler.log savedsearch_name="Test Email Alert" alert_actions=email
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I found a log without alert_action, like this..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*scheduler.log savedsearch_name="Test Email Alert" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Kindly let me know if I am missing something.&lt;/P&gt;

&lt;P&gt;Thanks .&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 12:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262681#M4856</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2016-02-02T12:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the email alert action not working for a scheduled search after moving the saved search to a different app?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262682#M4857</link>
      <description>&lt;P&gt;hi kamlesh_vaghela,&lt;/P&gt;

&lt;P&gt;go and modify the permissions for this savedsearch and select &lt;CODE&gt;all apps&lt;/CODE&gt; for the rights &lt;CODE&gt;write&lt;/CODE&gt; and &lt;CODE&gt;read&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 12:44:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262682#M4857</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2016-02-02T12:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the email alert action not working for a scheduled search after moving the saved search to a different app?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262683#M4858</link>
      <description>&lt;P&gt;hi gyslainlatsa,&lt;/P&gt;

&lt;P&gt;thanks for answering. &lt;BR /&gt;
Permission Given. But still same.&lt;/P&gt;

&lt;P&gt;Is that any another issue ??&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 13:13:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262683#M4858</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2016-02-02T13:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the email alert action not working for a scheduled search after moving the saved search to a different app?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262684#M4859</link>
      <description>&lt;P&gt;you also have to change the permissions the app &lt;CODE&gt;myapp&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 13:18:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262684#M4859</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2016-02-02T13:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the email alert action not working for a scheduled search after moving the saved search to a different app?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262685#M4860</link>
      <description>&lt;P&gt;How did you move the search to different app? Did you use the move option OR created an identical search in new app and deleted from original place? If it's former, then just open the search and save it (no changes required) and try.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 23:38:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262685#M4860</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-02T23:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the email alert action not working for a scheduled search after moving the saved search to a different app?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262686#M4861</link>
      <description>&lt;P&gt;hi gyslainlatsa,&lt;/P&gt;

&lt;P&gt;app permission changed ..&lt;/P&gt;

&lt;P&gt;But still same issue :(.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 04:34:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262686#M4861</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2016-02-03T04:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the email alert action not working for a scheduled search after moving the saved search to a different app?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262687#M4862</link>
      <description>&lt;P&gt;Hi somesoni2,&lt;BR /&gt;
                    Thanks for replying.&lt;BR /&gt;
                     I had deleted from search app and created in my new app.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 04:35:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262687#M4862</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2016-02-03T04:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the email alert action not working for a scheduled search after moving the saved search to a different app?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262688#M4863</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
As I have resolved this issue with following conclusions.&lt;BR /&gt;
The email configurations should be defined in alert_actions.conf at app level or system level.&lt;/P&gt;

&lt;P&gt;In my case, email configurations are defined in alert_actions.conf of "search" app. So my savedsearch working proper in "search" app.&lt;BR /&gt;
Then after I have moved (deleting and creating) savessearch from search app to new app "myapp". "myapp" and System level has no any email configurations in alert_actions.conf.  So savedsearch executed properly but not sending any emails.&lt;/P&gt;

&lt;P&gt;As a solution I have defined system level email configurations in alert_actions.conf. Now It's working as per expected.&lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:47:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-is-the-email-alert-action-not-working-for-a-scheduled-search/m-p/262688#M4863</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2020-09-29T08:47:00Z</dc:date>
    </item>
  </channel>
</rss>

