<?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 do I make a field value as a column heading? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-field-value-as-a-column-heading/m-p/402832#M116550</link>
    <description>&lt;P&gt;you can use this in your first search, you can replace sno column name by Daily as per your query.&lt;/P&gt;

&lt;P&gt;eval weekday=strftime(now(),"%A")|eval column_name=sno| eval sno ( {weekday} )= sno&lt;/P&gt;</description>
    <pubDate>Fri, 28 Sep 2018 15:11:16 GMT</pubDate>
    <dc:creator>Vijeta</dc:creator>
    <dc:date>2018-09-28T15:11:16Z</dc:date>
    <item>
      <title>How do I make a field value as a column heading?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-field-value-as-a-column-heading/m-p/402831#M116549</link>
      <description>&lt;P&gt;I would like to display weekday in the column heading. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|Search....
| eval weekday=strftime(now(),"%A")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Output&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;S.no    | Daily          | weekday
  1        101             Thursday
  2        210             Thursday
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Desired Output&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;S.no    | Daily (Thursday)
  1        101             
  2        210             
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Tried xyseries and transpose but I couldn't find a way to flip only one column instead of the whole table.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 14:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-field-value-as-a-column-heading/m-p/402831#M116549</guid>
      <dc:creator>ibob0304</dc:creator>
      <dc:date>2018-09-28T14:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a field value as a column heading?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-field-value-as-a-column-heading/m-p/402832#M116550</link>
      <description>&lt;P&gt;you can use this in your first search, you can replace sno column name by Daily as per your query.&lt;/P&gt;

&lt;P&gt;eval weekday=strftime(now(),"%A")|eval column_name=sno| eval sno ( {weekday} )= sno&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 15:11:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-field-value-as-a-column-heading/m-p/402832#M116550</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-09-28T15:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a field value as a column heading?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-field-value-as-a-column-heading/m-p/402833#M116551</link>
      <description>&lt;P&gt;@ibob0304,&lt;/P&gt;

&lt;P&gt;This works for me,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|Search....
|eval weekday=strftime(now(),"%A")|eval Daily({weekday})=Daily|fields - Daily,weekday
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Sep 2018 15:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-field-value-as-a-column-heading/m-p/402833#M116551</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-09-28T15:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a field value as a column heading?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-field-value-as-a-column-heading/m-p/402834#M116552</link>
      <description>&lt;P&gt;@ibob&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults |eval weekday=strftime(now(),"%A") |eval value=100 |fields - _time | transpose header_field="weekday"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Sep 2018 15:18:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-field-value-as-a-column-heading/m-p/402834#M116552</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2018-09-28T15:18:10Z</dc:date>
    </item>
  </channel>
</rss>

