<?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: How to sort on single value in trellis? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/292445#M18572</link>
    <description>&lt;P&gt;The way to do it is by prepending a series of leading white space which will pull those values to the top/left.  Assuming that you have (or can create) a field named &lt;CODE&gt;severity&lt;/CODE&gt; where the higher the number, the worse it is, you can use code like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rename COMMENT AS "Pad with spaces to ensure that the metrics with the worst value show up first on the trellis!"
| eval YourTrellisFIeldNameHere = printf("%*s", len(YourTrellisFIeldNameHere) + severity, YourTrellisFIeldNameHere)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 30 Dec 2019 16:19:34 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-12-30T16:19:34Z</dc:date>
    <item>
      <title>How to sort on single value in trellis?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/292443#M18570</link>
      <description>&lt;P&gt;I am trying to sort the trellis boxes(single values) based on the value within them, not alphabetically. I'm unable to change the order of the boxes when i sort by any field.&lt;/P&gt;

&lt;P&gt;Current:&lt;BR /&gt;
A B C&lt;BR /&gt;
3 1 9&lt;/P&gt;

&lt;P&gt;Desired:&lt;BR /&gt;
B A C&lt;BR /&gt;
1 3 9&lt;/P&gt;

&lt;P&gt;The issue may be related to SPL-142769 from: &lt;A href="https://answers.splunk.com/answers/564804/how-can-i-change-the-sort-order-of-data-in-a-trell.html"&gt;https://answers.splunk.com/answers/564804/how-can-i-change-the-sort-order-of-data-in-a-trell.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I was unable to find this issue. Anyone with a similar experience?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 19:55:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/292443#M18570</guid>
      <dc:creator>timmym123</dc:creator>
      <dc:date>2018-03-26T19:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort on single value in trellis?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/292444#M18571</link>
      <description>&lt;P&gt;SPL-142769 is indeed the correct reference for this, to be able to sort the trellis layout. &lt;BR /&gt;
This is a still outstanding request at the moment.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 12:40:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/292444#M18571</guid>
      <dc:creator>mhoogcarspel_sp</dc:creator>
      <dc:date>2018-04-17T12:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort on single value in trellis?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/292445#M18572</link>
      <description>&lt;P&gt;The way to do it is by prepending a series of leading white space which will pull those values to the top/left.  Assuming that you have (or can create) a field named &lt;CODE&gt;severity&lt;/CODE&gt; where the higher the number, the worse it is, you can use code like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rename COMMENT AS "Pad with spaces to ensure that the metrics with the worst value show up first on the trellis!"
| eval YourTrellisFIeldNameHere = printf("%*s", len(YourTrellisFIeldNameHere) + severity, YourTrellisFIeldNameHere)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Dec 2019 16:19:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/292445#M18572</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-30T16:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort on single value in trellis?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/292446#M18573</link>
      <description>&lt;P&gt;@timmym123, please come back and try this, it will work!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 16:21:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/292446#M18573</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-30T16:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort on single value in trellis?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/548228#M37723</link>
      <description>&lt;P&gt;Can you please give a more detailed example, I am trying to use it with no sucess.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 14:44:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/548228#M37723</guid>
      <dc:creator>marcos_eng1</dc:creator>
      <dc:date>2021-04-16T14:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort on single value in trellis?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/696940#M57126</link>
      <description>&lt;P&gt;This worked smooth:&lt;/P&gt;&lt;P&gt;| stats max(avg_io_wait_time) as avg_io_wait_time by host&lt;BR /&gt;| sort avg_io_wait_time&lt;BR /&gt;| streamstats c as severity&lt;BR /&gt;| eval host = printf("%*s", len(host) + severity, host)&lt;BR /&gt;| stats max(avg_io_wait_time) as avg_io_wait_time by host&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 09:28:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/696940#M57126</guid>
      <dc:creator>jokertothequinn</dc:creator>
      <dc:date>2024-08-21T09:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort on single value in trellis?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/696941#M57127</link>
      <description>&lt;P&gt;&lt;SPAN&gt;| stats max(avg_io_wait_time) as avg_io_wait_time by host&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| sort avg_io_wait_time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| streamstats c as severity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval host = printf("%*s", len(host) + severity, host)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| stats max(avg_io_wait_time) as avg_io_wait_time by host&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 09:29:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-sort-on-single-value-in-trellis/m-p/696941#M57127</guid>
      <dc:creator>jokertothequinn</dc:creator>
      <dc:date>2024-08-21T09:29:58Z</dc:date>
    </item>
  </channel>
</rss>

