<?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: JSON formatting in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/JSON-formatting/m-p/542489#M153672</link>
    <description>&lt;P&gt;In what way did spath not help? Did you specify the paths you wanted or did you just get everything in the JSON? Can you share what you have tried and say why it didn't give you what you wanted?&lt;/P&gt;</description>
    <pubDate>Fri, 05 Mar 2021 08:10:39 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-03-05T08:10:39Z</dc:date>
    <item>
      <title>JSON formatting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JSON-formatting/m-p/542418#M153653</link>
      <description>&lt;P&gt;I have the below JSON feed that I can see from a straight search. I'm trying to get some stats especially for pools-availabilityState by name and pools-status.statusReason by name. Tried spath but it didnt not help. How I do this. TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{ [-]&lt;BR /&gt;clientSslProfiles: { [+]&lt;BR /&gt;}&lt;BR /&gt;deviceGroups: { [+]&lt;BR /&gt;}&lt;BR /&gt;httpProfiles: { [+]&lt;BR /&gt;}&lt;BR /&gt;iRules: { [+]&lt;BR /&gt;}&lt;BR /&gt;ltmPolicies: { [+]&lt;BR /&gt;}&lt;BR /&gt;networkTunnels: { [+]&lt;BR /&gt;}&lt;BR /&gt;pools: { [-]&lt;BR /&gt;/Common/Ex-pool: { [-]&lt;BR /&gt;activeMemberCnt: 0&lt;BR /&gt;availabilityState: offline&lt;BR /&gt;curPriogrp: 0&lt;BR /&gt;enabledState: enabled&lt;BR /&gt;highestPriogrp: 0&lt;BR /&gt;lowestPriogrp: 0&lt;BR /&gt;members: { [+]&lt;BR /&gt;}&lt;BR /&gt;mr.msgIn: 0&lt;BR /&gt;mr.msgOut: 0&lt;BR /&gt;mr.reqIn: 0&lt;BR /&gt;mr.reqOut: 0&lt;BR /&gt;mr.respIn: 0&lt;BR /&gt;mr.respOut: 0&lt;BR /&gt;name: /Common/Ex-pool&lt;BR /&gt;serverside.bitsIn: 0&lt;BR /&gt;serverside.bitsOut: 0&lt;BR /&gt;serverside.curConns: 0&lt;BR /&gt;serverside.maxConns: 0&lt;BR /&gt;serverside.pktsIn: 0&lt;BR /&gt;serverside.pktsOut: 0&lt;BR /&gt;serverside.totConns: 0&lt;BR /&gt;status.statusReason: The children pool member(s) are down&lt;BR /&gt;tenant: Common&lt;BR /&gt;totRequests: 0&lt;BR /&gt;}&lt;BR /&gt;/Common/F2F3: { [-]&lt;BR /&gt;activeMemberCnt: 1&lt;BR /&gt;availabilityState: available&lt;BR /&gt;curPriogrp: 0&lt;BR /&gt;enabledState: enabled&lt;BR /&gt;highestPriogrp: 0&lt;BR /&gt;lowestPriogrp: 0&lt;BR /&gt;members: { [+]&lt;BR /&gt;}&lt;BR /&gt;mr.msgIn: 0&lt;BR /&gt;mr.msgOut: 0&lt;BR /&gt;mr.reqIn: 0&lt;BR /&gt;mr.reqOut: 0&lt;BR /&gt;mr.respIn: 0&lt;BR /&gt;mr.respOut: 0&lt;BR /&gt;name: /Common/F2F3&lt;BR /&gt;serverside.bitsIn: 0&lt;BR /&gt;serverside.bitsOut: 0&lt;BR /&gt;serverside.curConns: 0&lt;BR /&gt;serverside.maxConns: 0&lt;BR /&gt;serverside.pktsIn: 0&lt;BR /&gt;serverside.pktsOut: 0&lt;BR /&gt;serverside.totConns: 0&lt;BR /&gt;status.statusReason: The pool is available&lt;BR /&gt;tenant: Common&lt;BR /&gt;totRequests: 0&lt;BR /&gt;}&lt;BR /&gt;/Common/2F2F: { [-]&lt;BR /&gt;activeMemberCnt: 1&lt;BR /&gt;availabilityState: available&lt;BR /&gt;curPriogrp: 0&lt;BR /&gt;description:&lt;BR /&gt;enabledState: enabled&lt;BR /&gt;highestPriogrp: 0&lt;BR /&gt;lowestPriogrp: 0&lt;BR /&gt;members: { [+]&lt;BR /&gt;}&lt;BR /&gt;mr.msgIn: 0&lt;BR /&gt;mr.msgOut: 0&lt;BR /&gt;mr.reqIn: 0&lt;BR /&gt;mr.reqOut: 0&lt;BR /&gt;mr.respIn: 0&lt;BR /&gt;mr.respOut: 0&lt;BR /&gt;name: /Common/2F2F&lt;BR /&gt;serverside.bitsIn: 0&lt;BR /&gt;serverside.bitsOut: 0&lt;BR /&gt;serverside.curConns: 0&lt;BR /&gt;serverside.maxConns: 0&lt;BR /&gt;serverside.pktsIn: 0&lt;BR /&gt;serverside.pktsOut: 0&lt;BR /&gt;serverside.totConns: 0&lt;BR /&gt;status.statusReason: The pool is available&lt;BR /&gt;tenant: Common&lt;BR /&gt;totRequests: 0&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;serverSslProfiles: { [+]&lt;BR /&gt;}&lt;BR /&gt;sslCerts: { [+]&lt;BR /&gt;}&lt;BR /&gt;system: { [+]&lt;BR /&gt;}&lt;BR /&gt;telemetryEventCategory: systemInfo&lt;BR /&gt;telemetryServiceInfo: { [+]&lt;BR /&gt;}&lt;BR /&gt;virtualServers: { [+]&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 21:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JSON-formatting/m-p/542418#M153653</guid>
      <dc:creator>ThyAbode</dc:creator>
      <dc:date>2021-03-04T21:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: JSON formatting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JSON-formatting/m-p/542489#M153672</link>
      <description>&lt;P&gt;In what way did spath not help? Did you specify the paths you wanted or did you just get everything in the JSON? Can you share what you have tried and say why it didn't give you what you wanted?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 08:10:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JSON-formatting/m-p/542489#M153672</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-05T08:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: JSON formatting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JSON-formatting/m-p/542530#M153684</link>
      <description>&lt;P&gt;The spath is giving me everything and I do not know how we can specify certain key-value pair for a table view for stats.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 10:40:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JSON-formatting/m-p/542530#M153684</guid>
      <dc:creator>ThyAbode</dc:creator>
      <dc:date>2021-03-05T10:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: JSON formatting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/JSON-formatting/m-p/542540#M153689</link>
      <description>&lt;LI-CODE lang="markup"&gt;| spath pools.enabledState output=enabledState&lt;/LI-CODE&gt;&lt;P&gt;This should work for enabledState. The issue might be if your key has a dot in it. Although you could extract pools first, then run spath on that&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath pools output=pools
| spath input=pools&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Mar 2021 11:31:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/JSON-formatting/m-p/542540#M153689</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-05T11:31:40Z</dc:date>
    </item>
  </channel>
</rss>

