<?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: Format table columns for the values starting with minus(-). in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Format-table-columns-for-the-values-starting-with-minus/m-p/344386#M43011</link>
    <description>&lt;P&gt;Hi Giuseppe,&lt;BR /&gt;
Thank you.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;how do you want to format columns with minus? are you speaking about negative numbers?&lt;/CODE&gt;
I want to assign some color to negative values.&lt;/LI&gt;
&lt;LI&gt; 'what is enddaysago: a value in eval or in a search? are you speaking of a search of a dashboard?'
In the dashboard i have a time range picker with token name &lt;CODE&gt;oldest_tkn&lt;/CODE&gt;. I want to use it in dashboard search query as &lt;CODE&gt;enddaysago=$oldest_tkn.earliest$&lt;/CODE&gt; or &lt;CODE&gt;enddaysago=$oldest_tkn.latest$&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Mon, 24 Apr 2017 13:22:24 GMT</pubDate>
    <dc:creator>biec1</dc:creator>
    <dc:date>2017-04-24T13:22:24Z</dc:date>
    <item>
      <title>Format table columns for the values starting with minus(-).</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Format-table-columns-for-the-values-starting-with-minus/m-p/344384#M43009</link>
      <description>&lt;P&gt;Q1.  I would like to format table columns for the values starting with minus(-).&lt;BR /&gt;
Q2. Use Time range picker token for &lt;CODE&gt;enddaysago&lt;/CODE&gt; in query.&lt;BR /&gt;
       &lt;CODE&gt;enddaysago=$token.earliest$&lt;/CODE&gt; or &lt;CODE&gt;enddaysago=$token.latest$&lt;/CODE&gt; is not working.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 12:56:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Format-table-columns-for-the-values-starting-with-minus/m-p/344384#M43009</guid>
      <dc:creator>biec1</dc:creator>
      <dc:date>2017-04-24T12:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Format table columns for the values starting with minus(-).</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Format-table-columns-for-the-values-starting-with-minus/m-p/344385#M43010</link>
      <description>&lt;P&gt;HI biec1,&lt;BR /&gt;
could you share more information:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;how do you want to format columns with minus? are you speaking about negative numbers?&lt;/LI&gt;
&lt;LI&gt;what is enddaysago: a value in eval or in a search? are you speaking of a search of a dashboard?&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 13:09:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Format-table-columns-for-the-values-starting-with-minus/m-p/344385#M43010</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-04-24T13:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Format table columns for the values starting with minus(-).</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Format-table-columns-for-the-values-starting-with-minus/m-p/344386#M43011</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;BR /&gt;
Thank you.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;how do you want to format columns with minus? are you speaking about negative numbers?&lt;/CODE&gt;
I want to assign some color to negative values.&lt;/LI&gt;
&lt;LI&gt; 'what is enddaysago: a value in eval or in a search? are you speaking of a search of a dashboard?'
In the dashboard i have a time range picker with token name &lt;CODE&gt;oldest_tkn&lt;/CODE&gt;. I want to use it in dashboard search query as &lt;CODE&gt;enddaysago=$oldest_tkn.earliest$&lt;/CODE&gt; or &lt;CODE&gt;enddaysago=$oldest_tkn.latest$&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 24 Apr 2017 13:22:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Format-table-columns-for-the-values-starting-with-minus/m-p/344386#M43011</guid>
      <dc:creator>biec1</dc:creator>
      <dc:date>2017-04-24T13:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Format table columns for the values starting with minus(-).</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Format-table-columns-for-the-values-starting-with-minus/m-p/344387#M43012</link>
      <description>&lt;P&gt;Hi biec1,&lt;BR /&gt;
about colors for negative values, you can assign colors to negative values using colors in table (see &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.3/Viz/TableFormatsFormatting" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.3/Viz/TableFormatsFormatting&lt;/A&gt;)&lt;BR /&gt;
About use a time token as variable, I don't understand you need, if oldest_tkn is the name of yopu time picker and $oldest_tkn.earliest$ and $oldest_tkn.latest$ are the earliest and latest value in you search, you can insert them in you search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;earliest&amp;gt;$oldest_tkn.earliest$&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;$oldest_tkn.latest$&amp;lt;/latest&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if you want to use two different time pickers and oldest_tkn is the second one, I wasn't able to do this so I used a different approach:&lt;BR /&gt;
I created an index containing only dates (every night there is a scheduled job that add a new date) and I passed this date to the search using the usual way: &lt;CODE&gt;enddaysago=$oldest_tkn.earliest$&lt;/CODE&gt; or &lt;CODE&gt;enddaysago=$oldest_tkn.latest$&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:49:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Format-table-columns-for-the-values-starting-with-minus/m-p/344387#M43012</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T13:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Format table columns for the values starting with minus(-).</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Format-table-columns-for-the-values-starting-with-minus/m-p/344388#M43013</link>
      <description>&lt;P&gt;Splunk does not show any affect when i assign negative values with wild card(-*).&lt;BR /&gt;
Color changes only if i enter the complete negative value(-18.25). I want it to be working for all the negative values.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The following is the requirement for second query:-&lt;/STRONG&gt;&lt;BR /&gt;
For the &lt;CODE&gt;earliest&lt;/CODE&gt;,  i am able to provide time by first time picker.&lt;BR /&gt;
For &lt;CODE&gt;enddaysago&lt;/CODE&gt;, i couldn't use the second time picker. Its give some error.&lt;BR /&gt;
I don't have the option of creating an addiotnal index.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index_name host=host_name earliest=-10m
| eval fs=fs_name
| stats  first(eval(round(d_free/1024/1024,2))) as free first(eval(round(d_total/1024/1024,2))) as total by fs
| eval used=total-free 
| join fs[index=index_name host=host_name enddaysago=30
| eval fs=fs_name
| stats  first(eval(round(d_free/1024/1024,2))) as free first(eval(round(d_total/1024/1024,2))) as total by fs
| eval used_old=total-free]
| eval growth=used-used_old
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:07:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Format-table-columns-for-the-values-starting-with-minus/m-p/344388#M43013</guid>
      <dc:creator>biec1</dc:creator>
      <dc:date>2017-04-24T14:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Format table columns for the values starting with minus(-).</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Format-table-columns-for-the-values-starting-with-minus/m-p/344389#M43014</link>
      <description>&lt;P&gt;about colors:&lt;BR /&gt;
what do you mean with "assign negative values with wild card", you can assign colors to negative numbers in output columns.&lt;BR /&gt;
about enddaysago, you should use another way to pass token to the search (e.g. a dropdown list or a text box) but not time picker.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Format-table-columns-for-the-values-starting-with-minus/m-p/344389#M43014</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-04-24T14:31:11Z</dc:date>
    </item>
  </channel>
</rss>

