<?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: convert a nested json into table in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646574#M52836</link>
    <description>&lt;P&gt;By mvexpand NAME, you have doubled your events, when you mvexpand x, you get 5 times the events. 2 * 5 = 10&lt;/P&gt;&lt;P&gt;If you have something that is working, why are you trying to break it?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2023 07:28:20 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-06-12T07:28:20Z</dc:date>
    <item>
      <title>How to convert a nested json into table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646243#M52777</link>
      <description>&lt;P&gt;Hi all, i have a json file like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
	"NUM": "#7",
	"TIME": "May 23, 2022, 09:24:40 PM",
	"STATUS": "SUCCESS",
	"DURATION": "2 hours, 13 minutes",
	"URL": "abc.com",
	"COMPONENTS": [{
			"NAME": "abc",
			"Tasks": [{
				"ITEM": [{
						"ITEM_ID": "2782508",
						"FILE": "file1"
					},
					{
						WORKITEM_ID": "2782508",
						"FILE": "file2"
					},
					{
						"ITEM_ID": "2782508",
						"FILE": "file1"
					},
					{
						"ITEM_ID": "2782508",
						"FILE": "file3"
					}
				]

			}]
		},
		{
			"NAME": "xyz",
			"tasks": [{
				"ITEM": [{
					"ITEM_ID": "2811478",
					"FILE": "file2"
				}]

			}]
		}
	]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how can i create a table with columns "num time status duration component_name itemid file". How can i make all the values come in different rows not together.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 12:45:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646243#M52777</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2023-06-08T12:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646245#M52778</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| foreach NUM TIME STATUS DURATION
    [| spath &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;]
| spath COMPONENTS{} output=components
| mvexpand components
| spath input=components NAME
| spath input=components Tasks{}.ITEM{} output=items
| mvexpand items
| spath input=items
| fields - components items _raw&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Jun 2023 06:04:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646245#M52778</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-08T06:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646254#M52781</link>
      <description>&lt;P&gt;&amp;nbsp;tried this and im not getting a table, only events are showing.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 06:25:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646254#M52781</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2023-06-08T06:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646255#M52782</link>
      <description>&lt;P&gt;Here is a runanywhere example demonstrating it work (with corrections to your supplied data)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| fields - _time
| eval _raw="{
	\"NUM\": \"#7\",
	\"TIME\": \"May 23, 2022, 09:24:40 PM\",
	\"STATUS\": \"SUCCESS\",
	\"DURATION\": \"2 hours, 13 minutes\",
	\"URL\": \"abc.com\",
	\"COMPONENTS\": [{
			\"NAME\": \"abc\",
			\"Tasks\": [{
				\"ITEM\": [{
						\"ITEM_ID\": \"2782508\",
						\"FILE\": \"file1\"
					},
					{
						\"WORKITEM_ID\": \"2782508\",
						\"FILE\": \"file2\"
					},
					{
						\"ITEM_ID\": \"2782508\",
						\"FILE\": \"file1\"
					},
					{
						\"ITEM_ID\": \"2782508\",
						\"FILE\": \"file3\"
					}
				]

			}]
		},
		{
			\"NAME\": \"xyz\",
			\"Tasks\": [{
				\"ITEM\": [{
					\"ITEM_ID\": \"2811478\",
					\"FILE\": \"file2\"
				}]

			}]
		}
	]
}"
| foreach NUM TIME STATUS DURATION
    [| spath &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;]
