<?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: Finding a field value that is available in sourcetype2 but not available in sourcetype1 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302550#M161098</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;what about:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=sourcetype1 OR sourcetype=sourcetype2 | stats count by Email_Address,sourcetype | xyseries Email_Address sourcetype count | fillnull sourcetype1 sourcetype
2 | search sourcetype1=0 sourcetype2&amp;gt;0 | fields Email_Address
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 18 May 2017 13:43:21 GMT</pubDate>
    <dc:creator>knielsen</dc:creator>
    <dc:date>2017-05-18T13:43:21Z</dc:date>
    <item>
      <title>Finding a field value that is available in sourcetype2 but not available in sourcetype1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302546#M161094</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
I would like to find a field value of a field (Email_Address) that is available in only sourcetype2 and not available in sourcetype1&lt;BR /&gt;
Email_Address field is available in both sourcetypes.&lt;/P&gt;

&lt;P&gt;My sample query is like this:&lt;/P&gt;

&lt;P&gt;sourcetype=sourcetype2 | dedup Email_Address | stats values(Email_Address) AS count_sourcetype1 | join type=Email_Address [search sourcetype=sourcetype1 | dedup Email_Address | stats values(Email_Address)  AS count_sourcetype2 ]&lt;/P&gt;

&lt;P&gt;The above query is not returning any results.&lt;BR /&gt;
Can you please help me with the correct query.&lt;BR /&gt;
Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:08:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302546#M161094</guid>
      <dc:creator>santosh_hb</dc:creator>
      <dc:date>2020-09-29T14:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a field value that is available in sourcetype2 but not available in sourcetype1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302547#M161095</link>
      <description>&lt;P&gt;Can you try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="sourcetype2" OR sourcetype="sourcetype1"
| stats dc(sourcetype) as Count values(sourcetype) as sourcetype by Email_Address
| search Count=1 AND sourcetype="sourcetype2"
| table Email_Address
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2017 13:38:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302547#M161095</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-05-18T13:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a field value that is available in sourcetype2 but not available in sourcetype1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302548#M161096</link>
      <description>&lt;P&gt;This question is confusing.  First it says the Email_Address field is only available in sourcetype2, then it says the field is available in both sourcetypes.  The sample query implies the field is available in both sourcetypes.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 13:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302548#M161096</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-05-18T13:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a field value that is available in sourcetype2 but not available in sourcetype1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302549#M161097</link>
      <description>&lt;P&gt;It will be much better to do this in one query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(sourcetype=sourcetype1 OR sourcetype=sourcetype2) Email_Address=*
| fields Email_Address sourcetype 
| chart count over Email_Address by sourcetype
| where sourcetype2 &amp;gt; 0 AND (sourcetype1 &amp;lt; 1 OR isNull(sourcetype1))
| fields Email_Address
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2017 13:41:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302549#M161097</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-05-18T13:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a field value that is available in sourcetype2 but not available in sourcetype1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302550#M161098</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;what about:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=sourcetype1 OR sourcetype=sourcetype2 | stats count by Email_Address,sourcetype | xyseries Email_Address sourcetype count | fillnull sourcetype1 sourcetype
2 | search sourcetype1=0 sourcetype2&amp;gt;0 | fields Email_Address
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2017 13:43:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302550#M161098</guid>
      <dc:creator>knielsen</dc:creator>
      <dc:date>2017-05-18T13:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a field value that is available in sourcetype2 but not available in sourcetype1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302551#M161099</link>
      <description>&lt;P&gt;Not "confusing" it is "confused."  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 14:29:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302551#M161099</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-05-18T14:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a field value that is available in sourcetype2 but not available in sourcetype1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302552#M161100</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="sourcetype1" OR sourcetype="sourcetype2"
| stats dc(sourcetype) AS sourcetypes values(sourcetype) AS sourcetype BY Email_Address
| search sourcetype="sourcetype2" AND sourcetypes=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2017 14:53:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302552#M161100</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-18T14:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a field value that is available in sourcetype2 but not available in sourcetype1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302553#M161101</link>
      <description>&lt;P&gt;To give more clarity on my query, please find the below example:&lt;/P&gt;

&lt;P&gt;Email_Address field is extracted and is available for both sourcetypes (sourcetype1 and sourcetype2).&lt;/P&gt;

&lt;P&gt;Ex:&lt;BR /&gt;
Value of Email_Address that is available in only  sourcetype1 is: &lt;A href="mailto:sample1@sample.com" target="_blank"&gt;sample1@sample.com&lt;/A&gt;&lt;BR /&gt;
Value of Email_Address that is available in only  sourcetype2 is: &lt;A href="mailto:sample2@sample.com" target="_blank"&gt;sample2@sample.com&lt;/A&gt;&lt;BR /&gt;
Value of Email_Address that is available in both sourcetype1 and sourcetype2 is:  &lt;A href="mailto:test@testing.com" target="_blank"&gt;test@testing.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Now, my requirement is:&lt;BR /&gt;
I should be able to fetch and display only &lt;A href="mailto:sample2@sample.com" target="_blank"&gt;sample2@sample.com&lt;/A&gt; as it is present in only sourcetype2. &lt;BR /&gt;
How can I do this?&lt;/P&gt;

&lt;P&gt;I hope this will give some clarity.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302553#M161101</guid>
      <dc:creator>santosh_hb</dc:creator>
      <dc:date>2020-09-29T14:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a field value that is available in sourcetype2 but not available in sourcetype1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302554#M161102</link>
      <description>&lt;P&gt;Or, if you need to see the original events, then change my &lt;CODE&gt;stats&lt;/CODE&gt; to &lt;CODE&gt;eventstats&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 23:29:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302554#M161102</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-18T23:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a field value that is available in sourcetype2 but not available in sourcetype1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302555#M161103</link>
      <description>&lt;P&gt;It works fine. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 06:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-a-field-value-that-is-available-in-sourcetype2-but-not/m-p/302555#M161103</guid>
      <dc:creator>santosh_hb</dc:creator>
      <dc:date>2017-05-24T06:43:06Z</dc:date>
    </item>
  </channel>
</rss>

