<?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 Make a Table for JSON Data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Make-a-Table-for-JSON-Data/m-p/636096#M220948</link>
    <description>&lt;P&gt;I have the following JSON structure in my events. I am trying to figure out an SPL Query to format the JSON in a table for a dashboard. The names of the WLCs could change, so WLC-1 will not always be the first entry or have the same name. Is it possible to make a dynamic table like the one below? Thank you.&lt;/P&gt;
&lt;TABLE border="1" width="64.00000123381238%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="20%"&gt;WLC-1&lt;/TD&gt;
&lt;TD width="20%"&gt;SSID1: 2&lt;/TD&gt;
&lt;TD width="20%"&gt;SSID2: 4&lt;/TD&gt;
&lt;TD width="20%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%"&gt;WLC-2&lt;/TD&gt;
&lt;TD width="20%"&gt;SSID1: 16&lt;/TD&gt;
&lt;TD width="20%"&gt;SSID3: 8&lt;/TD&gt;
&lt;TD width="20%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%"&gt;WLC-3&lt;/TD&gt;
&lt;TD width="20%"&gt;SSID2: 6&lt;/TD&gt;
&lt;TD width="20%"&gt;SSID3: 6&lt;/TD&gt;
&lt;TD width="20%"&gt;SSID4: 9&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{ &lt;BR /&gt;   WLC-1: { &lt;BR /&gt;     SSID1: 2&lt;BR /&gt;     SSID2: 4&lt;BR /&gt;   }&lt;BR /&gt;   WLC-2: {&lt;BR /&gt;     SSID1: 16&lt;BR /&gt;     SSID3: 8&lt;BR /&gt;   }&lt;BR /&gt;   WLC-3: {&lt;BR /&gt;     SSID2: 6&lt;BR /&gt;     SSID3: 6&lt;BR /&gt;     SSID4: 9&lt;BR /&gt;   }&lt;BR /&gt;} &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 14:18:12 GMT</pubDate>
    <dc:creator>apignata</dc:creator>
    <dc:date>2023-03-27T14:18:12Z</dc:date>
    <item>
      <title>How to Make a Table for JSON Data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Make-a-Table-for-JSON-Data/m-p/636096#M220948</link>
      <description>&lt;P&gt;I have the following JSON structure in my events. I am trying to figure out an SPL Query to format the JSON in a table for a dashboard. The names of the WLCs could change, so WLC-1 will not always be the first entry or have the same name. Is it possible to make a dynamic table like the one below? Thank you.&lt;/P&gt;
&lt;TABLE border="1" width="64.00000123381238%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="20%"&gt;WLC-1&lt;/TD&gt;
&lt;TD width="20%"&gt;SSID1: 2&lt;/TD&gt;
&lt;TD width="20%"&gt;SSID2: 4&lt;/TD&gt;
&lt;TD width="20%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%"&gt;WLC-2&lt;/TD&gt;
&lt;TD width="20%"&gt;SSID1: 16&lt;/TD&gt;
&lt;TD width="20%"&gt;SSID3: 8&lt;/TD&gt;
&lt;TD width="20%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="20%"&gt;WLC-3&lt;/TD&gt;
&lt;TD width="20%"&gt;SSID2: 6&lt;/TD&gt;
&lt;TD width="20%"&gt;SSID3: 6&lt;/TD&gt;
&lt;TD width="20%"&gt;SSID4: 9&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{ &lt;BR /&gt;   WLC-1: { &lt;BR /&gt;     SSID1: 2&lt;BR /&gt;     SSID2: 4&lt;BR /&gt;   }&lt;BR /&gt;   WLC-2: {&lt;BR /&gt;     SSID1: 16&lt;BR /&gt;     SSID3: 8&lt;BR /&gt;   }&lt;BR /&gt;   WLC-3: {&lt;BR /&gt;     SSID2: 6&lt;BR /&gt;     SSID3: 6&lt;BR /&gt;     SSID4: 9&lt;BR /&gt;   }&lt;BR /&gt;} &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 14:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Make-a-Table-for-JSON-Data/m-p/636096#M220948</guid>
      <dc:creator>apignata</dc:creator>
      <dc:date>2023-03-27T14:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Make a Table for JSON Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Make-a-Table-for-JSON-Data/m-p/636099#M220949</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240033"&gt;@apignata&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could use the INDEXED_EXTRACTIONS=json option in the props.conf (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/admin/Propsconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/admin/Propsconf&lt;/A&gt;), in this way all the fields are automatically extracted.&lt;/P&gt;&lt;P&gt;In addition you could also use the spath command (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/SearchReference/Spath" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/SearchReference/Spath&lt;/A&gt;) that makes the same thing.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 07:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Make-a-Table-for-JSON-Data/m-p/636099#M220949</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-03-27T07:12:46Z</dc:date>
    </item>
  </channel>
</rss>

