<?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: Help with splunk query, searchmatch finding false positives in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-query-searchmatch-finding-false-positives/m-p/427246#M191100</link>
    <description>&lt;P&gt;Oh, yeah, copy paste mistake. Let me update it to prevent confusion if someone else reads this in the future &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2019 12:55:53 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2019-08-06T12:55:53Z</dc:date>
    <item>
      <title>Help with splunk query, searchmatch finding false positives</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-query-searchmatch-finding-false-positives/m-p/427243#M191097</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;

&lt;P&gt;Very new to using splunk and love the power of dashboards.&lt;/P&gt;

&lt;P&gt;I'm executing the following&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=my_app ("C4C Auth Scenario")| stats count(eval(searchmatch("C4C Auth Scenario 1"))) as "S1", count(eval(searchmatch("C4C Auth Scenario 2"))) as "S2", count(eval(searchmatch("C4C Auth Scenario 3"))) as "S3", count(eval(searchmatch("C4C Auth Scenario 4Y"))) as "S4Y", count(eval(searchmatch("C4C Auth Scenario 4N"))) as "S4N", count(eval(searchmatch("C4C Auth Scenario 5"))) as "S5", count(eval(searchmatch("C4C Auth Scenario 6"))) as "S6" | untable blank Reason Count | table Reason Count&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And I'm finding that S6 is returning false positives.&lt;/P&gt;

&lt;P&gt;If I execute &lt;CODE&gt;index=my_app "C4C Auth Scenario 6"&lt;/CODE&gt; no results are returned.&lt;/P&gt;

&lt;P&gt;Yet if I execute the full query above, it returns multiple rows in the count&lt;/P&gt;

&lt;P&gt;What would the cause of this be, and how do I go about ensuring it doesn't occur. &lt;/P&gt;

&lt;P&gt;I'm looking to create a dashboard based on the occurrence of logging events.&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 07:20:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-query-searchmatch-finding-false-positives/m-p/427243#M191097</guid>
      <dc:creator>hamishcross</dc:creator>
      <dc:date>2019-08-05T07:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with splunk query, searchmatch finding false positives</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-query-searchmatch-finding-false-positives/m-p/427244#M191098</link>
      <description>&lt;P&gt;I don't have an immediate answer for the difference in search results and the 'false positives' you experienced. Are you sure both searches were ran over the same time window?&lt;/P&gt;

&lt;P&gt;Anyway, I would solve this by extracting the scenario 'number' into a field and then doing a stats by that field.&lt;/P&gt;

&lt;P&gt;For example (you want to implement this with automatic field extractions in the end, so you don't need the line with the &lt;CODE&gt;rex&lt;/CODE&gt; command anymore):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_app ("C4C Auth Scenario")
| rex "C4C Auth Scenario (?&amp;lt;Reason&amp;gt;\w+)"
| stats count by Reason
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Aug 2019 12:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-query-searchmatch-finding-false-positives/m-p/427244#M191098</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-08-05T12:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with splunk query, searchmatch finding false positives</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-query-searchmatch-finding-false-positives/m-p/427245#M191099</link>
      <description>&lt;P&gt;Thanks mate, that worked pretty well. Only thing I would say is I had to remove the "index=my_app" after rex to make it work. Was this in error or have I made a mistake?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 05:07:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-query-searchmatch-finding-false-positives/m-p/427245#M191099</guid>
      <dc:creator>hamishcross</dc:creator>
      <dc:date>2019-08-06T05:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with splunk query, searchmatch finding false positives</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-query-searchmatch-finding-false-positives/m-p/427246#M191100</link>
      <description>&lt;P&gt;Oh, yeah, copy paste mistake. Let me update it to prevent confusion if someone else reads this in the future &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 12:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-query-searchmatch-finding-false-positives/m-p/427246#M191100</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-08-06T12:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with splunk query, searchmatch finding false positives</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-query-searchmatch-finding-false-positives/m-p/427247#M191101</link>
      <description>&lt;P&gt;Awesome! For newbies like me, if it doesn't work, finding the problem can be really problematic. So really good to ensure the examples work. Thanks again&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 01:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-splunk-query-searchmatch-finding-false-positives/m-p/427247#M191101</guid>
      <dc:creator>hamishcross</dc:creator>
      <dc:date>2019-08-07T01:07:22Z</dc:date>
    </item>
  </channel>
</rss>

