<?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: help on transpose command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595055#M207066</link>
    <description>&lt;P class="lia-align-justify"&gt;I have just forgotten to delete this pièce of code for my exemple sorry&lt;/P&gt;&lt;PRE&gt;| eval time=strftime(_time,"%H:%M") 
| sort time &lt;/PRE&gt;&lt;P&gt;This code is just used for filling my header_field (header_field=time)&lt;/P&gt;</description>
    <pubDate>Sun, 24 Apr 2022 08:46:55 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2022-04-24T08:46:55Z</dc:date>
    <item>
      <title>How to display header on transpose command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595045#M207061</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;As you can see in my search I transpose time in my header field&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval time=strftime(_time,"%H:%M") 
| sort time 
| fields - _time _span _origtime _events 
| fillnull value=0 
| transpose 0 header_field=time column_name=KPI include_empty=true 
| sort KPI&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most of the time it works well&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jip31_4-1650782376619.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19271iCF4C883AC9BB57E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jip31_4-1650782376619.png" alt="jip31_4-1650782376619.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But it seems that until I have results = 0, the time header field is dont display&lt;/P&gt;
&lt;P&gt;I have row1, instead 08:00, row2 instead 09:00&lt;/P&gt;
&lt;P&gt;You can see the result below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jip31_0-1650781875341.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19267iB266549E3B026DD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="jip31_0-1650781875341.png" alt="jip31_0-1650781875341.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;is anybody have an idea please?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 15:04:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595045#M207061</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-25T15:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: help on transpose command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595047#M207062</link>
      <description>&lt;P&gt;Can you show an example of the table before the transpose command?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 07:21:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595047#M207062</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-24T07:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: help on transpose command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595050#M207063</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;here is&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jip31_0-1650787222113.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19272i4B8285B58E2CFB7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jip31_0-1650787222113.png" alt="jip31_0-1650787222113.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 08:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595050#M207063</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-24T08:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: help on transpose command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595051#M207064</link>
      <description>&lt;P&gt;Your&amp;nbsp; _time field is empty. Why is that?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 08:03:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595051#M207064</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-24T08:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: help on transpose command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595055#M207066</link>
      <description>&lt;P class="lia-align-justify"&gt;I have just forgotten to delete this pièce of code for my exemple sorry&lt;/P&gt;&lt;PRE&gt;| eval time=strftime(_time,"%H:%M") 
| sort time &lt;/PRE&gt;&lt;P&gt;This code is just used for filling my header_field (header_field=time)&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 08:46:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595055#M207066</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-24T08:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: help on transpose command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595056#M207067</link>
      <description>&lt;P&gt;OK so now what does the table look like before the transpose?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 08:50:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595056#M207067</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-24T08:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: help on transpose command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595100#M207091</link>
      <description>&lt;P&gt;here is&lt;/P&gt;&lt;P&gt;as you can see, fillnull works only when there is a result &amp;gt; 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jip31_0-1650865008367.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19282iF1D793A3BA43F638/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jip31_0-1650865008367.png" alt="jip31_0-1650865008367.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 05:38:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595100#M207091</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-25T05:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: help on transpose command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595108#M207094</link>
      <description>&lt;P&gt;What was the search which produced this table?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 06:27:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595108#M207094</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-25T06:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: help on transpose command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595238#M207148</link>
      <description>&lt;P&gt;Here is&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cjoint.com/c/LDzpRnxcFYj" target="_blank"&gt;https://www.cjoint.com/c/LDzpRnxcFYj&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 15:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595238#M207148</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-25T15:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: help on transpose command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595277#M207161</link>
      <description>&lt;P&gt;I can't see why the fillnull should not have worked - I have tried recreating the results but have been unable to make it fail. Which version of Splunk are you using?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 17:43:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595277#M207161</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-25T17:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: help on transpose command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595334#M207196</link>
      <description>&lt;P&gt;Version 8.2.5&lt;/P&gt;&lt;P&gt;As you can see I have the row name in the header field instead time&lt;/P&gt;&lt;P&gt;And most of the time it works normally.....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jip31_0-1650953145203.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19318i2BBC39256D220CBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="jip31_0-1650953145203.png" alt="jip31_0-1650953145203.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 06:06:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595334#M207196</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-26T06:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: help on transpose command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595510#M207255</link>
      <description>&lt;P&gt;So its not due to version?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 05:02:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595510#M207255</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-27T05:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: help on transpose command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595527#M207260</link>
      <description>&lt;P&gt;Possibly not - I haven't tried 8.2.5 but I can't reproduce the problem with 8.2.2 or 8.2.6&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 07:17:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595527#M207260</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-27T07:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: help on transpose command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595528#M207261</link>
      <description>&lt;P&gt;I think the problem comes from the _time field being empty. However, I can't see from your search why this would be the case. Nor can I see why the fillnull doesn't work, especially as you have shown some empty fields.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 07:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595528#M207261</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-27T07:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: help on transpose command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595553#M207271</link>
      <description>&lt;P&gt;I think I found&lt;/P&gt;&lt;P&gt;I displayed 0 after header_field=time and it has worked immediately...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| transpose header_field=time 0 column_name=KPI include_empty=true &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 10:47:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-header-on-transpose-command/m-p/595553#M207271</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-27T10:47:46Z</dc:date>
    </item>
  </channel>
</rss>

