<?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: Keep numbers right-aligned after using fieldformat in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151225#M185533</link>
    <description>&lt;P&gt;@cchange and @season88481...Can you give example of query / mock data? It works fine for me in 6.4.3 as well as 6.5. Following is the run anywhere search I tested:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval TestNumber=12345678912345
| fieldformat TestNumber=tostring(TestNumber,"commas")
| table _time TestNumber
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 21 Mar 2017 11:32:10 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-03-21T11:32:10Z</dc:date>
    <item>
      <title>Keep numbers right-aligned after using fieldformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151219#M185527</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a numeric field that I convert to a comma separated number using fieldformat. The only problem is that after the conversion it changes the format from right align to left align. Since this is a numeric field, is there anyway to keep the column right-aligned with commas? It's very difficult to compare numbers within a column when they are all left-aligned. Thanks. &lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2014 17:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151219#M185527</guid>
      <dc:creator>mjosen</dc:creator>
      <dc:date>2014-07-21T17:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Keep numbers right-aligned after using fieldformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151220#M185528</link>
      <description>&lt;P&gt;Did you ever find a solution to this?  I'm looking for the same thing - some way to force the chart's text alignment to right align.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2014 15:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151220#M185528</guid>
      <dc:creator>rettops</dc:creator>
      <dc:date>2014-09-17T15:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Keep numbers right-aligned after using fieldformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151221#M185529</link>
      <description>&lt;P&gt;This is tricky, because the fields don't have any alignment, they're just strings in a conceptual table.  However, the UI tries to make some guesses on how to display them based on their content.&lt;/P&gt;

&lt;P&gt;Thus there's little in the search language that can control the UI behavior (unless we implement some kind of ui-hint-field which doesn't currently exist).  Some more direct control in the UI would be nice, but that wouldn't persist cleanly in a search for all users.  I think this boils down to an Enhancement Request.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2014 16:42:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151221#M185529</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2014-09-17T16:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Keep numbers right-aligned after using fieldformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151222#M185530</link>
      <description>&lt;P&gt;Do we have any solution in v6.5 for this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 23:28:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151222#M185530</guid>
      <dc:creator>cchange</dc:creator>
      <dc:date>2016-11-09T23:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Keep numbers right-aligned after using fieldformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151223#M185531</link>
      <description>&lt;P&gt;How are you using fieldformat? Using the example below, it appears to right format in 6.5.0 when using tostring "commas".&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats count|fields - count |eval number=10000  |fieldformat formattednumber=tostring(number,"commas")  
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Nov 2016 21:23:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151223#M185531</guid>
      <dc:creator>Flynt</dc:creator>
      <dc:date>2016-11-15T21:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Keep numbers right-aligned after using fieldformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151224#M185532</link>
      <description>&lt;P&gt;Same problem here. We are using v6.4. And column became left-aligned after applying a fieldformat command.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 01:53:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151224#M185532</guid>
      <dc:creator>season88481</dc:creator>
      <dc:date>2017-03-21T01:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Keep numbers right-aligned after using fieldformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151225#M185533</link>
      <description>&lt;P&gt;@cchange and @season88481...Can you give example of query / mock data? It works fine for me in 6.4.3 as well as 6.5. Following is the run anywhere search I tested:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval TestNumber=12345678912345
| fieldformat TestNumber=tostring(TestNumber,"commas")
| table _time TestNumber
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Mar 2017 11:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151225#M185533</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-21T11:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Keep numbers right-aligned after using fieldformat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151226#M185534</link>
      <description>&lt;P&gt;In Splunk 6.5, you can format a table column in a dashboard. You can apply both numeric and color formatting. This is preferable to using the &lt;STRONG&gt;fieldformat&lt;/STRONG&gt; command. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;fieldformat&lt;/STRONG&gt; never worked consistently (when combined with other commands) to display a formatted numeric value while preserving the underlying field as numeric.&lt;/P&gt;

&lt;P&gt;Here is the documentation showing how to &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/Viz/TableFormatsFormatting#Format_table_columns"&gt;Format table visualizations&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 06:33:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Keep-numbers-right-aligned-after-using-fieldformat/m-p/151226#M185534</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2017-03-22T06:33:49Z</dc:date>
    </item>
  </channel>
</rss>

