<?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 Why is where command not working with Splunk events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-where-command-not-working-with-Splunk-events/m-p/616704#M214330</link>
    <description>&lt;P&gt;I want to search below events in the base search. However these are not getting displayed when I use the &lt;STRONG&gt;where&lt;/STRONG&gt; cmd. They are only getting shown when I use the &lt;STRONG&gt;spath&lt;/STRONG&gt; and &lt;STRONG&gt;search&lt;/STRONG&gt; cmd like below. Any idea why &lt;STRONG&gt;where&lt;/STRONG&gt; cmd is not working even though the filter criteria is getting matched? Its working for other events with the same filter criteria belpw. Only difference I can see is the multi line &lt;STRONG&gt;stack_trace&lt;/STRONG&gt; field that is missing in other events. Could that be the issue?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Query that does not give any results even though qualifying events are there&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;BASE_SEARCH | where like(MOP,"MC")&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Query that yields the results&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;BASE_SEARCH | spath MOP | search MOP=MC&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Event&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
LEVEL: ERROR
MESSAGE: Failed to process
stack_trace: Exception trace..
at blah
at blah
MOP: MC
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2022 15:24:47 GMT</pubDate>
    <dc:creator>ghostrider</dc:creator>
    <dc:date>2022-10-11T15:24:47Z</dc:date>
    <item>
      <title>Why is where command not working with Splunk events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-where-command-not-working-with-Splunk-events/m-p/616704#M214330</link>
      <description>&lt;P&gt;I want to search below events in the base search. However these are not getting displayed when I use the &lt;STRONG&gt;where&lt;/STRONG&gt; cmd. They are only getting shown when I use the &lt;STRONG&gt;spath&lt;/STRONG&gt; and &lt;STRONG&gt;search&lt;/STRONG&gt; cmd like below. Any idea why &lt;STRONG&gt;where&lt;/STRONG&gt; cmd is not working even though the filter criteria is getting matched? Its working for other events with the same filter criteria belpw. Only difference I can see is the multi line &lt;STRONG&gt;stack_trace&lt;/STRONG&gt; field that is missing in other events. Could that be the issue?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Query that does not give any results even though qualifying events are there&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;BASE_SEARCH | where like(MOP,"MC")&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Query that yields the results&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;BASE_SEARCH | spath MOP | search MOP=MC&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Event&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
LEVEL: ERROR
MESSAGE: Failed to process
stack_trace: Exception trace..
at blah
at blah
MOP: MC
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 15:24:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-where-command-not-working-with-Splunk-events/m-p/616704#M214330</guid>
      <dc:creator>ghostrider</dc:creator>
      <dc:date>2022-10-11T15:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why is where command not working with Splunk events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-where-command-not-working-with-Splunk-events/m-p/616708#M214333</link>
      <description>&lt;P&gt;The most likely reason is because the JSON object is not extracted if your second search requires an extra spath. &amp;nbsp;In fact, if you take that spath out in the second, or add that spath in the first, the two should give you the same results&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 15:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-where-command-not-working-with-Splunk-events/m-p/616708#M214333</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-10-11T15:48:03Z</dc:date>
    </item>
  </channel>
</rss>

