<?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: How to only see duplicates? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-only-see-duplicates/m-p/392251#M70064</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nitro_apps location=* 
 | rex "^[^,\n]*,(?P&amp;lt;OG&amp;gt;[^,]+)[^,\n]*,(?P&amp;lt;MacAddress&amp;gt;[^,]+)(?:[^ \n]* ){4}(?P&amp;lt;Model&amp;gt;[^,]+),(?P&amp;lt;OS&amp;gt;[^,]+),\w+,(?P&amp;lt;Profile&amp;gt;[^,]+),\d+,(?P&amp;lt;Latest_Version&amp;gt;\d+),(?P&amp;lt;Installed_Date&amp;gt;[^,]+)[^,\n]*,(?P&amp;lt;Installed&amp;gt;\w+)" 
| where ('Profile'="11.0.0.0" OR 'Profile'="12.0.0.0") AND Installed="Yes"
| stats values(Profile) as Profiles by MacAddress location
| where mvcount(Profiles)=2 
| stats list(MacAddress) as duplicates, dc(MacAddress) as DupCount by location
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 25 Sep 2018 19:54:47 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-09-25T19:54:47Z</dc:date>
    <item>
      <title>How to only see duplicates?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-only-see-duplicates/m-p/392247#M70060</link>
      <description>&lt;P&gt;I have two profile settings. They both shouldn't be on at the same time. I am trying to see which devices have both of these profiles, to generate a list.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nitro_apps
| rex "^[^,\n]*,(?P&amp;lt;OG&amp;gt;[^,]+)[^,\n]*,(?P&amp;lt;MacAddress&amp;gt;[^,]+)(?:[^ \n]* ){4}(?P&amp;lt;Model&amp;gt;[^,]+),(?P&amp;lt;OS&amp;gt;[^,]+),\w+,(?P&amp;lt;Profile&amp;gt;[^,]+),\d+,(?P&amp;lt;Latest_Version&amp;gt;\d+),(?P&amp;lt;Installed_Date&amp;gt;[^,]+)[^,\n]*,(?P&amp;lt;Installed&amp;gt;\w+)" 
| search location=* 
| eval Old_Status=if('Profile'="11.0.0.0",if(Installed="Yes","true","FAIL"),"") 
| eval New_Status=if('Profile'="12.0.0.0",if(Installed="Yes","true","FAIL"),"") 
| eval LD_Status=if('Old_Status'="true", if(New_Status="true","PASS","FAIL"),"")
| where 'LD_Status'=="PASS"
| stats list(MacAddress) as duplicates, dc(MacAddress) as DupCount by location
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any idea why I am not able to see the devices with both profile settings applied?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 19:09:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-only-see-duplicates/m-p/392247#M70060</guid>
      <dc:creator>JoshuaJohn</dc:creator>
      <dc:date>2018-09-25T19:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to only see duplicates?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-only-see-duplicates/m-p/392248#M70061</link>
      <description>&lt;P&gt;Hi @JoshuaJohn&lt;/P&gt;

&lt;P&gt;Change where condition like this and try once.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where 'LD_Status'="PASS"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Sep 2018 19:17:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-only-see-duplicates/m-p/392248#M70061</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2018-09-25T19:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to only see duplicates?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-only-see-duplicates/m-p/392249#M70062</link>
      <description>&lt;P&gt;Hi, unfortunately not.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 19:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-only-see-duplicates/m-p/392249#M70062</guid>
      <dc:creator>JoshuaJohn</dc:creator>
      <dc:date>2018-09-25T19:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to only see duplicates?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-only-see-duplicates/m-p/392250#M70063</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
An event can have one Profile value in an event or  can there be  2 profile fields in one single event?&lt;BR /&gt;
If an event has Profile field once in an event then Old Status and New status cannot be true at the same time for an event and then LD_Status cannot be pass.&lt;BR /&gt;
In the same event are there 2 Profile values , how are you parsing both the profile values from the event?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 19:48:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-only-see-duplicates/m-p/392250#M70063</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-09-25T19:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to only see duplicates?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-only-see-duplicates/m-p/392251#M70064</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nitro_apps location=* 
 | rex "^[^,\n]*,(?P&amp;lt;OG&amp;gt;[^,]+)[^,\n]*,(?P&amp;lt;MacAddress&amp;gt;[^,]+)(?:[^ \n]* ){4}(?P&amp;lt;Model&amp;gt;[^,]+),(?P&amp;lt;OS&amp;gt;[^,]+),\w+,(?P&amp;lt;Profile&amp;gt;[^,]+),\d+,(?P&amp;lt;Latest_Version&amp;gt;\d+),(?P&amp;lt;Installed_Date&amp;gt;[^,]+)[^,\n]*,(?P&amp;lt;Installed&amp;gt;\w+)" 
| where ('Profile'="11.0.0.0" OR 'Profile'="12.0.0.0") AND Installed="Yes"
| stats values(Profile) as Profiles by MacAddress location
| where mvcount(Profiles)=2 
| stats list(MacAddress) as duplicates, dc(MacAddress) as DupCount by location
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Sep 2018 19:54:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-only-see-duplicates/m-p/392251#M70064</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-09-25T19:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to only see duplicates?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-only-see-duplicates/m-p/392252#M70065</link>
      <description>&lt;P&gt;This worked thank you.&lt;BR /&gt;
 Just curious what does this line do?&lt;BR /&gt;
    | where mvcount(Profiles)=2 &lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 21:15:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-only-see-duplicates/m-p/392252#M70065</guid>
      <dc:creator>JoshuaJohn</dc:creator>
      <dc:date>2018-09-25T21:15:29Z</dc:date>
    </item>
  </channel>
</rss>