| spath COMPONENTS{} output=components
| mvexpand components
| spath input=components NAME
| spath input=components Tasks{}.ITEM{} output=items
| mvexpand items
| spath input=items
| fields - components items _raw&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Jun 2023 06:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646255#M52782</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-08T06:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646257#M52783</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/30057"&gt;@anooshac&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| spath
| table NUM TIME STATUS DURATION COMPONENTS{}.NAME COMPONENTS{}.NAME.TASK{}.ITEMID COMPONENTS.NAME.TASK{}.FILE&lt;/LI-CODE&gt;&lt;P&gt;I'm not sure about the last three field names, please check them.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 06:34:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646257#M52783</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-08T06:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646274#M52787</link>
      <description>&lt;P&gt;HI &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; ,This gives data in a single row. I want the data in different rows.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 08:36:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646274#M52787</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2023-06-08T08:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646276#M52788</link>
      <description>&lt;P&gt;If this solution doesn't give you the output you were expecting. please show us what the desired output should look like.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 08:35:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646276#M52788</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-08T08:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646277#M52789</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2023-06-08_14h01_46.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25747i23FAA813CAF3DC5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-06-08_14h01_46.png" alt="2023-06-08_14h01_46.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;there are individual file for all the "NUM". Will that be a problem for this?&lt;/P&gt;&lt;P&gt;I am getting as no results found. Only events are shown.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 08:35:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646277#M52789</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2023-06-08T08:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646278#M52790</link>
      <description>&lt;P&gt;What is the search that is giving you these results?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 08:39:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646278#M52790</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-08T08:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646280#M52791</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/30057"&gt;@anooshac&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you asked for a table, this is a table, could you give a sample of the report youìd like?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 08:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646280#M52791</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-08T08:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646282#M52792</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;,The same search which yo have provided gives me this results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the desired output should be , sorry for not mentioning clearly.&lt;/P&gt;&lt;TABLE width="558"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;NUM&lt;/TD&gt;&lt;TD width="64"&gt;STATUS&lt;/TD&gt;&lt;TD width="64"&gt;TIME&lt;/TD&gt;&lt;TD width="124"&gt;DURATION&lt;/TD&gt;&lt;TD width="64"&gt;NAME&lt;/TD&gt;&lt;TD width="64"&gt;ITEM_ID&lt;/TD&gt;&lt;TD width="114"&gt;FILE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;2782508&lt;/TD&gt;&lt;TD&gt;file1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;2782508&lt;/TD&gt;&lt;TD&gt;file2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;2782508&lt;/TD&gt;&lt;TD&gt;file1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;2782508&lt;/TD&gt;&lt;TD&gt;file3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;xyz&lt;/TD&gt;&lt;TD&gt;2811478&lt;/TD&gt;&lt;TD&gt;file2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 08 Jun 2023 09:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646282#M52792</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2023-06-08T09:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646284#M52794</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; , this is how the resutls should come. And also i have individual JSON file for each "NUM" .&lt;/P&gt;&lt;TABLE width="558"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;NUM&lt;/TD&gt;&lt;TD width="64"&gt;STATUS&lt;/TD&gt;&lt;TD width="64"&gt;TIME&lt;/TD&gt;&lt;TD width="124"&gt;DURATION&lt;/TD&gt;&lt;TD width="64"&gt;NAME&lt;/TD&gt;&lt;TD width="64"&gt;ITEM_ID&lt;/TD&gt;&lt;TD width="114"&gt;FILE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;2782508&lt;/TD&gt;&lt;TD&gt;file1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;2782508&lt;/TD&gt;&lt;TD&gt;file2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;2782508&lt;/TD&gt;&lt;TD&gt;file1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;2782508&lt;/TD&gt;&lt;TD&gt;file3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;xyz&lt;/TD&gt;&lt;TD&gt;2811478&lt;/TD&gt;&lt;TD&gt;file2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 08 Jun 2023 09:02:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646284#M52794</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2023-06-08T09:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646288#M52796</link>
      <description>&lt;P&gt;The solution relies on the _raw field holding the JSON string (as shown on the runanywhere example).&lt;/P&gt;&lt;P&gt;The most likely reason for the solution not giving the expected result is that&lt;SPAN&gt;&amp;nbsp;the _raw is not in JSON format, or, there is a mistake in the JSON (as there was in your pasted example).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please can you share your actual raw events (with sensitive data obfuscated of course) in a code block &amp;lt;/&amp;gt; as you did originally?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 09:16:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646288#M52796</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-08T09:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646301#M52800</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
	"NUM": "#7",
	"TIME": "May 23, 2022, 09:24:40 PM",
	"STATUS": "SUCCESS",
	"DURATION": "2 hours, 13 minutes",
	"URL": "abc.com",
	"COMPONENTS": [{
			"NAME": "abc",
			"Tasks": [{
				"ITEM": [{
						"ITEM_ID": "2782508",
						"FILE": "file1"
					},
					{
						"ITEM_ID ": "2782508 ",
						"FILE": "file2"
					},
					{
						"ITEM_ID": "2782508",
						"FILE": "file1"
					},
					{
						"ITEM_ID": "2782508",
						"FILE": "file3"
					}
				]

			}]
		},
		{
			"NAME": "xyz",
			"tasks": [{
				"ITEM": [{
					"ITEM_ID": "2811478",
					"FILE": "file2"
				}]

			}]
		}
	]
}&lt;/LI-CODE&gt;&lt;P&gt;this is the correct JSON file and the table required is,&lt;/P&gt;&lt;TABLE width="558"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;NUM&lt;/TD&gt;&lt;TD width="64"&gt;STATUS&lt;/TD&gt;&lt;TD width="64"&gt;TIME&lt;/TD&gt;&lt;TD width="124"&gt;DURATION&lt;/TD&gt;&lt;TD width="64"&gt;NAME&lt;/TD&gt;&lt;TD width="64"&gt;ITEM_ID&lt;/TD&gt;&lt;TD width="114"&gt;FILE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;2782508&lt;/TD&gt;&lt;TD&gt;file1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;2782508&lt;/TD&gt;&lt;TD&gt;file2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;2782508&lt;/TD&gt;&lt;TD&gt;file1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;abc&lt;/TD&gt;&lt;TD&gt;2782508&lt;/TD&gt;&lt;TD&gt;file3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#7&lt;/TD&gt;&lt;TD&gt;SUCCESS&lt;/TD&gt;&lt;TD&gt;May 23, 2022, 09:24:40 PM&lt;/TD&gt;&lt;TD&gt;2 hours, 13 minutes&lt;/TD&gt;&lt;TD&gt;xyz&lt;/TD&gt;&lt;TD&gt;2811478&lt;/TD&gt;&lt;TD&gt;file2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;and also i have individual JSON file for "NUM".&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 10:17:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646301#M52800</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2023-06-08T10:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646303#M52801</link>
      <description>&lt;P&gt;This is a runanywhere example based on your "correct" JSON&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| fields - _time
