<?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: _time column always moves to end after rendering search results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/time-column-always-moves-to-end-after-rendering-search-results/m-p/550796#M156302</link>
    <description>&lt;P&gt;maybe a browser caching issue?&amp;nbsp; have you tried other browsers?&amp;nbsp; can you reproduce with any timechart search?&lt;/P&gt;&lt;P&gt;I would be surprised if it's a bug, because timechart is heavily used.&amp;nbsp; But maybe check the release notes/known issues for your version of splunk?&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2021 11:48:25 GMT</pubDate>
    <dc:creator>maciep</dc:creator>
    <dc:date>2021-05-07T11:48:25Z</dc:date>
    <item>
      <title>_time column always moves to end after rendering search results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-column-always-moves-to-end-after-rendering-search-results/m-p/548075#M155434</link>
      <description>&lt;P&gt;Desired Outcome : I am trying to create a simple timechart&amp;nbsp; to show a count of ports and the relative time line on the x-axis. Sounds simple.&lt;/P&gt;&lt;P&gt;The problem: It appears timecharts (for whatever reason) use the first row of the results for the x-axis values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever I run a query, the _time columns is the first column shown while executing the query, but is always moved to the last column when the query is finished.&lt;/P&gt;&lt;P&gt;The result is the timechart uses whatever column value is sees in the first column as the x-values. If that' s by design, its rather awful as I see no way to hard code the x-axis values to another column.&lt;/P&gt;&lt;P&gt;I've tried a bunch of options to try and move the column back to the first column, but they all fail.&lt;/P&gt;&lt;P&gt;Here is one such option I tried. This of course does the same thing. Works great until the final results are rendered and then the _time column again moves to the end and fouls up the x-axis values. I've also tried renaming _time to a_ or 0_ to try to force the order, but no dice.&lt;/P&gt;&lt;P&gt;My search index blah blah..&lt;/P&gt;&lt;P&gt;| eval Date=strftime(_time,"%y-%m-%d %H:%M:%S") | timechart span=5m count by port useother=true limit=15 | table _time * | fields keepcolorder=t "_time" "*"&lt;/P&gt;&lt;P&gt;I've attached images&amp;nbsp;"executing" and "execution complete" to show the difference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Search_Splunk_Executing.png" style="width: 909px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13792i1845B252D1A695F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="_Search_Splunk_Executing.png" alt="_Search_Splunk_Executing.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Search_Splunk_Rendered.png" style="width: 730px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13793iB0838F99760ADA61/image-size/large?v=v2&amp;amp;px=999" role="button" title="_Search_Splunk_Rendered.png" alt="_Search_Splunk_Rendered.png" /&gt;&lt;/span&gt;of&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 19:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-column-always-moves-to-end-after-rendering-search-results/m-p/548075#M155434</guid>
      <dc:creator>lancair</dc:creator>
      <dc:date>2021-04-15T19:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: _time column always moves to end after rendering search results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-column-always-moves-to-end-after-rendering-search-results/m-p/548314#M155525</link>
      <description>&lt;P&gt;does that happen if you just end the search after the timechart?&amp;nbsp; did you add the table and fields commands to troubleshoot?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 11:50:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-column-always-moves-to-end-after-rendering-search-results/m-p/548314#M155525</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2021-04-17T11:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: _time column always moves to end after rendering search results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-column-always-moves-to-end-after-rendering-search-results/m-p/550666#M156265</link>
      <description>&lt;P&gt;Yes, I the result is the same if the search is terminated as soon as the chart is rendered.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I force the order using | table _time count etc and&amp;nbsp;| untable _time count etc the order is persistent, but not conducive to creating the linechart with variable results from a single entity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 16:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-column-always-moves-to-end-after-rendering-search-results/m-p/550666#M156265</guid>
      <dc:creator>lancair</dc:creator>
      <dc:date>2021-05-06T16:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: _time column always moves to end after rendering search results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/time-column-always-moves-to-end-after-rendering-search-results/m-p/550796#M156302</link>
      <description>&lt;P&gt;maybe a browser caching issue?&amp;nbsp; have you tried other browsers?&amp;nbsp; can you reproduce with any timechart search?&lt;/P&gt;&lt;P&gt;I would be surprised if it's a bug, because timechart is heavily used.&amp;nbsp; But maybe check the release notes/known issues for your version of splunk?&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 11:48:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/time-column-always-moves-to-end-after-rendering-search-results/m-p/550796#M156302</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2021-05-07T11:48:25Z</dc:date>
    </item>
  </channel>
</rss>

