<?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 to transform a table and use column headers as field values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-transform-a-table-and-use-column-headers-as-field-values/m-p/230356#M68283</link>
    <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your current search giving table 1 | eval temp=name."#".department | fields - name department | untable temp month project | rex field=temp "(?&amp;lt;name&amp;gt;.*)#(?&amp;lt;department&amp;gt;.*)" | table name department month project
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Jan 2016 16:47:07 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-01-12T16:47:07Z</dc:date>
    <item>
      <title>How to transform a table and use column headers as field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-transform-a-table-and-use-column-headers-as-field-values/m-p/230353#M68280</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I would like to do a transformation like this:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/958i8343114AB822C50A/image-size/large?v=v2&amp;amp;px=999" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Can you help how to achieve this?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;BR /&gt;
Heinz&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 15:43:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-transform-a-table-and-use-column-headers-as-field-values/m-p/230353#M68280</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2016-01-12T15:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform a table and use column headers as field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-transform-a-table-and-use-column-headers-as-field-values/m-p/230354#M68281</link>
      <description>&lt;P&gt;Can you share the query for the first table&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:12:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-transform-a-table-and-use-column-headers-as-field-values/m-p/230354#M68281</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-01-12T16:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform a table and use column headers as field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-transform-a-table-and-use-column-headers-as-field-values/m-p/230355#M68282</link>
      <description>&lt;P&gt;Unfortunately the first table would be the result of a csv&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-transform-a-table-and-use-column-headers-as-field-values/m-p/230355#M68282</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2016-01-12T16:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform a table and use column headers as field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-transform-a-table-and-use-column-headers-as-field-values/m-p/230356#M68283</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your current search giving table 1 | eval temp=name."#".department | fields - name department | untable temp month project | rex field=temp "(?&amp;lt;name&amp;gt;.*)#(?&amp;lt;department&amp;gt;.*)" | table name department month project
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jan 2016 16:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-transform-a-table-and-use-column-headers-as-field-values/m-p/230356#M68283</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-12T16:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform a table and use column headers as field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-transform-a-table-and-use-column-headers-as-field-values/m-p/230357#M68284</link>
      <description>&lt;P&gt;Awesome, thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 13:01:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-transform-a-table-and-use-column-headers-as-field-values/m-p/230357#M68284</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2016-01-13T13:01:51Z</dc:date>
    </item>
  </channel>
</rss>

