<?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: Show a particular column as the last column always in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Show-a-particular-column-as-the-last-column-always/m-p/481313#M193078</link>
    <description>&lt;P&gt;Another way to do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | fields - _time
| eval a=1,b=2,c=3,d=4
| eval Total=a+b+c
| table * Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Using the  &lt;CODE&gt;table&lt;/CODE&gt; command, you can force the field order. In this example, it is saying "list all the fields but put Total at the end."&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;a   b   c   d   Total
1   2   3   4   6
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 02 Mar 2020 21:17:21 GMT</pubDate>
    <dc:creator>jpolvino</dc:creator>
    <dc:date>2020-03-02T21:17:21Z</dc:date>
    <item>
      <title>Show a particular column as the last column always</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-a-particular-column-as-the-last-column-always/m-p/481310#M193075</link>
      <description>&lt;P&gt;i have a table as below.&lt;/P&gt;

&lt;P&gt;one two three four total five six&lt;/P&gt;

&lt;P&gt;i want the "total" column to be shown at the end always, like below, need help to do this..&lt;/P&gt;

&lt;P&gt;one two three four five six total.&lt;/P&gt;

&lt;P&gt;also note that the column names are dynamic and can change, but "total" column  name remains the same..&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 19:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-a-particular-column-as-the-last-column-always/m-p/481310#M193075</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2020-03-02T19:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Show a particular column as the last column always</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-a-particular-column-as-the-last-column-always/m-p/481311#M193076</link>
      <description>&lt;P&gt;did this using below:&lt;/P&gt;

&lt;P&gt;|search query&lt;BR /&gt;
|rename total as T&lt;BR /&gt;
|eval total=T&lt;BR /&gt;
|fields - T&lt;/P&gt;

&lt;P&gt;this ends up the column total at the end, right most ..&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 20:11:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-a-particular-column-as-the-last-column-always/m-p/481311#M193076</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2020-03-02T20:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Show a particular column as the last column always</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-a-particular-column-as-the-last-column-always/m-p/481312#M193077</link>
      <description>&lt;P&gt;did this using below:&lt;/P&gt;

&lt;P&gt;|search query&lt;BR /&gt;
|rename total as T&lt;BR /&gt;
|eval total=T&lt;BR /&gt;
|fields - T&lt;/P&gt;

&lt;P&gt;this ends up the column total at the end, right most ..&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 20:11:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-a-particular-column-as-the-last-column-always/m-p/481312#M193077</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2020-03-02T20:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Show a particular column as the last column always</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-a-particular-column-as-the-last-column-always/m-p/481313#M193078</link>
      <description>&lt;P&gt;Another way to do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | fields - _time
| eval a=1,b=2,c=3,d=4
| eval Total=a+b+c
| table * Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Using the  &lt;CODE&gt;table&lt;/CODE&gt; command, you can force the field order. In this example, it is saying "list all the fields but put Total at the end."&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;a   b   c   d   Total
1   2   3   4   6
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Mar 2020 21:17:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-a-particular-column-as-the-last-column-always/m-p/481313#M193078</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2020-03-02T21:17:21Z</dc:date>
    </item>
  </channel>
</rss>

