<?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 table a KV output? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-table-a-KV-output/m-p/295018#M89028</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I used the below query to extract the log file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="test" sourcetype="todayline" | kv pairdelim="\r\n" kvdelim="="
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can able to extract the field name &amp;amp; field value fields as expected.&lt;/P&gt;

&lt;P&gt;But I am not able to table the output values. When I use the below query I got the output in different format as below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats values(Application_handle) as Application_Handle,values(Application_ID) AS "ApplicationID",values(Application_name) AS "ApplicationName",values(Application_status) AS "ApplicationStatus"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is the output I got and also all the events are coming in a single row.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Application_Handle  ApplicationID   ApplicationName     ApplicationStatus
1                                     10.4                         BIBus                              Excecuting
2                                      10.7                        SAS
3                                      10.5                        bbbb                      
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I want the the output as each event in a single row.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Application_Handle  ApplicationID   ApplicationName     ApplicationStatus
1                                     10.4                         BIBus                              Excecuting
2                                      10.7                        SAS                                  Excecuting
3                                      10.5                        bbbb                               Excecuting
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Selvan&lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2018 10:09:53 GMT</pubDate>
    <dc:creator>senthamilselvan</dc:creator>
    <dc:date>2018-02-15T10:09:53Z</dc:date>
    <item>
      <title>How to table a KV output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-table-a-KV-output/m-p/295018#M89028</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I used the below query to extract the log file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="test" sourcetype="todayline" | kv pairdelim="\r\n" kvdelim="="
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can able to extract the field name &amp;amp; field value fields as expected.&lt;/P&gt;

&lt;P&gt;But I am not able to table the output values. When I use the below query I got the output in different format as below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats values(Application_handle) as Application_Handle,values(Application_ID) AS "ApplicationID",values(Application_name) AS "ApplicationName",values(Application_status) AS "ApplicationStatus"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is the output I got and also all the events are coming in a single row.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Application_Handle  ApplicationID   ApplicationName     ApplicationStatus
1                                     10.4                         BIBus                              Excecuting
2                                      10.7                        SAS
3                                      10.5                        bbbb                      
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I want the the output as each event in a single row.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Application_Handle  ApplicationID   ApplicationName     ApplicationStatus
1                                     10.4                         BIBus                              Excecuting
2                                      10.7                        SAS                                  Excecuting
3                                      10.5                        bbbb                               Excecuting
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Selvan&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 10:09:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-table-a-KV-output/m-p/295018#M89028</guid>
      <dc:creator>senthamilselvan</dc:creator>
      <dc:date>2018-02-15T10:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to table a KV output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-table-a-KV-output/m-p/295019#M89029</link>
      <description>&lt;P&gt;can it be done using &lt;CODE&gt;dedup&lt;/CODE&gt; instead of &lt;CODE&gt;stats&lt;/CODE&gt; try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="test" sourcetype="todayline" | kv pairdelim="\r\n" kvdelim="="|dedup Application_handle Application_ID Application_name Application_status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR try using stats:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base_search&amp;gt;| stats values(Application_ID) AS "ApplicationID",values(Application_name) AS "ApplicationName",values(Application_status) AS "ApplicationStatus" by Application_handle
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2018 10:23:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-table-a-KV-output/m-p/295019#M89029</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-15T10:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to table a KV output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-table-a-KV-output/m-p/295020#M89030</link>
      <description>&lt;P&gt;If you want to table the relevant fields of the events, why not use the actual table command?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="test" sourcetype="todayline" | kv pairdelim="\r\n" kvdelim="=" | table Application_handle Application_ID Application_name Application_status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2018 17:56:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-table-a-KV-output/m-p/295020#M89030</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-02-15T17:56:03Z</dc:date>
    </item>
  </channel>
</rss>

