<?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 are some expected events missing when applying a filter in our search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286154#M86637</link>
    <description>&lt;P&gt;Hi, sorry for the late reply. It fixed our problem. I'll add an answer to the question with your fix. Thanks for your help&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2017 22:16:54 GMT</pubDate>
    <dc:creator>mdelwaide</dc:creator>
    <dc:date>2017-02-06T22:16:54Z</dc:date>
    <item>
      <title>Why are some expected events missing when applying a filter in our search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286146#M86629</link>
      <description>&lt;P&gt;We recently onboarded some applications' logs, and at our client request, we had to put a custom field to have the application name in the fields. Since those weren’t in the log file, we hard-coded the application name in the log with a “_meta” field in the inputs.conf stanza. Since each application has its own stanza, it was easy.&lt;/P&gt;

&lt;P&gt;One of the analysts discovered this week that some events were discarded when a filter was applied for a certain application. We were able to reproduce the problem at a smaller scale.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2254iA5685F62AF9AD0A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Here the picture shows that there are 11 events for IAM, if we apply the filter for that application...&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2255iAE2ABF684540B8F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;This is only a 5 minutes window, at a "All Time" time range it's more than 10K events that goes missing&lt;/P&gt;

&lt;P&gt;Here is our Inputs.conf for that application&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://D:\APPLogs\IAM\IAM.log]
index = grc
sourcetype = GRC:APP
alwaysOpenFile = 1
disabled = false
_meta = application::IAM
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Dec 2016 19:59:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286146#M86629</guid>
      <dc:creator>mdelwaide</dc:creator>
      <dc:date>2016-12-20T19:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why are some expected events missing when applying a filter in our search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286147#M86630</link>
      <description>&lt;P&gt;Do you get a correct count when you use either of these searches?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=grc application=*IAM

index=grc | regex application="IAM"

index=grc application!=IAM:IWSS
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Dec 2016 20:21:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286147#M86630</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-12-20T20:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why are some expected events missing when applying a filter in our search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286148#M86631</link>
      <description>&lt;P&gt;index=grc application=*IAM&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;yes (Only IAM)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;index=grc | regex application="IAM"&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;We get all events (IAM and IAM:IWSS)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;index=grc application!=IAM:IWSS&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;yes&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 20 Dec 2016 20:34:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286148#M86631</guid>
      <dc:creator>mdelwaide</dc:creator>
      <dc:date>2016-12-20T20:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why are some expected events missing when applying a filter in our search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286149#M86632</link>
      <description>&lt;P&gt;Ok.. how about this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=grc application="IAM"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Dec 2016 20:38:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286149#M86632</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-12-20T20:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why are some expected events missing when applying a filter in our search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286150#M86633</link>
      <description>&lt;P&gt;No, showing only 10 Events&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 20:41:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286150#M86633</guid>
      <dc:creator>mdelwaide</dc:creator>
      <dc:date>2016-12-20T20:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why are some expected events missing when applying a filter in our search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286151#M86634</link>
      <description>&lt;P&gt;Ok lets check if there are additional character coming in the application name.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=grc application=*IAM | eval applength=len(application) | table applength
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Dec 2016 20:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286151#M86634</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-12-20T20:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why are some expected events missing when applying a filter in our search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286152#M86635</link>
      <description>&lt;P&gt;I've got only 3's&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 20:49:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286152#M86635</guid>
      <dc:creator>mdelwaide</dc:creator>
      <dc:date>2016-12-20T20:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why are some expected events missing when applying a filter in our search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286153#M86636</link>
      <description>&lt;P&gt;Try this fix. On your search head and Indexers, add following to fields.conf (preferred to be kept under some app). Should work (Reference: &lt;A href="https://answers.splunk.com/answers/389567/why-is-a-search-for-fields-added-with-meta-in-inpu.html"&gt;https://answers.splunk.com/answers/389567/why-is-a-search-for-fields-added-with-meta-in-inpu.html&lt;/A&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[application]
 INDEXED = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Dec 2016 21:13:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286153#M86636</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-12-20T21:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why are some expected events missing when applying a filter in our search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286154#M86637</link>
      <description>&lt;P&gt;Hi, sorry for the late reply. It fixed our problem. I'll add an answer to the question with your fix. Thanks for your help&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 22:16:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286154#M86637</guid>
      <dc:creator>mdelwaide</dc:creator>
      <dc:date>2017-02-06T22:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why are some expected events missing when applying a filter in our search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286155#M86638</link>
      <description>&lt;P&gt;Thanks somesoni2 for your help, your last fix helped us out with our problem.&lt;/P&gt;

&lt;P&gt;Steps:&lt;/P&gt;

&lt;P&gt;On our SH and Indexers we deployed a TA with a fields.conf file with this stanza :&lt;/P&gt;

&lt;P&gt;[application]&lt;BR /&gt;
  INDEXED = true&lt;/P&gt;

&lt;P&gt;(Reference: &lt;A href="https://answers.splunk.com/answers/389567/why-is-a-search-for-fields-added-with-meta-in-inpu.html"&gt;https://answers.splunk.com/answers/389567/why-is-a-search-for-fields-added-with-meta-in-inpu.html&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;Restarted and the problem was gone.&lt;/P&gt;

&lt;P&gt;Thanks again&lt;/P&gt;

&lt;P&gt;M.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 22:19:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-some-expected-events-missing-when-applying-a-filter-in/m-p/286155#M86638</guid>
      <dc:creator>mdelwaide</dc:creator>
      <dc:date>2017-02-06T22:19:24Z</dc:date>
    </item>
  </channel>
</rss>

