<?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 How do I show only field values that are missing from one of the 2 splunk searches? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-only-field-values-that-are-missing-from-one-of-the/m-p/633089#M219919</link>
    <description>&lt;P&gt;I have 2 events&lt;/P&gt;&lt;P&gt;Event1: Document uploaded &amp;lt;documentId&amp;gt;&lt;/P&gt;&lt;P&gt;Event2: Document viewed &amp;lt;documentId&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have generated a common "docId" field for both events. I want to create a table that lists document Ids that have been uploaded but not viewed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Ex: If I have the following events,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Document uploaded: 34423434
Document uploaded: 56676886
Document viewed: 56676886&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I want a table that shows the below output&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;DocumentIdsNotViewed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;34423434&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Mar 2023 02:49:26 GMT</pubDate>
    <dc:creator>shruthibm</dc:creator>
    <dc:date>2023-03-03T02:49:26Z</dc:date>
    <item>
      <title>How do I show only field values that are missing from one of the 2 splunk searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-only-field-values-that-are-missing-from-one-of-the/m-p/633089#M219919</link>
      <description>&lt;P&gt;I have 2 events&lt;/P&gt;&lt;P&gt;Event1: Document uploaded &amp;lt;documentId&amp;gt;&lt;/P&gt;&lt;P&gt;Event2: Document viewed &amp;lt;documentId&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have generated a common "docId" field for both events. I want to create a table that lists document Ids that have been uploaded but not viewed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Ex: If I have the following events,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Document uploaded: 34423434
Document uploaded: 56676886
Document viewed: 56676886&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I want a table that shows the below output&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;DocumentIdsNotViewed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;34423434&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 02:49:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-only-field-values-that-are-missing-from-one-of-the/m-p/633089#M219919</guid>
      <dc:creator>shruthibm</dc:creator>
      <dc:date>2023-03-03T02:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I show only field values that are missing from one of the 2 splunk searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-only-field-values-that-are-missing-from-one-of-the/m-p/633095#M219920</link>
      <description>&lt;P&gt;sure I understand this request, lets give this a try:&lt;/P&gt;&lt;PRE&gt;... | stats count(&lt;SPAN&gt;docId&lt;/SPAN&gt;) as &lt;SPAN&gt;docIdCount&lt;/SPAN&gt; | where &lt;SPAN&gt;docIdCount&lt;/SPAN&gt; = 1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit... oops, after few hrs, i understood that the logic is missing its idea. some trial and error on SPL creation is needed.&lt;/P&gt;&lt;P&gt;lets try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | stats count(docId) as docIdCount by docId | where docIdCount = 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 04:23:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-only-field-values-that-are-missing-from-one-of-the/m-p/633095#M219920</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2023-03-04T04:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I show only field values that are missing from one of the 2 splunk searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-only-field-values-that-are-missing-from-one-of-the/m-p/633112#M219925</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254442"&gt;@shruthibm&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you should try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your-search&amp;gt; ("Document uploaded" OR "Document viewed"
| eval type=if(searchmatch("Document uploaded"),"Document uploaded","Document viewed")
| stats dc(type) AS type_count values(type) AS type BY documentId
| where type_count=1 AND type="Document uploaded"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 07:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-only-field-values-that-are-missing-from-one-of-the/m-p/633112#M219925</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-03-03T07:55:29Z</dc:date>
    </item>
  </channel>
</rss>

