<?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 put data in table format in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-put-data-in-table-format/m-p/489773#M136802</link>
    <description>&lt;P&gt;Name :Test&lt;BR /&gt;
"extensionData":  {&lt;BR /&gt;
                          "entries":  [&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "machinesTotal",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "integer",&lt;BR /&gt;
                                                            "value":  7&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "endpoint",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "string",&lt;BR /&gt;
                                                            "value":  "vcenter.local"&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "quotaAllocatedPercentage",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "string",&lt;BR /&gt;
                                                            "value":  "27% (6 of 22)"&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "storageUsed",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "integer",&lt;BR /&gt;
                                                            "value":  1006&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "machinesAllocatedPercentage",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "string",&lt;BR /&gt;
                                                            "value":  "86% (6 of 7)"&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "memoryAllocatedPercentage",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "string",&lt;BR /&gt;
                                                            "value":  "20% (72 GB of 352 GB)"&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "computeResource",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "string",&lt;BR /&gt;
                                                            "value":  "Data-Cluster"&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "storageAllocatedPercentage",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "string",&lt;BR /&gt;
                                                            "value":  "23% (1006 GB of 4400 GB)"&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "storageUsedPercentage",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "string",&lt;BR /&gt;
                                                            "value":  "23% (1006 GB of 4400 GB)"&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          }&lt;BR /&gt;
                                      ]&lt;BR /&gt;
                      }&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;I need data in table format. Can you help me on this.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8815iADA74FC777362443/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2020 22:17:16 GMT</pubDate>
    <dc:creator>chaitu1231</dc:creator>
    <dc:date>2020-04-30T22:17:16Z</dc:date>
    <item>
      <title>How to put data in table format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-put-data-in-table-format/m-p/489773#M136802</link>
      <description>&lt;P&gt;Name :Test&lt;BR /&gt;
"extensionData":  {&lt;BR /&gt;
                          "entries":  [&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "machinesTotal",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "integer",&lt;BR /&gt;
                                                            "value":  7&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "endpoint",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "string",&lt;BR /&gt;
                                                            "value":  "vcenter.local"&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "quotaAllocatedPercentage",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "string",&lt;BR /&gt;
                                                            "value":  "27% (6 of 22)"&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "storageUsed",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "integer",&lt;BR /&gt;
                                                            "value":  1006&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "machinesAllocatedPercentage",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "string",&lt;BR /&gt;
                                                            "value":  "86% (6 of 7)"&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "memoryAllocatedPercentage",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "string",&lt;BR /&gt;
                                                            "value":  "20% (72 GB of 352 GB)"&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "computeResource",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "string",&lt;BR /&gt;
                                                            "value":  "Data-Cluster"&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "storageAllocatedPercentage",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "string",&lt;BR /&gt;
                                                            "value":  "23% (1006 GB of 4400 GB)"&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          },&lt;BR /&gt;
                                          {&lt;BR /&gt;
                                              "key":  "storageUsedPercentage",&lt;BR /&gt;
                                              "value":  {&lt;BR /&gt;
                                                            "type":  "string",&lt;BR /&gt;
                                                            "value":  "23% (1006 GB of 4400 GB)"&lt;BR /&gt;
                                                        }&lt;BR /&gt;
                                          }&lt;BR /&gt;
                                      ]&lt;BR /&gt;
                      }&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;I need data in table format. Can you help me on this.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8815iADA74FC777362443/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 22:17:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-put-data-in-table-format/m-p/489773#M136802</guid>
      <dc:creator>chaitu1231</dc:creator>
      <dc:date>2020-04-30T22:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to put data in table format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-put-data-in-table-format/m-p/489774#M136803</link>
      <description>&lt;P&gt;Something like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults  count =1
| eval _raw = "
{
  \"Name\": \"Test\",
  \"extensionData\": {
    \"entries\": [
      {
        \"key\": \"machinesTotal\",
        \"value\": {
          \"type\": \"integer\",
          \"value\": 7
        }
      },
      {
        \"key\": \"endpoint\",
        \"value\": {
          \"type\": \"string\",
          \"value\": \"vcenter.local\"
        }
      },
      {
        \"key\": \"quotaAllocatedPercentage\",
        \"value\": {
          \"type\": \"string\",
          \"value\": \"27% (6 of 22)\"
        }
      },
      {
        \"key\": \"storageUsed\",
        \"value\": {
          \"type\": \"integer\",
          \"value\": 1006
        }
      },
      {
        \"key\": \"machinesAllocatedPercentage\",
        \"value\": {
          \"type\": \"string\",
          \"value\": \"86% (6 of 7)\"
        }
      },
      {
        \"key\": \"memoryAllocatedPercentage\",
        \"value\": {
          \"type\": \"string\",
          \"value\": \"20% (72 GB of 352 GB)\"
        }
      },
      {
        \"key\": \"computeResource\",
        \"value\": {
          \"type\": \"string\",
          \"value\": \"Data-Cluster\"
        }
      },
      {
        \"key\": \"storageAllocatedPercentage\",
        \"value\": {
          \"type\": \"string\",
          \"value\": \"23% (1006 GB of 4400 GB)\"
        }
      },
      {
        \"key\": \"storageUsedPercentage\",
        \"value\": {
          \"type\": \"string\",
          \"value\": \"23% (1006 GB of 4400 GB)\"
        }
      }
    ]
  }
}"

