<?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 display JSON tree structure in a summary index without output_mode=hec? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-JSON-tree-structure-in-a-summary-index-without/m-p/744621#M241286</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;How to display JSON tree structure in a summary index without output_mode=hec?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;I am not a Splunk admin.&lt;/STRONG&gt;&amp;nbsp;So, the only way I created summary index was using a Splunk report. I then enabled "Schedule Report" and "Summary Indexing". When the report ran, it appended the search query with the "&lt;STRONG&gt;| summaryindex&lt;/STRONG&gt;" syntax. (See the screenshot below showing the steps). The summary index query is: &lt;STRONG&gt;index=summary&amp;nbsp; &amp;nbsp;report=test_1&amp;nbsp; &lt;/STRONG&gt;(the report field is to differentiate with the other users)&lt;BR /&gt;&lt;BR /&gt;I tried&amp;nbsp;&lt;STRONG&gt;| collect index=summary&amp;nbsp; &amp;nbsp;name=test_1&amp;nbsp; &amp;nbsp;output_mode=hec&lt;/STRONG&gt;, the result DID NOT show up in the summary index&lt;BR /&gt;&lt;BR /&gt;I tried&amp;nbsp; &lt;STRONG&gt;| collect index=summary marker="hostname=\"&lt;A href="https://a1.test.com/\" target="_blank" rel="noopener"&gt;https://a1.test.com/\&lt;/A&gt;",report=\"test_1\""&lt;/STRONG&gt;, the result DID show up in the summary index, but without JSON tree structure&lt;BR /&gt;&lt;BR /&gt;I tried&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;| collect index=summary marker="hostname=\"&lt;A href="https://a1.test.com/\" target="_blank" rel="noopener"&gt;https://a1.test.com/\&lt;/A&gt;",report=\"test_1\""&amp;nbsp; output_mode=hec&lt;/STRONG&gt;,&amp;nbsp; I received an "invalid argument". This is likely because marker parameter is not compatible with output_mode=hec.&lt;STRONG&gt; I believe only output_mode raw is allowed.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;However, I accidentally and successfully created a summary index and displayed it as a JSON tree structure by accident.&amp;nbsp; I don't&amp;nbsp;know what I did.&lt;BR /&gt;&lt;BR /&gt;Please suggest. Thank you so much&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Step to create summary index&lt;BR /&gt;1) Created a Splunk Report, edited the search, and enabled schedule&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LearningGuy_6-1745284557339.png" style="width: 468px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38679i50C9C93DA9D56BA5/image-dimensions/468x277?v=v2" width="468" height="277" role="button" title="LearningGuy_6-1745284557339.png" alt="LearningGuy_6-1745284557339.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;2) Enabled summary indexing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LearningGuy_7-1745284732423.png" style="width: 485px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38680i0E8E75538A24F11A/image-dimensions/485x303?v=v2" width="485" height="303" role="button" title="LearningGuy_7-1745284732423.png" alt="LearningGuy_7-1745284732423.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;After the report Ran, it added | summaryindex syntax&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LearningGuy_8-1745285031206.png" style="width: 768px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38681i646C57167ED365F3/image-dimensions/768x83?v=v2" width="768" height="83" role="button" title="LearningGuy_8-1745285031206.png" alt="LearningGuy_8-1745285031206.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here's the Search query&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| windbag | head 1 | eval _raw="{\"name\":\"John Doe\",\"age\":30,\"address\":{\"street\":\"123 Main St\",\"city\":\"Anytown\",\"state\":\"CA\",\"zip\":\"12345\"},\"interests\":[\"reading\",\"hiking\",\"coding\"]}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;The search result using "List"&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LearningGuy_3-1745284005372.png" style="width: 792px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38676i8364AD8E0E4BFADE/image-dimensions/792x84?v=v2" width="792" height="84" role="button" title="LearningGuy_3-1745284005372.png" alt="LearningGuy_3-1745284005372.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;When I clicked show syntax highlighted, it showed JSON tree structure&lt;BR /&gt;Expected result&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LearningGuy_4-1745284370690.png" style="width: 555px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38677i1983E2E530A95A48/image-dimensions/555x677?v=v2" width="555" height="677" role="button" title="LearningGuy_4-1745284370690.png" alt="LearningGuy_4-1745284370690.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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Apr 2025 02:10:27 GMT</pubDate>
    <dc:creator>LearningGuy</dc:creator>
    <dc:date>2025-04-22T02:10:27Z</dc:date>
    <item>
      <title>How to display JSON tree structure in a summary index without output_mode=hec?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-JSON-tree-structure-in-a-summary-index-without/m-p/744621#M241286</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;How to display JSON tree structure in a summary index without output_mode=hec?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;I am not a Splunk admin.&lt;/STRONG&gt;&amp;nbsp;So, the only way I created summary index was using a Splunk report. I then enabled "Schedule Report" and "Summary Indexing". When the report ran, it appended the search query with the "&lt;STRONG&gt;| summaryindex&lt;/STRONG&gt;" syntax. (See the screenshot below showing the steps). The summary index query is: &lt;STRONG&gt;index=summary&amp;nbsp; &amp;nbsp;report=test_1&amp;nbsp; &lt;/STRONG&gt;(the report field is to differentiate with the other users)&lt;BR /&gt;&lt;BR /&gt;I tried&amp;nbsp;&lt;STRONG&gt;| collect index=summary&amp;nbsp; &amp;nbsp;name=test_1&amp;nbsp; &amp;nbsp;output_mode=hec&lt;/STRONG&gt;, the result DID NOT show up in the summary index&lt;BR /&gt;&lt;BR /&gt;I tried&amp;nbsp; &lt;STRONG&gt;| collect index=summary marker="hostname=\"&lt;A href="https://a1.test.com/\" target="_blank" rel="noopener"&gt;https://a1.test.com/\&lt;/A&gt;",report=\"test_1\""&lt;/STRONG&gt;, the result DID show up in the summary index, but without JSON tree structure&lt;BR /&gt;&lt;BR /&gt;I tried&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;| collect index=summary marker="hostname=\"&lt;A href="https://a1.test.com/\" target="_blank" rel="noopener"&gt;https://a1.test.com/\&lt;/A&gt;",report=\"test_1\""&amp;nbsp; output_mode=hec&lt;/STRONG&gt;,&amp;nbsp; I received an "invalid argument". This is likely because marker parameter is not compatible with output_mode=hec.&lt;STRONG&gt; I believe only output_mode raw is allowed.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;However, I accidentally and successfully created a summary index and displayed it as a JSON tree structure by accident.&amp;nbsp; I don't&amp;nbsp;know what I did.&lt;BR /&gt;&lt;BR /&gt;Please suggest. Thank you so much&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Step to create summary index&lt;BR /&gt;1) Created a Splunk Report, edited the search, and enabled schedule&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LearningGuy_6-1745284557339.png" style="width: 468px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38679i50C9C93DA9D56BA5/image-dimensions/468x277?v=v2" width="468" height="277" role="button" title="LearningGuy_6-1745284557339.png" alt="LearningGuy_6-1745284557339.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;2) Enabled summary indexing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LearningGuy_7-1745284732423.png" style="width: 485px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38680i0E8E75538A24F11A/image-dimensions/485x303?v=v2" width="485" height="303" role="button" title="LearningGuy_7-1745284732423.png" alt="LearningGuy_7-1745284732423.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;After the report Ran, it added | summaryindex syntax&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LearningGuy_8-1745285031206.png" style="width: 768px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38681i646C57167ED365F3/image-dimensions/768x83?v=v2" width="768" height="83" role="button" title="LearningGuy_8-1745285031206.png" alt="LearningGuy_8-1745285031206.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here's the Search query&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| windbag | head 1 | eval _raw="{\"name\":\"John Doe\",\"age\":30,\"address\":{\"street\":\"123 Main St\",\"city\":\"Anytown\",\"state\":\"CA\",\"zip\":\"12345\"},\"interests\":[\"reading\",\"hiking\",\"coding\"]}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;The search result using "List"&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LearningGuy_3-1745284005372.png" style="width: 792px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38676i8364AD8E0E4BFADE/image-dimensions/792x84?v=v2" width="792" height="84" role="button" title="LearningGuy_3-1745284005372.png" alt="LearningGuy_3-1745284005372.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;When I clicked show syntax highlighted, it showed JSON tree structure&lt;BR /&gt;Expected result&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LearningGuy_4-1745284370690.png" style="width: 555px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38677i1983E2E530A95A48/image-dimensions/555x677?v=v2" width="555" height="677" role="button" title="LearningGuy_4-1745284370690.png" alt="LearningGuy_4-1745284370690.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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 02:10:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-JSON-tree-structure-in-a-summary-index-without/m-p/744621#M241286</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2025-04-22T02:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to display JSON tree structure in a summary index without output_mode=hec?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-JSON-tree-structure-in-a-summary-index-without/m-p/744661#M241294</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254242"&gt;@LearningGuy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are wanting to collect the data into a "summary" index then you do not have to use the method which appends the "summaryindex" command if this doesnt do what you need it to do.&lt;/P&gt;&lt;P&gt;Instead just create your search as you did with the collect command (with output mode to HEC) and then schedule the report to run at the relevant interval.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.4.1/Knowledge/Configuresummaryindexes" target="_self"&gt;Manually configure a report to populate a summary index&lt;/A&gt; in the summary indexing docs.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 09:12:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-JSON-tree-structure-in-a-summary-index-without/m-p/744661#M241294</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-04-22T09:12:37Z</dc:date>
    </item>
  </channel>
</rss>

