<?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: How can i format a table as rows into columns? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-format-a-table-as-rows-into-columns/m-p/476057#M192618</link>
    <description>&lt;P&gt;@rarangarajansplunk what is the logic of dividing 10 columns into 2 column sets? Is it based on divide by 2 logic or based on Column name?&lt;/P&gt;

&lt;P&gt;Why each of 3 rows became 6 column in your output?&lt;/P&gt;

&lt;P&gt;What is the logic of &lt;CODE&gt;Row 1&lt;/CODE&gt; column between &lt;CODE&gt;Column Set 1&lt;/CODE&gt; and &lt;CODE&gt;Column Set 2&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;Please provide more details and context for the community to assist you better.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2020 11:59:01 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2020-04-15T11:59:01Z</dc:date>
    <item>
      <title>How can i format a table as rows into columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-format-a-table-as-rows-into-columns/m-p/476053#M192614</link>
      <description>&lt;P&gt;Hello - I am new to Splunk. I would like to check whether it's feasible to format a table. In the screen shot 1, i have a table with 10 columns and 3 records. I want to format it as Screen shot2. i.e. columns should be divided into couple of sets. Each row should be  displayed next accordingly.&lt;/P&gt;

&lt;P&gt;Basically, i want to compare just by looking at the values. &lt;/P&gt;

&lt;P&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/8698i6978D1E4D75EBB6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&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/8699i91EF27C6E146092F/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>Wed, 15 Apr 2020 02:41:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-format-a-table-as-rows-into-columns/m-p/476053#M192614</guid>
      <dc:creator>rarangarajanspl</dc:creator>
      <dc:date>2020-04-15T02:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can i format a table as rows into columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-format-a-table-as-rows-into-columns/m-p/476054#M192615</link>
      <description>&lt;P&gt;hi @rarangarajansplunk &lt;/P&gt;

&lt;P&gt;try &lt;CODE&gt;transpose and chart over by command&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 08:19:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-format-a-table-as-rows-into-columns/m-p/476054#M192615</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2020-04-15T08:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can i format a table as rows into columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-format-a-table-as-rows-into-columns/m-p/476055#M192616</link>
      <description>&lt;P&gt;HI @rarangarajansplunk &lt;/P&gt;

&lt;P&gt;Can u try this way..same content but table view is different &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval _raw=" A1      A2    B1   B2 
  /Test1       /Test22    /Test1       /Test22
  /Test2       /Test23      /Test2       /Test23
  /Test3       /Test24       /Test3       /Test24
 " | multikv |table A1 A2 B1 B2|transpose |transpose header_field=column
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Apr 2020 08:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-format-a-table-as-rows-into-columns/m-p/476055#M192616</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2020-04-15T08:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can i format a table as rows into columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-format-a-table-as-rows-into-columns/m-p/476056#M192617</link>
      <description>&lt;P&gt;try &lt;CODE&gt;transpose, foreach with eval, at last, selfjoin&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 08:58:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-format-a-table-as-rows-into-columns/m-p/476056#M192617</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-15T08:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can i format a table as rows into columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-format-a-table-as-rows-into-columns/m-p/476057#M192618</link>
      <description>&lt;P&gt;@rarangarajansplunk what is the logic of dividing 10 columns into 2 column sets? Is it based on divide by 2 logic or based on Column name?&lt;/P&gt;

&lt;P&gt;Why each of 3 rows became 6 column in your output?&lt;/P&gt;

&lt;P&gt;What is the logic of &lt;CODE&gt;Row 1&lt;/CODE&gt; column between &lt;CODE&gt;Column Set 1&lt;/CODE&gt; and &lt;CODE&gt;Column Set 2&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;Please provide more details and context for the community to assist you better.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 11:59:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-format-a-table-as-rows-into-columns/m-p/476057#M192618</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-04-15T11:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can i format a table as rows into columns?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-format-a-table-as-rows-into-columns/m-p/476058#M192619</link>
      <description>&lt;P&gt;Hi Niketnilay&lt;BR /&gt;
Thanks for reverting back with questions. &lt;BR /&gt;
We are supposed generate a table by reading/parsing application generated log file (INFO,DEBUG,WARN,ERROR). This log file has incoming request message (input XML) and outgoing response message (output XML). There is a direct mapping between input xml elements and output xml elements.&lt;/P&gt;

&lt;P&gt;At this point, I am able to parse these xmls and generate table as per the screen shot 1. i.e. first five coumns (A1, A2, A3, A4 and A5) are input XML elements. Second five columns (B1, B2, B3, B4 and B5) are output XML elements. &lt;/P&gt;

&lt;P&gt;Unfortunately, we are finding it difficult to compare the directly mapped elements between input and output. In the real time we have 50+ elements in each input and out xmls.&lt;/P&gt;

&lt;P&gt;To compare the input and output elements in a better way, we came up with two different column set (as per Screen shot 2). &lt;/P&gt;

&lt;P&gt;Response to your queries&lt;BR /&gt;
1. Column sets are decided based on input and output xml elements. Based on xml element name it's divided.&lt;BR /&gt;
2. Please refer #1&lt;BR /&gt;
3. We want to display name of the XML elements. May be this can be modified. i.e. First two columns are input and output xml elements name. From third column, we can start input xml actual values.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**Input XML Columns Row1 (IP XML)   Output XML Columns  Row1 (OP XML)   Row2 (IP XML)   Row2 (OP XML)   Row3 (IP XML)   Row3 (OP XML)**
IPXML Column1           Test1                    OPXML Column1           Test1                  Test2                   Test2   Test3   Test3
IPXML Column2           Test22                    OPXML Column2  Test22                Test23                  Test23   Test24  Test24
IPXML Column3           Test33                    OPXML Column3  Test33                 Test34                 Test34   Test35  Test35
IPXML Column4           Test44                    OPXML Column4  Test44                 Test45                 Test45   Test46  Test46
IPXML Column5           Test55                   OPXML Column5           Test55                  Test56                Test56   Test57  Test57
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Apr 2020 17:27:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-format-a-table-as-rows-into-columns/m-p/476058#M192619</guid>
      <dc:creator>rarangarajanspl</dc:creator>
      <dc:date>2020-04-15T17:27:45Z</dc:date>
    </item>
  </channel>
</rss>

