<?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 get the count for this JSON value pair in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-count-for-this-JSON-value-pair/m-p/493834#M84355</link>
    <description>&lt;P&gt;I want to get the count for the key value pair and make it in a table. Could anyone please help me on this.&lt;/P&gt;

&lt;P&gt;My sample data looks like below:&lt;BR /&gt;
I want to take the count of Name alone. &lt;/P&gt;

&lt;P&gt;School {Name : "abc", Number: "123",Age:"" }&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2019 08:42:32 GMT</pubDate>
    <dc:creator>muthu3006</dc:creator>
    <dc:date>2019-10-08T08:42:32Z</dc:date>
    <item>
      <title>How to get the count for this JSON value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-count-for-this-JSON-value-pair/m-p/493834#M84355</link>
      <description>&lt;P&gt;I want to get the count for the key value pair and make it in a table. Could anyone please help me on this.&lt;/P&gt;

&lt;P&gt;My sample data looks like below:&lt;BR /&gt;
I want to take the count of Name alone. &lt;/P&gt;

&lt;P&gt;School {Name : "abc", Number: "123",Age:"" }&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 08:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-count-for-this-JSON-value-pair/m-p/493834#M84355</guid>
      <dc:creator>muthu3006</dc:creator>
      <dc:date>2019-10-08T08:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the count for this JSON value pair</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-count-for-this-JSON-value-pair/m-p/493835#M84356</link>
      <description>&lt;P&gt;Hello @muthu3006,&lt;BR /&gt;
I am not quite sure I understood what you seek, but here is a sample of request that will let you elaborate on your particular case.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults|eval _raw="{\"School\":[{\"Name\" : \"abc\", \"Number\": 123,\"Age\":\"\"},{\"Name\" : \"def\", \"Number\": 456,\"Age\":\"\"},{\"Name\" : \"ghi\", \"Number\": 789,\"Age\":\"\"}]}"|spath |rename School{}.Name as names|eval nb=mvcount(names)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Oct 2019 14:59:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-the-count-for-this-JSON-value-pair/m-p/493835#M84356</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2019-10-08T14:59:14Z</dc:date>
    </item>
  </channel>
</rss>