| eval _raw="{
	\"NUM\": \"#7\",
	\"TIME\": \"May 23, 2022, 09:24:40 PM\",
	\"STATUS\": \"SUCCESS\",
	\"DURATION\": \"2 hours, 13 minutes\",
	\"URL\": \"abc.com\",
	\"COMPONENTS\": [{
			\"NAME\": \"abc\",
			\"Tasks\": [{
				\"ITEM\": [{
						\"ITEM_ID\": \"2782508\",
						\"FILE\": \"file1\"
					},
					{
						\"ITEM_ID \": \"2782508 \",
						\"FILE\": \"file2\"
					},
					{
						\"ITEM_ID\": \"2782508\",
						\"FILE\": \"file1\"
					},
					{
						\"ITEM_ID\": \"2782508\",
						\"FILE\": \"file3\"
					}
				]

			}]
		},
		{
			\"NAME\": \"xyz\",
			\"tasks\": [{
				\"ITEM\": [{
					\"ITEM_ID\": \"2811478\",
					\"FILE\": \"file2\"
				}]

			}]
		}
	]
}"
| foreach NUM TIME STATUS DURATION
    [| spath &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;]
| spath COMPONENTS{} output=components
| mvexpand components
| spath input=components NAME
| spath input=components Tasks{}.ITEM{} output=items
| mvexpand items
| spath input=items
| fields - components items _raw&lt;/LI-CODE&gt;&lt;P&gt;However, I assume that there are a couple of typos, e.g. tasks should be Tasks and there shouldn't be a space after one of the ITEM_ID field names.&lt;/P&gt;&lt;P&gt;Having corrected these, gives this runanywhere example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| fields - _time
| eval _raw="{
	\"NUM\": \"#7\",
	\"TIME\": \"May 23, 2022, 09:24:40 PM\",
	\"STATUS\": \"SUCCESS\",
	\"DURATION\": \"2 hours, 13 minutes\",
	\"URL\": \"abc.com\",
	\"COMPONENTS\": [{
			\"NAME\": \"abc\",
			\"Tasks\": [{
				\"ITEM\": [{
						\"ITEM_ID\": \"2782508\",
						\"FILE\": \"file1\"
					},
					{
						\"ITEM_ID\": \"2782508 \",
						\"FILE\": \"file2\"
					},
					{
						\"ITEM_ID\": \"2782508\",
						\"FILE\": \"file1\"
					},
					{
						\"ITEM_ID\": \"2782508\",
						\"FILE\": \"file3\"
					}
				]

			}]
		},
		{
			\"NAME\": \"xyz\",
			\"Tasks\": [{
				\"ITEM\": [{
					\"ITEM_ID\": \"2811478\",
					\"FILE\": \"file2\"
				}]

			}]
		}
	]
}"
| foreach NUM TIME STATUS DURATION
    [| spath &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;]
