<?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 Ordering an alpha numerical column and highlighting in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Ordering-an-alpha-numerical-column-and-highlighting/m-p/563688#M196371</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have the following dataset:&lt;/P&gt;&lt;TABLE width="231"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;Name&amp;nbsp;&lt;/TD&gt;&lt;TD width="64"&gt;Title&lt;/TD&gt;&lt;TD width="103"&gt;DaysRemaining&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Tom&lt;/TD&gt;&lt;TD&gt;West&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Martin&lt;/TD&gt;&lt;TD&gt;error&lt;/TD&gt;&lt;TD&gt;error&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Billy&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Winter&lt;/TD&gt;&lt;TD&gt;5103&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Will&lt;/TD&gt;&lt;TD&gt;Fable&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there is a way to order the DaysRemaining field by first showing the 'error' value on the top and then ordering in ascending order - i.e. 2,50 and 5103?&lt;BR /&gt;&lt;BR /&gt;In addition, is there a way to only highlight the DaysRemaining field, in which 'error' is highlighted red, values between 0-30 are also red, values between 30 - 100 are orange and values above 100 are green?&lt;BR /&gt;&lt;BR /&gt;Desired outcome:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="e.g..PNG" style="width: 233px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15609i85EB167722E5F403/image-size/medium?v=v2&amp;amp;px=400" role="button" title="e.g..PNG" alt="e.g..PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any and all help greatly!&lt;/P&gt;</description>
    <pubDate>Tue, 17 Aug 2021 16:34:05 GMT</pubDate>
    <dc:creator>shakSplunk</dc:creator>
    <dc:date>2021-08-17T16:34:05Z</dc:date>
    <item>
      <title>Ordering an alpha numerical column and highlighting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ordering-an-alpha-numerical-column-and-highlighting/m-p/563688#M196371</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have the following dataset:&lt;/P&gt;&lt;TABLE width="231"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;Name&amp;nbsp;&lt;/TD&gt;&lt;TD width="64"&gt;Title&lt;/TD&gt;&lt;TD width="103"&gt;DaysRemaining&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Tom&lt;/TD&gt;&lt;TD&gt;West&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Martin&lt;/TD&gt;&lt;TD&gt;error&lt;/TD&gt;&lt;TD&gt;error&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Billy&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Winter&lt;/TD&gt;&lt;TD&gt;5103&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Will&lt;/TD&gt;&lt;TD&gt;Fable&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there is a way to order the DaysRemaining field by first showing the 'error' value on the top and then ordering in ascending order - i.e. 2,50 and 5103?&lt;BR /&gt;&lt;BR /&gt;In addition, is there a way to only highlight the DaysRemaining field, in which 'error' is highlighted red, values between 0-30 are also red, values between 30 - 100 are orange and values above 100 are green?&lt;BR /&gt;&lt;BR /&gt;Desired outcome:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="e.g..PNG" style="width: 233px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15609i85EB167722E5F403/image-size/medium?v=v2&amp;amp;px=400" role="button" title="e.g..PNG" alt="e.g..PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any and all help greatly!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 16:34:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ordering-an-alpha-numerical-column-and-highlighting/m-p/563688#M196371</guid>
      <dc:creator>shakSplunk</dc:creator>
      <dc:date>2021-08-17T16:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering an alpha numerical column and highlighting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ordering-an-alpha-numerical-column-and-highlighting/m-p/563723#M196384</link>
      <description>&lt;P&gt;By default, sort will put alpha after numbers, so you will have to create a new field to sort on, which is dependent on the value of DaysRemaining. Use this code&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval sort=if(DaysRemaining&amp;gt;0, DaysRemaining, -999)
| sort sort DaysRemaining
| fields - sort&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;the sort field will be -999 if the DaysRemaining is alpha, so the sort will then sort on that field, which you can then remove.&lt;/P&gt;&lt;P&gt;As for colours, you can set colours for the numeric values, but to get the text field coloured also, I suspect you'll have to use CSS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 23:22:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ordering-an-alpha-numerical-column-and-highlighting/m-p/563723#M196384</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-08-17T23:22:46Z</dc:date>
    </item>
  </channel>
</rss>

