<?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: Column to row conversion in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Column-to-row-conversion/m-p/318487#M95281</link>
    <description>&lt;P&gt;@gauravmishra15, Unless data in table 1 is your raw data, can you share your existing query which gets you table 1 with Datetime result duration Dash1 Dash2 Dash3? It would be better if we plotted required table 2 directly from your raw events rather than creating table 1 to table 2.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2017 09:12:57 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-09-06T09:12:57Z</dc:date>
    <item>
      <title>Column to row conversion</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Column-to-row-conversion/m-p/318485#M95279</link>
      <description>&lt;P&gt;Hi friends&lt;/P&gt;

&lt;P&gt;I am facing an issue where I have to consolidate and convert the data from Column to rows. The sample data looks like this -&lt;/P&gt;

&lt;P&gt;Datetime                    result      duration    Dash1   Dash2   Dash3&lt;BR /&gt;
05-09-2017 20:45:11 SUCCESS 11.07   3.91    3.33    3.34&lt;BR /&gt;
05-09-2017 20:44:01 SUCCESS 20.57   7.94    6.62    5.32&lt;BR /&gt;
05-09-2017 20:43:06 SUCCESS 19.98   7.89    6.40    5.14&lt;BR /&gt;
05-09-2017 20:42:05 SUCCESS 21.29   8.13    6.90    5.82&lt;BR /&gt;
05-09-2017 20:41:18 SUCCESS 16.38   5.98    5.69    4.18&lt;/P&gt;

&lt;P&gt;I have to change data in this format&lt;/P&gt;

&lt;P&gt;Datetime                    result          Name    ResponseTime&lt;BR /&gt;&lt;BR /&gt;
05-09-2017 20:45:11 SUCCESS duration    11.07&lt;BR /&gt;&lt;BR /&gt;
05-09-2017 20:45:11 SUCCESS Dash1   3.91&lt;BR /&gt;&lt;BR /&gt;
05-09-2017 20:45:11 SUCCESS Dash2   3.33&lt;BR /&gt;&lt;BR /&gt;
05-09-2017 20:45:11 SUCCESS Dash3   3.34&lt;BR /&gt;&lt;BR /&gt;
05-09-2017 20:44:01 SUCCESS duration    20.57&lt;BR /&gt;
05-09-2017 20:44:01 SUCCESS Dash1   7.94&lt;BR /&gt;&lt;BR /&gt;
05-09-2017 20:44:01 SUCCESS Dash2   6.62&lt;BR /&gt;&lt;BR /&gt;
05-09-2017 20:44:01 SUCCESS Dash3   5.32&lt;/P&gt;

&lt;P&gt;Is there a way we can achieve this in SPLUNK ?  &lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 03:20:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Column-to-row-conversion/m-p/318485#M95279</guid>
      <dc:creator>gauravmishra15</dc:creator>
      <dc:date>2017-09-06T03:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Column to row conversion</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Column-to-row-conversion/m-p/318486#M95280</link>
      <description>&lt;P&gt;Try this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search)
| eval wk="duration="+duration+","+"Dash1="+Dash1+","+"Dash2="+Dash2+","+"Dash3="+Dash3
| makemv delim="," wk| mvexpand wk
| rex field=wk "^(?&amp;lt;Name&amp;gt;.*)=(?&amp;lt;ResponseTime&amp;gt;.*)$"
| table Datetime,result,Name,ResponseTime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Sep 2017 05:49:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Column-to-row-conversion/m-p/318486#M95280</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2017-09-06T05:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Column to row conversion</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Column-to-row-conversion/m-p/318487#M95281</link>
      <description>&lt;P&gt;@gauravmishra15, Unless data in table 1 is your raw data, can you share your existing query which gets you table 1 with Datetime result duration Dash1 Dash2 Dash3? It would be better if we plotted required table 2 directly from your raw events rather than creating table 1 to table 2.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 09:12:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Column-to-row-conversion/m-p/318487#M95281</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-06T09:12:57Z</dc:date>
    </item>
  </channel>
</rss>