| spath
| rename extensionData.entries{}.key as key
| rename extensionData.entries{}.value.type as type
| rename extensionData.entries{}.value.value as value
| eval zipped=mvzip( key, mvzip( type, value ) )
| mvexpand zipped
| eval zipped=split( zipped, "," )
| eval key=mvindex( zipped, 0 )
| eval type=mvindex( zipped, 1 )
| eval value =mvindex( zipped, 2 )
| table key,value
| transpose
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Apr 2020 23:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-put-data-in-table-format/m-p/489774#M136803</guid>
      <dc:creator>tauliang</dc:creator>
      <dc:date>2020-04-30T23:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to put data in table format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-put-data-in-table-format/m-p/489775#M136804</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count =1 
| eval _raw = "
 {
   \"Name\": \"Test\",
   \"extensionData\": {
     \"entries\": [
       {
         \"key\": \"machinesTotal\",
         \"value\": {
           \"type\": \"integer\",
           \"value\": 7
         }
       },
       {
         \"key\": \"endpoint\",
         \"value\": {
           \"type\": \"string\",
           \"value\": \"vcenter.local\"
                                                                                             }
       },
       {
         \"key\": \"quotaAllocatedPercentage\",
         \"value\": {
           \"type\": \"string\",
           \"value\": \"27% (6 of 22)\"
                                                                                             }
       },
       {
         \"key\": \"storageUsed\",
         \"value\": {
           \"type\": \"integer\",
           \"value\": 1006
         }
       },
       {
         \"key\": \"machinesAllocatedPercentage\",
         \"value\": {
           \"type\": \"string\",
           \"value\": \"86% (6 of 7)\"
                                                                                             }
       },
       {
         \"key\": \"memoryAllocatedPercentage\",
         \"value\": {
           \"type\": \"string\",
           \"value\": \"20% (72 GB of 352 GB)\"
                                                                                             }
       },
       {
         \"key\": \"computeResource\",
         \"value\": {
           \"type\": \"string\",
           \"value\": \"Data-Cluster\"
                                                                                             }
       },
       {
         \"key\": \"storageAllocatedPercentage\",
         \"value\": {
           \"type\": \"string\",
           \"value\": \"23% (1006 GB of 4400 GB)\"
                                                                                             }
       },
       {
         \"key\": \"storageUsedPercentage\",
         \"value\": {
           \"type\": \"string\",
           \"value\": \"23% (1006 GB of 4400 GB)\"
                                                                                             }
       }
     ]
   }
 }" 
| spath path=extensionData.entries{}.key output=key 
| spath path=extensionData.entries{}.value.value output=value 
| spath path=Name output=Name 
| eval key_value_combined=mvzip(key,value) 
| stats values(Name) as Name by key_value_combined 
| eval key_value= split(key_value_combined,",") 
| eval key=mvindex(key_value,0),value=mvindex(key_value,1) 
| chart values(value) as value over Name by key
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count =1 
| eval _raw = "
 {
   \"Name\": \"Test\",
   \"extensionData\": {
     \"entries\": [
       {
         \"key\": \"machinesTotal\",
         \"value\": {
           \"type\": \"integer\",
           \"value\": 7
         }
       },
       {
         \"key\": \"endpoint\",
         \"value\": {
           \"type\": \"string\",
           \"value\": \"vcenter.local\"
                                                                                                         }
       },
       {
         \"key\": \"quotaAllocatedPercentage\",
         \"value\": {
           \"type\": \"string\",
           \"value\": \"27% (6 of 22)\"
                                                                                                         }
       },
       {
         \"key\": \"storageUsed\",
         \"value\": {
           \"type\": \"integer\",
           \"value\": 1006
         }
       },
       {
         \"key\": \"machinesAllocatedPercentage\",
         \"value\": {
           \"type\": \"string\",
           \"value\": \"86% (6 of 7)\"
                                                                                                         }
       },
       {
         \"key\": \"memoryAllocatedPercentage\",
         \"value\": {
           \"type\": \"string\",
           \"value\": \"20% (72 GB of 352 GB)\"
                                                                                                         }
       },
       {
         \"key\": \"computeResource\",
         \"value\": {
           \"type\": \"string\",
           \"value\": \"Data-Cluster\"
                                                                                                         }
       },
       {
         \"key\": \"storageAllocatedPercentage\",
         \"value\": {
           \"type\": \"string\",
           \"value\": \"23% (1006 GB of 4400 GB)\"
                                                                                                         }
       },
       {
         \"key\": \"storageUsedPercentage\",
         \"value\": {
           \"type\": \"string\",
           \"value\": \"23% (1006 GB of 4400 GB)\"
                                                                                                         }
       }
     ]
   }
 }" 
| spath path=extensionData.entries{}.key output=key 
| spath path=extensionData.entries{}.value.value output=value 
| spath path=Name output=Name 
| eval key_value_combined=mvzip(key,value) 
| stats values(Name) as Name by key_value_combined 
| eval key_value= split(key_value_combined,",") 
| eval key=mvindex(key_value,0),value=mvindex(key_value,1) 
| eval {key}=value 
| stats values(*) as * 
| fields - key value key_value key_value_combined
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 May 2020 02:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-put-data-in-table-format/m-p/489775#M136804</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2020-05-01T02:53:17Z</dc:date>
    </item>
  </channel>
</rss>

