<?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: Generating Alert, ability to exclude search term in email in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Generating-Alert-ability-to-exclude-search-term-in-email/m-p/130889#M2069</link>
    <description>&lt;P&gt;Two ways:&lt;/P&gt;

&lt;P&gt;First way is to save the search, and give it a name (e.g. "My saved search"). DO NOT schedule this search. Then create a different scheduled search and use the savedsearch directive:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| savedsearch "My saved search"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then the alert e-mail will only contain the above string, not the original query which might be sensitive.&lt;/P&gt;

&lt;P&gt;Another way, less work, but also less assured. Splunk's alert e-mails only include the up to the first carriage return in your search. So, you can put some innocuous search stuff at the beginng. For instance:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*
index=sensitive key=value
| stats count by sensitivefield
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When you get the alert e-mail, only the first line ("index=*") will be included.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2013 17:36:58 GMT</pubDate>
    <dc:creator>supersleepwalke</dc:creator>
    <dc:date>2013-11-14T17:36:58Z</dc:date>
    <item>
      <title>Generating Alert, ability to exclude search term in email</title>
      <link>https://community.splunk.com/t5/Alerting/Generating-Alert-ability-to-exclude-search-term-in-email/m-p/130885#M2065</link>
      <description>&lt;P&gt;Is there a way to exclude the actual search string in the email generated out of an alert. I understand you can exclude results but is there a way to exclude the actual search string from the email There are times when there can be sensitive information in the actual string that you do not want to include in the alert email.&lt;BR /&gt;&lt;BR /&gt;
Thanks,&lt;BR /&gt;&lt;BR /&gt;
Bob&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2013 15:28:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Generating-Alert-ability-to-exclude-search-term-in-email/m-p/130885#M2065</guid>
      <dc:creator>rdownie</dc:creator>
      <dc:date>2013-11-06T15:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Alert, ability to exclude search term in email</title>
      <link>https://community.splunk.com/t5/Alerting/Generating-Alert-ability-to-exclude-search-term-in-email/m-p/130886#M2066</link>
      <description>&lt;P&gt;I am guessing having it call a script to generate a custom email is the only way to do this?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2013 15:44:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Generating-Alert-ability-to-exclude-search-term-in-email/m-p/130886#M2066</guid>
      <dc:creator>rdownie</dc:creator>
      <dc:date>2013-11-06T15:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Alert, ability to exclude search term in email</title>
      <link>https://community.splunk.com/t5/Alerting/Generating-Alert-ability-to-exclude-search-term-in-email/m-p/130887#M2067</link>
      <description>&lt;P&gt;Write a short script that is triggered to send email with a custom subject and body rather than using the built-in email alert reporting. It could be something as simple as a shell script that runs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mail -s "This is a search alert message" user@domain.tld &amp;lt; /dev/null
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or the equiv on your system.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 19:41:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Generating-Alert-ability-to-exclude-search-term-in-email/m-p/130887#M2067</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2013-11-07T19:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Alert, ability to exclude search term in email</title>
      <link>https://community.splunk.com/t5/Alerting/Generating-Alert-ability-to-exclude-search-term-in-email/m-p/130888#M2068</link>
      <description>&lt;P&gt;Yeah that is what I figured. I was hoping it was configurable.&lt;BR /&gt;
Thanks,&lt;BR /&gt;
-Bob&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 13:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Generating-Alert-ability-to-exclude-search-term-in-email/m-p/130888#M2068</guid>
      <dc:creator>rdownie</dc:creator>
      <dc:date>2013-11-12T13:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Alert, ability to exclude search term in email</title>
      <link>https://community.splunk.com/t5/Alerting/Generating-Alert-ability-to-exclude-search-term-in-email/m-p/130889#M2069</link>
      <description>&lt;P&gt;Two ways:&lt;/P&gt;

&lt;P&gt;First way is to save the search, and give it a name (e.g. "My saved search"). DO NOT schedule this search. Then create a different scheduled search and use the savedsearch directive:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| savedsearch "My saved search"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then the alert e-mail will only contain the above string, not the original query which might be sensitive.&lt;/P&gt;

&lt;P&gt;Another way, less work, but also less assured. Splunk's alert e-mails only include the up to the first carriage return in your search. So, you can put some innocuous search stuff at the beginng. For instance:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*
index=sensitive key=value
| stats count by sensitivefield
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When you get the alert e-mail, only the first line ("index=*") will be included.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2013 17:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Generating-Alert-ability-to-exclude-search-term-in-email/m-p/130889#M2069</guid>
      <dc:creator>supersleepwalke</dc:creator>
      <dc:date>2013-11-14T17:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Generating Alert, ability to exclude search term in email</title>
      <link>https://community.splunk.com/t5/Alerting/Generating-Alert-ability-to-exclude-search-term-in-email/m-p/130890#M2070</link>
      <description>&lt;P&gt;This works.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2013 17:39:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Generating-Alert-ability-to-exclude-search-term-in-email/m-p/130890#M2070</guid>
      <dc:creator>rdownie</dc:creator>
      <dc:date>2013-11-14T17:39:31Z</dc:date>
    </item>
  </channel>
</rss>

