<?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 to dedup a field inside JSON arrays? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-dedup-a-field-inside-JSON-arrays/m-p/136647#M28148</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I'm working on some formulas to show percentages, right now trying to count % vendors affected by vulnerabilities. The data I am working with is a single JSON file, broken down into each Vulnerability ID. Problem is, if I try to dedup a Vendor that is affected by a particular vulnerability (which are listed as vendor, product, version, inside separate JSON sub-arrays within the vulnerability ID), it still counts the multiple versions, even though I:&lt;/P&gt;

&lt;P&gt;index = jsonvuln | dedup id Vendor | top 100 Vendor&lt;/P&gt;

&lt;P&gt;returns &amp;gt; 100% for Vendors like Apple and Adobe, which show up multiple times in each Vulnerability ID. So like 236.76% for Adobe.The dedup doesn't seem to work for the array within the event. Is there a command I can use to dedup these Vendors so Splunk only counts it once?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jul 2015 18:35:38 GMT</pubDate>
    <dc:creator>jravida</dc:creator>
    <dc:date>2015-07-23T18:35:38Z</dc:date>
    <item>
      <title>How to dedup a field inside JSON arrays?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-dedup-a-field-inside-JSON-arrays/m-p/136647#M28148</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I'm working on some formulas to show percentages, right now trying to count % vendors affected by vulnerabilities. The data I am working with is a single JSON file, broken down into each Vulnerability ID. Problem is, if I try to dedup a Vendor that is affected by a particular vulnerability (which are listed as vendor, product, version, inside separate JSON sub-arrays within the vulnerability ID), it still counts the multiple versions, even though I:&lt;/P&gt;

&lt;P&gt;index = jsonvuln | dedup id Vendor | top 100 Vendor&lt;/P&gt;

&lt;P&gt;returns &amp;gt; 100% for Vendors like Apple and Adobe, which show up multiple times in each Vulnerability ID. So like 236.76% for Adobe.The dedup doesn't seem to work for the array within the event. Is there a command I can use to dedup these Vendors so Splunk only counts it once?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:35:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-dedup-a-field-inside-JSON-arrays/m-p/136647#M28148</guid>
      <dc:creator>jravida</dc:creator>
      <dc:date>2015-07-23T18:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to dedup a field inside JSON arrays?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-dedup-a-field-inside-JSON-arrays/m-p/136648#M28149</link>
      <description>&lt;P&gt;Figured it out.&lt;/P&gt;

&lt;P&gt;I have to use mvexpand on the Vendor field. Then dedup Vendor and ID fields. So simple!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:42:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-dedup-a-field-inside-JSON-arrays/m-p/136648#M28149</guid>
      <dc:creator>jravida</dc:creator>
      <dc:date>2015-07-23T18:42:58Z</dc:date>
    </item>
  </channel>
</rss>

