<?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: Searching for 2 different events on the same order number in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-2-different-events-on-the-same-order-number/m-p/581891#M202698</link>
    <description>&lt;P&gt;The query is supposed to be counting distinct test names and so should not be counting the same name twice.&amp;nbsp; Can you share the exact query you're using and the results?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jan 2022 13:47:43 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-01-20T13:47:43Z</dc:date>
    <item>
      <title>Searching for 2 different events on the same order number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-2-different-events-on-the-same-order-number/m-p/581735#M202657</link>
      <description>&lt;P&gt;Hello Splunk Community,&lt;/P&gt;&lt;P&gt;I'm fairly new to splunk and am using it to search and alert me for testing failures in my manufacturing environment.&lt;/P&gt;&lt;P&gt;I have a search in which I would like to match up two different events and to get a search hit ONLY when both failures occured on the same order number. I have 3 primary fields I'll be using. OrderNum, adviseText, and testName. I want my search result to return the order number when all criteria are met. To me, logically this looks like&lt;/P&gt;&lt;P&gt;((adviseText = "Diagnostic Error" AND testName = "Test 1") AND (adviseText = "Diagnostic error" AND testName = "Test 2")).&lt;/P&gt;&lt;P&gt;I've used this to test and got no results and I understand that it's because no single event matches both criteria. Many orderNums fail one or the other, but I need search to single out orderNums that fail both. Can anyone help me with this? Much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 20:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-for-2-different-events-on-the-same-order-number/m-p/581735#M202657</guid>
      <dc:creator>Flaxamax</dc:creator>
      <dc:date>2022-01-19T20:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for 2 different events on the same order number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-2-different-events-on-the-same-order-number/m-p/581738#M202659</link>
      <description>&lt;P&gt;We should be able to count the number of failed tests for each order number and display only those where the count is 2.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo OrderNum=* adviseText="Diagnostic Error" testName=*
| stats dc(testName) as testCount by OrderNum
| where testCount=2
| table OrderNum&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 20:50:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-for-2-different-events-on-the-same-order-number/m-p/581738#M202659</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-01-19T20:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for 2 different events on the same order number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-2-different-events-on-the-same-order-number/m-p/581745#M202662</link>
      <description>&lt;P&gt;This is going the right direction but isn't doing what I need. I needed to be more specific, I may get 1-5 errors from one test and this is triggering if it failed one multiple times. I need it to trigger if it failed both tests specifically, not just one multiple times.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 21:10:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-for-2-different-events-on-the-same-order-number/m-p/581745#M202662</guid>
      <dc:creator>Flaxamax</dc:creator>
      <dc:date>2022-01-19T21:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for 2 different events on the same order number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-2-different-events-on-the-same-order-number/m-p/581891#M202698</link>
      <description>&lt;P&gt;The query is supposed to be counting distinct test names and so should not be counting the same name twice.&amp;nbsp; Can you share the exact query you're using and the results?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 13:47:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-for-2-different-events-on-the-same-order-number/m-p/581891#M202698</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-01-20T13:47:43Z</dc:date>
    </item>
  </channel>
</rss>