| spath COMPONENTS{} output=components
| mvexpand components
| spath input=components NAME
| spath input=components Tasks{}.ITEM{} output=items
| mvexpand items
| spath input=items
| fields - components items _raw&lt;/LI-CODE&gt;&lt;P&gt;Which gives this result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITWhisperer_0-1686220316723.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25750iFB036DDE06C9B2F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITWhisperer_0-1686220316723.png" alt="ITWhisperer_0-1686220316723.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 10:32:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646303#M52801</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-08T10:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646573#M52835</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;, Thank you so much it is working..&lt;/P&gt;&lt;P&gt;I was also creating another table for the data,&lt;/P&gt;&lt;TABLE width="250px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="60.95px"&gt;NAME&lt;/TD&gt;&lt;TD width="78px"&gt;ITEM_ID&lt;/TD&gt;&lt;TD width="110.483px"&gt;FILE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="60.95px"&gt;abc&lt;/TD&gt;&lt;TD width="78px"&gt;2782508&lt;/TD&gt;&lt;TD width="110.483px"&gt;file1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="60.95px"&gt;abc&lt;/TD&gt;&lt;TD width="78px"&gt;2782508&lt;/TD&gt;&lt;TD width="110.483px"&gt;file2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="60.95px"&gt;abc&lt;/TD&gt;&lt;TD width="78px"&gt;2782508&lt;/TD&gt;&lt;TD width="110.483px"&gt;file1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="60.95px"&gt;abc&lt;/TD&gt;&lt;TD width="78px"&gt;2782508&lt;/TD&gt;&lt;TD width="110.483px"&gt;file3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="60.95px"&gt;xyz&lt;/TD&gt;&lt;TD width="78px"&gt;2811478&lt;/TD&gt;&lt;TD width="110.483px"&gt;file2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;using the below query,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;myindex...| mvexpand COMPONENTS{}.NAME
|mvexpand COMPONENTS{}.Tasks{}.ITEM{}
|rename COMPONENTS{}.NAMEas NAME COMPONENTS{}.Tasks{}.ITEM{}.ITEM_ID as ITEM_ID COMPONENTS{}.Tasks{}.ITEM{}.FILE as FILE | eval x=mvzip(ITEM_ID,FILE)|mvexpand x| eval ITEM_ID=mvindex(split(x,","),0)| eval FILE=mvindex(split(x,","),1)
| table NAME, ITEM_ID FILE&lt;/LI-CODE&gt;&lt;P&gt;instead of 5 entries i am getting 10 entries. I am not sure what is the mistake here. Can you please tell if there is any?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 07:06:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646573#M52835</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2023-06-12T07:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646574#M52836</link>
      <description>&lt;P&gt;By mvexpand NAME, you have doubled your events, when you mvexpand x, you get 5 times the events. 2 * 5 = 10&lt;/P&gt;&lt;P&gt;If you have something that is working, why are you trying to break it?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 07:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646574#M52836</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-12T07:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646582#M52840</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;, But if i don't do that the table comes as empty. Is there any other way to do this?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 08:00:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646582#M52840</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2023-06-12T08:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646597#M52846</link>
      <description>&lt;LI-CODE lang="markup"&gt;| spath COMPONENTS{} output=components
| mvexpand components
| spath input=components NAME
| spath input=components Tasks{}.ITEM{} output=items
| mvexpand items
| spath input=items
| fields - components items _raw
| table NAME ITEM_ID FILE&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Jun 2023 09:36:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646597#M52846</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-12T09:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: convert a nested json into table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646948#M52896</link>
      <description>&lt;P&gt;Thank you so much &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt; , It is working.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 10:46:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-convert-a-nested-json-into-table/m-p/646948#M52896</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2023-06-14T10:46:05Z</dc:date>
    </item>
  </channel>
</rss>

