<?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: Sub-search not yielding results in SQL in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sub-search-not-yielding-results-in-SQL/m-p/437987#M124706</link>
    <description>&lt;P&gt;Could you please add more details about what you are trying to accomplish with this search?&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2019 20:55:39 GMT</pubDate>
    <dc:creator>jnudell_2</dc:creator>
    <dc:date>2019-06-21T20:55:39Z</dc:date>
    <item>
      <title>Sub-search not yielding results in SQL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sub-search-not-yielding-results-in-SQL/m-p/437986#M124705</link>
      <description>&lt;P&gt;The search below does not yield results like NOT IN SQL. Any suggestion please.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=06/19/2019:23:00:00 latest=06/20/2019:15:00:00 index="cf-pci" cf_app_name="order-event-publisher*" "Posted event message for OrderId*" | rex field=_raw "Posted event message for OrderId (?[A-Z0-9]*), versionId (?[0-9]*)"| eval return =  OrdNo."/".VerId| dedup return| stats count by return | table return 
|search NOT 
[ search earliest=06/19/2019:23:00:00 latest=06/20/2019:16:00:00 index=pt-supply-chain-visibility sourcetype=scv-listener-oms:application:access  "message.data.status"=processed | rename message.data.domainId as  OrdNo message.data.versionId as VerId | eval return =  OrdNo."/".VerId| dedup return| stats count by return| fields return]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jun 2019 19:49:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sub-search-not-yielding-results-in-SQL/m-p/437986#M124705</guid>
      <dc:creator>seemakurthy</dc:creator>
      <dc:date>2019-06-21T19:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-search not yielding results in SQL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sub-search-not-yielding-results-in-SQL/m-p/437987#M124706</link>
      <description>&lt;P&gt;Could you please add more details about what you are trying to accomplish with this search?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 20:55:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sub-search-not-yielding-results-in-SQL/m-p/437987#M124706</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2019-06-21T20:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-search not yielding results in SQL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sub-search-not-yielding-results-in-SQL/m-p/437988#M124707</link>
      <description>&lt;P&gt;I have two containers which are exchanging data, i am reconciling the data exchange between them. The top query gives me sender events, the sub query gives me receiver events. I am checking for events which are sent by producer and not received by the consumer. &lt;BR /&gt;
Producer:-&lt;BR /&gt;
earliest=06/19/2019:23:00:00 latest=06/20/2019:15:00:00 index="cf-pci" cf_app_name="order-event-publisher*" "Posted event message for OrderId*" | rex field=_raw "Posted event message for OrderId (?[A-Z0-9]&lt;EM&gt;), versionId (?[0-9]&lt;/EM&gt;)"| eval return =  OrdNo."/".VerId| dedup return| stats count by return | table return &lt;/P&gt;

&lt;P&gt;Consumer:-&lt;BR /&gt;
search earliest=06/19/2019:23:00:00 latest=06/20/2019:16:00:00 index=pt-supply-chain-visibility sourcetype=scv-listener-oms:application:access  "message.data.status"=processed | rename message.data.domainId as  OrdNo message.data.versionId as VerId | eval return =  OrdNo."/".VerId| dedup return| stats count by return| fields return]&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:01:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sub-search-not-yielding-results-in-SQL/m-p/437988#M124707</guid>
      <dc:creator>seemakurthy</dc:creator>
      <dc:date>2020-09-30T01:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-search not yielding results in SQL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sub-search-not-yielding-results-in-SQL/m-p/437989#M124708</link>
      <description>&lt;P&gt;Stop thinking SQL; try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index="cf-pci" cf_app_name="order-event-publisher*" "Posted event message for OrderId*") OR
(index=pt-supply-chain-visibility sourcetype=scv-listener-oms:application:access  "message.data.status"=processed)
| rex "Posted event message for OrderId (?&amp;lt;OrderNo&amp;gt;[A-Z0-9]*), versionId (?&amp;lt;VerId&amp;gt;[0-9]*)"
| eval return = colesce(OrdNo,message.data.domainId) . "/" . colesce(VerId, message.data.versionId)
| stats dc(index) AS index_count values(index) AS index BY return
| where index_count==1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jul 2019 16:56:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sub-search-not-yielding-results-in-SQL/m-p/437989#M124708</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-11T16:56:19Z</dc:date>
    </item>
  </channel>
</rss>

