<?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 do I exclude certain emails from being indexed? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-exclude-certain-emails-from-being-indexed/m-p/499086#M85075</link>
    <description>&lt;P&gt;Hi @capilarity, &lt;BR /&gt;
sorry few lines above:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 15 May 2020 15:54:44 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-05-15T15:54:44Z</dc:date>
    <item>
      <title>How do I exclude certain emails from being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-exclude-certain-emails-from-being-indexed/m-p/499083#M85072</link>
      <description>&lt;P&gt;We have recently turned on journaling within MS Exchange which basically sends a copy of every item to a journaling mail box. We know the email address the process uses and this appears in the message tracking logs as additional emails - in short journaling has doubled our Splunk licence usage!!&lt;/P&gt;

&lt;P&gt;We would like to exclude the journaling email address from being indexed.&lt;BR /&gt;
Exchange can't turn off message tracking for certain email addresses&lt;/P&gt;

&lt;P&gt;We are using UF on the Exchange servers with a load balanced intermediate level of Heavy forwarders.&lt;/P&gt;

&lt;P&gt;We have tried to apply the exclusion based on this answer - Answer 289736 - how to exclude a sourcetype from being indexed, but using a regex that picks up the journaling email address.&lt;/P&gt;

&lt;P&gt;The address we want to exclude is: &lt;A href="mailto:journal@ev.local"&gt;journal@ev.local&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;We've tried it on the Intermediate Heavy forwarders and on the index servers with no effect.&lt;/P&gt;

&lt;P&gt;The config we have applied is:&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[MSExchange:2013:MessageTracking]&lt;BR /&gt;
TRANSFORMS-JournalRemoval = JournalRemoval&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[JournalRemoval]&lt;BR /&gt;
REGEX =.*&lt;A href="mailto:journal@ev"&gt;journal@ev&lt;/A&gt;.*&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullqueue&lt;/P&gt;

&lt;P&gt;Any ideas why this might not be working?&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 12:23:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-exclude-certain-emails-from-being-indexed/m-p/499083#M85072</guid>
      <dc:creator>capilarity</dc:creator>
      <dc:date>2020-05-14T12:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude certain emails from being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-exclude-certain-emails-from-being-indexed/m-p/499084#M85073</link>
      <description>&lt;P&gt;Hi @capilarity,&lt;BR /&gt;
filter must be on Indexers if there isn't any Heavy Forwarders, otherwise on HFs.&lt;BR /&gt;
the instruction to filter data are at &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Anyway, in transforms.conf try one or the other of these regexes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX=journal@ev
REGEX=(journal@ev)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 12:52:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-exclude-certain-emails-from-being-indexed/m-p/499084#M85073</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-14T12:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude certain emails from being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-exclude-certain-emails-from-being-indexed/m-p/499085#M85074</link>
      <description>&lt;P&gt;Thanks Giuseppe, I had found the docs you highlighted but they are about including the ones that match the regex and discard the rest, we are trying to do the other way round, discard those that match, index the rest.&lt;/P&gt;

&lt;P&gt;I've also tried the different combinations of the regex you suggested on both the intermediate HF and the indexer.&lt;BR /&gt;
Sill no luck  &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 15:13:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-exclude-certain-emails-from-being-indexed/m-p/499085#M85074</guid>
      <dc:creator>capilarity</dc:creator>
      <dc:date>2020-05-15T15:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude certain emails from being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-exclude-certain-emails-from-being-indexed/m-p/499086#M85075</link>
      <description>&lt;P&gt;Hi @capilarity, &lt;BR /&gt;
sorry few lines above:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 15:54:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-exclude-certain-emails-from-being-indexed/m-p/499086#M85075</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-15T15:54:44Z</dc:date>
    </item>
  </channel>
</rss>

