<?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: Use splunk commands in splunk alert shell script in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Use-splunk-commands-in-splunk-alert-shell-script/m-p/300780#M5426</link>
    <description>&lt;P&gt;Why don't you process the results within SPlunk with a scheduled alert? You should be able to send an email.&lt;/P&gt;

&lt;P&gt;Also with ./bin/splunk you can run a search with |sendmail cmd&lt;/P&gt;

&lt;P&gt;Otherwise, I would setup a savedsearch that send an email every time it runs, then run it from shell. Otherwise, use OS deamon&lt;/P&gt;</description>
    <pubDate>Fri, 09 Mar 2018 10:53:54 GMT</pubDate>
    <dc:creator>valiquet</dc:creator>
    <dc:date>2018-03-09T10:53:54Z</dc:date>
    <item>
      <title>Use splunk commands in splunk alert shell script</title>
      <link>https://community.splunk.com/t5/Alerting/Use-splunk-commands-in-splunk-alert-shell-script/m-p/300779#M5425</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am working on writing a shell script which will get executed after an splunk alert.&lt;BR /&gt;
after processing the alert results in the shell script, i want to use splunk's "sendemail" command in the shell script.&lt;BR /&gt;
Can somebody tell me is it possible to use splunk commands in the shell script?&lt;BR /&gt;
if not how can i send email from that shell script?&lt;BR /&gt;
I do not have any control on the splunk server as it is owned by devops team.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 07:39:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Use-splunk-commands-in-splunk-alert-shell-script/m-p/300779#M5425</guid>
      <dc:creator>sharafat1187</dc:creator>
      <dc:date>2018-02-21T07:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Use splunk commands in splunk alert shell script</title>
      <link>https://community.splunk.com/t5/Alerting/Use-splunk-commands-in-splunk-alert-shell-script/m-p/300780#M5426</link>
      <description>&lt;P&gt;Why don't you process the results within SPlunk with a scheduled alert? You should be able to send an email.&lt;/P&gt;

&lt;P&gt;Also with ./bin/splunk you can run a search with |sendmail cmd&lt;/P&gt;

&lt;P&gt;Otherwise, I would setup a savedsearch that send an email every time it runs, then run it from shell. Otherwise, use OS deamon&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 10:53:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Use-splunk-commands-in-splunk-alert-shell-script/m-p/300780#M5426</guid>
      <dc:creator>valiquet</dc:creator>
      <dc:date>2018-03-09T10:53:54Z</dc:date>
    </item>
  </channel>
</rss>

