<?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: Generic search does not return results that are returned in a more specific in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-generic-search-not-return-results-that-are/m-p/609690#M212000</link>
    <description>&lt;P&gt;The last line of the first query limits the results to those with a single event for each orderId.&amp;nbsp; The second query does not have that &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command so orderIds with two or more events are shown.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 17:59:02 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-08-16T17:59:02Z</dc:date>
    <item>
      <title>Why does this generic search not return results that are returned in a more specific search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-generic-search-not-return-results-that-are/m-p/609683#M211999</link>
      <description>&lt;P&gt;I am developing a query that shows stats for events with the same orderId. There is a flaw though. When I run the query, I get results with only one event for an orderId, but when I take the orderId associated to only one event and put it in the original query, the result comes up with 2 events. Here are my queries and results:&lt;/P&gt;
&lt;PRE&gt;(index=k8s_main LogType="KafkaMessageProcessedSuccess" message="OrderLineDestinationChangeRequested" Environment="PROD") OR (index=k8s_main container_name=fraud-single-proxy-listener message="Sending a message to kafka topic=order-events-avro*OrderLineDestinationChangeRequested*")&lt;BR /&gt;| rename contextMap.orderId AS nefiOrderId OrderNumber AS omsOrderId&lt;BR /&gt;| rename contextMap.requestId AS nefiRequestId NordRequestId AS omsRequestId&lt;BR /&gt;| rename OrderLineId as omsOrderLineId&lt;BR /&gt;| rex field=message "\"orderLineId\": \"(?&amp;lt;nefiOrderLineId&amp;gt;.*?)\", " &lt;BR /&gt;| eval orderLineId = coalesce(nefiOrderLineId, omsOrderLineId)&lt;BR /&gt;| eval requestId = mvappend(nefiRequestId, omsRequestId) &lt;BR /&gt;| eval orderId = coalesce(nefiOrderId, omsOrderId)&lt;BR /&gt;| stats dc(_time) AS eventCount values(_time) AS eventTime values(orderLineId) AS orderLineId values(requestId) AS requestId BY orderId&lt;BR /&gt;| where eventCount = 1&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-08-16 at 10.58.45 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21050iA28488B52119C8A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-08-16 at 10.58.45 AM.png" alt="Screen Shot 2022-08-16 at 10.58.45 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Second query with the orderId in the initial search:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(index=k8s_main LogType="KafkaMessageProcessedSuccess" message="OrderLineDestinationChangeRequested" Environment="PROD" 381263531) OR (index=k8s_main container_name=fraud-single-proxy-listener message="Sending a message to kafka topic=order-events-avro*OrderLineDestinationChangeRequested*" 381263531)&lt;BR /&gt;| rename contextMap.orderId AS nefiOrderId OrderNumber AS omsOrderId&lt;BR /&gt;| rename contextMap.requestId AS nefiRequestId NordRequestId AS omsRequestId&lt;BR /&gt;| rename OrderLineId as omsOrderLineId&lt;BR /&gt;| rex field=message "\"orderLineId\": \"(?&amp;lt;nefiOrderLineId&amp;gt;.*?)\", " &lt;BR /&gt;| eval orderLineId = coalesce(nefiOrderLineId, omsOrderLineId)&lt;BR /&gt;| eval requestId = mvappend(nefiRequestId, omsRequestId) &lt;BR /&gt;| eval orderId = coalesce(nefiOrderId, omsOrderId)&lt;BR /&gt;| stats dc(_time) AS eventCount values(_time) AS eventTime values(orderLineId) AS orderLineId values(requestId) AS requestId BY orderId&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-08-16 at 11.00.07 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21051iA090EDBC225B030F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-08-16 at 11.00.07 AM.png" alt="Screen Shot 2022-08-16 at 11.00.07 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 18:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-generic-search-not-return-results-that-are/m-p/609683#M211999</guid>
      <dc:creator>scaparelli</dc:creator>
      <dc:date>2022-08-16T18:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Generic search does not return results that are returned in a more specific</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-generic-search-not-return-results-that-are/m-p/609690#M212000</link>
      <description>&lt;P&gt;The last line of the first query limits the results to those with a single event for each orderId.&amp;nbsp; The second query does not have that &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command so orderIds with two or more events are shown.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 17:59:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-generic-search-not-return-results-that-are/m-p/609690#M212000</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-08-16T17:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Generic search does not return results that are returned in a more specific</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-generic-search-not-return-results-that-are/m-p/609707#M212004</link>
      <description>&lt;P&gt;So if you look closely at the queries, I am taking the orderId from the first query that has the `where` statement, and using it the exact same query without the `where` parameters but in the base search.&lt;BR /&gt;&lt;BR /&gt;The second query comes up with 2 events for the orderId whereas the first comes up with 1 event for the orderId.&lt;BR /&gt;&lt;BR /&gt;My question is why?&lt;BR /&gt;&lt;BR /&gt;The logs for that orderId should not exist in the first query result&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 20:37:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-generic-search-not-return-results-that-are/m-p/609707#M212004</guid>
      <dc:creator>scaparelli</dc:creator>
      <dc:date>2022-08-16T20:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why does this generic search not return results that are returned in a more specific search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-generic-search-not-return-results-that-are/m-p/609788#M212049</link>
      <description>&lt;P&gt;Can you share the two events in code blocks &amp;lt;/&amp;gt; as I suspect it is something to do with the values extracted from them?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 07:48:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-generic-search-not-return-results-that-are/m-p/609788#M212049</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-17T07:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why does this generic search not return results that are returned in a more specific search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-generic-search-not-return-results-that-are/m-p/609837#M212067</link>
      <description>&lt;LI-CODE lang="markup"&gt;{"instant":{"epochSecond":1660665846,"nanoOfSecond":651267000},"thread":"inbound-listener-2","level":"INFO","loggerName":"com.nordstrom.fraud.fsp.listener.kafka.producer.KafkaProducer","message":"Sending a message to kafka topic=order-events-avro, messageKey=381263531, headers={AppId=APP02253, EventTime=1660665846651, Geolocation=47.613040, -122.334092, HEADER_GROUPING_ITEM_COUNT_KEY=1, HEADER_GROUPING_ITEM_INDEX=1, Id=OsOrsa3tjPJpBFwVQp6k56, Nord-Country-Code=US, Nord-Request-Id=16c555d0-a4d6-4059-9aec-9c015d9ce935, OmsModernStack=true, SchemaId=, SystemTime=1660665846651, Type=OrderLineChangeFraudApproved}, payload={\"orderNumber\": \"381263531\", \"orderLineId\": \"6c262fdae7bded09652eb32cf56546cb42d7e6cbc4f35625985a05b8ed2cda88\", \"serviceTicketId\": \"16c555d0-a4d6-4059-9aec-9c015d9ce935\", \"approvalDetails\": \"FRAUD_APPROVED\", \"eventTime\": 2022-08-16T16:04:06.651Z, \"source\": {\"channelCountry\": \"US\", \"channel\": \"OMNI\", \"platform\": \"CSR_PHONE\", \"feature\": \"OrderLineDestinationChangeRequested\", \"serviceName\": null, \"store\": null, \"register\": null}}","endOfBatch":false,"loggerFqcn":"org.apache.logging.slf4j.Log4jLogger","contextMap":{"aggregationGroupId":"16c555d0-a4d6-4059-9aec-9c015d9ce935","countryCode":"US","orderId":"381263531","requestId":"16c555d0-a4d6-4059-9aec-9c015d9ce935"},"threadId":334,"threadPriority":5}&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;NordClientId="APP03176"|LogCategory="Information"|LogType="KafkaMessageProcessedSuccess"|message="OrderLineDestinationChangeRequested"|ServiceTicketId="16c555d0-a4d6-4059-9aec-9c015d9ce935"|OrderNumber="381263531"|OrderLineId="6c262fdae7bded09652eb32cf56546cb42d7e6cbc4f35625985a05b8ed2cda88"|EventTime="08/16/2022 16:03:14"|KafkaGroupId="Care-CustomerOrderModificationRequestConsumerDynamo-prod"|NordRequestId="16c555d0-a4d6-4059-9aec-9c015d9ce935"|ServerTimestamp="2022-08-16T16:03:15.8035047Z"|NordCountryCode="US"|Environment="PROD"|AppName="customerordermodificationrequestconsumerdynamo-prod"|Pod="release-branch-customerordermodificationrequestconsumerdynamo-prod"|KafkaEventId="16c555d0-a4d6-4059-9aec-9c015d9ce935_1"|KafkaEventType="OrderLineDestinationChangeRequested"|KafkaEventSystemTime="1660665795625"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Aug 2022 16:15:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-generic-search-not-return-results-that-are/m-p/609837#M212067</guid>
      <dc:creator>scaparelli</dc:creator>
      <dc:date>2022-08-17T16:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why does this generic search not return results that are returned in a more specific search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-generic-search-not-return-results-that-are/m-p/609949#M212102</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247934"&gt;@scaparelli&lt;/a&gt;&amp;nbsp;wrote:&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"instant":{"epochSecond":1660665846,"nanoOfSecond":651267000},"thread":"inbound-listener-2","level":"INFO","loggerName":"com.nordstrom.fraud.fsp.listener.kafka.producer.KafkaProducer","message":"Sending a message to kafka topic=order-events-avro, messageKey=381263531, headers={AppId=APP02253, EventTime=1660665846651, Geolocation=47.613040, -122.334092, HEADER_GROUPING_ITEM_COUNT_KEY=1, HEADER_GROUPING_ITEM_INDEX=1, Id=OsOrsa3tjPJpBFwVQp6k56, Nord-Country-Code=US, Nord-Request-Id=16c555d0-a4d6-4059-9aec-9c015d9ce935, OmsModernStack=true, SchemaId=, SystemTime=1660665846651, Type=OrderLineChangeFraudApproved}, payload={\"orderNumber\": \"381263531\", \"orderLineId\": \"6c262fdae7bded09652eb32cf56546cb42d7e6cbc4f35625985a05b8ed2cda88\", \"serviceTicketId\": \"16c555d0-a4d6-4059-9aec-9c015d9ce935\", \"approvalDetails\": \"FRAUD_APPROVED\", \"eventTime\": 2022-08-16T16:04:06.651Z, \"source\": {\"channelCountry\": \"US\", \"channel\": \"OMNI\", \"platform\": \"CSR_PHONE\", \"feature\": \"OrderLineDestinationChangeRequested\", \"serviceName\": null, \"store\": null, \"register\": null}}","endOfBatch":false,"loggerFqcn":"org.apache.logging.slf4j.Log4jLogger","contextMap":{"aggregationGroupId":"16c555d0-a4d6-4059-9aec-9c015d9ce935","countryCode":"US","orderId":"381263531","requestId":"16c555d0-a4d6-4059-9aec-9c015d9ce935"},"threadId":334,"threadPriority":5}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;This event should be impossible to be picked in either search. &amp;nbsp;It doesn't match&amp;nbsp;&lt;FONT face="andale mono,times"&gt;LogType="KafkaMessageProcessedSuccess"&lt;/FONT&gt; because there is no LogType field, it also doesn't match&amp;nbsp;&lt;FONT face="andale mono,times"&gt;container_name=fraud-single-proxy-listener&lt;/FONT&gt; because there is no container_name field. &amp;nbsp;These two terms exist in both searches.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 09:45:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-generic-search-not-return-results-that-are/m-p/609949#M212102</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-08-18T09:45:24Z</dc:date>
    </item>
  </channel>
</rss>

