<?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: display all values of JSON field in a table if you don't know the structure of the json in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/display-all-values-of-JSON-field-in-a-table-if-you-don-t-know/m-p/581911#M202705</link>
    <description>&lt;P&gt;Have you tried &lt;FONT face="courier new,courier"&gt;index=mylog | table user,data.*&lt;/FONT&gt; ?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jan 2022 16:02:49 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-01-20T16:02:49Z</dc:date>
    <item>
      <title>display all values of JSON field in a table if you don't know the structure of the json</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-all-values-of-JSON-field-in-a-table-if-you-don-t-know/m-p/581902#M202702</link>
      <description>&lt;P&gt;I have a JSON with a field containing another object, but this object varies depending on type. For example, you may have these 3 logs under the same sourcetype/index:&lt;/P&gt;&lt;P&gt;{ "Log":"something","user": "me" ,"type":"car", "data": {"case1":"something"} }&lt;BR /&gt;{ "Log":"something","user": "me" ,"type":"apple", "data": {"fruity":"yummy"} }&lt;BR /&gt;{ "Log":"something","user": "me","type":"&lt;SPAN&gt;Cauliflower&lt;/SPAN&gt;", "data":{"veggie":"eww", "fact":"good for you"} }&lt;BR /&gt;&lt;BR /&gt;and I want a table query to look something like this:&lt;BR /&gt;user | data&lt;BR /&gt;me&amp;nbsp; &amp;nbsp; |&amp;nbsp;{"case1":"something"}&amp;nbsp;&lt;BR /&gt;me&amp;nbsp; &amp;nbsp; |&amp;nbsp;{"fruity":"yummy"}&lt;BR /&gt;me&amp;nbsp; &amp;nbsp; | {"veggie":"eww", "fact":"good for you"}&lt;BR /&gt;&lt;BR /&gt;I tried the following query:&lt;BR /&gt;index=mylog | table user,data&lt;BR /&gt;but my results usually look like this (with either nulls or straight up empty):&lt;BR /&gt;user | data&lt;BR /&gt;me&amp;nbsp; &amp;nbsp; | null&lt;BR /&gt;me&amp;nbsp; &amp;nbsp; |&lt;BR /&gt;me&amp;nbsp; &amp;nbsp; |&amp;nbsp;null&lt;BR /&gt;&lt;BR /&gt;data itself may sometimes be very long, but I would still like to see its entire output in the table. How can I go about this?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 15:20:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-all-values-of-JSON-field-in-a-table-if-you-don-t-know/m-p/581902#M202702</guid>
      <dc:creator>dasaed</dc:creator>
      <dc:date>2022-01-20T15:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: display all values of JSON field in a table if you don't know the structure of the json</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-all-values-of-JSON-field-in-a-table-if-you-don-t-know/m-p/581911#M202705</link>
      <description>&lt;P&gt;Have you tried &lt;FONT face="courier new,courier"&gt;index=mylog | table user,data.*&lt;/FONT&gt; ?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 16:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-all-values-of-JSON-field-in-a-table-if-you-don-t-know/m-p/581911#M202705</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-01-20T16:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: display all values of JSON field in a table if you don't know the structure of the json</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-all-values-of-JSON-field-in-a-table-if-you-don-t-know/m-p/581922#M202707</link>
      <description>&lt;LI-CODE lang="markup"&gt;| spath path=user
| spath path=data
| table user data&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 Jan 2022 17:23:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-all-values-of-JSON-field-in-a-table-if-you-don-t-know/m-p/581922#M202707</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-20T17:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: display all values of JSON field in a table if you don't know the structure of the json</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-all-values-of-JSON-field-in-a-table-if-you-don-t-know/m-p/582136#M202782</link>
      <description>&lt;P&gt;path=user is not necessary for this dataset. &amp;nbsp;But that's a great illustration of &lt;FONT face="courier new,courier"&gt;path&lt;/FONT&gt; option in&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.0/SearchReference/Spath#spath" target="_blank"&gt;spath&lt;/A&gt;!&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 09:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-all-values-of-JSON-field-in-a-table-if-you-don-t-know/m-p/582136#M202782</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-01-22T09:54:21Z</dc:date>
    </item>
  </channel>
</rss>

