<?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 Trellis Dashboard define rows? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Trellis-Dashboard-define-rows/m-p/521494#M35137</link>
    <description>&lt;P&gt;So I am working off a query based off the Splunk app for *nix.&amp;nbsp; It uses the interfaces.sh.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;query: index=os sourcetype=interfaces host=server Name=eth* | head 8 | eval status = if (RXbytes = "0", "UP", 'DOWN") | stats values(RXbytes) by Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I want to show the 8 interfaces, have the # of RX Bytes in each Single Value and color coded for UP/DOWN - which I set via the dashboard option&amp;nbsp;&lt;/P&gt;&lt;P&gt;0-1 - Red&lt;/P&gt;&lt;P&gt;1-500 - Yellow&lt;/P&gt;&lt;P&gt;500 - Max - Green&lt;/P&gt;&lt;P&gt;Also starting to wonder if I really need the eval statement in there?&amp;nbsp; I&lt;/P&gt;&lt;P&gt;I would like it to look like&lt;/P&gt;&lt;P&gt;ETH1&amp;nbsp; &amp;nbsp;ETH 2&amp;nbsp; ETH 3&amp;nbsp; ETH 4&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ETH 5&amp;nbsp; ETH 6&amp;nbsp; ETH 7&amp;nbsp; ETH 8&lt;/P&gt;&lt;P&gt;vice&lt;/P&gt;&lt;P&gt;ETH1 ETH2 ETH 3 ETH 4 ETH 5 ETH 6&lt;/P&gt;&lt;P&gt;ETH 7 ETH 8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is that possible, sorry system is not connected so its kind of a pain to get screen shots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2020 15:39:37 GMT</pubDate>
    <dc:creator>ddecker03</dc:creator>
    <dc:date>2020-09-25T15:39:37Z</dc:date>
    <item>
      <title>Trellis Dashboard define rows?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Trellis-Dashboard-define-rows/m-p/521494#M35137</link>
      <description>&lt;P&gt;So I am working off a query based off the Splunk app for *nix.&amp;nbsp; It uses the interfaces.sh.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;query: index=os sourcetype=interfaces host=server Name=eth* | head 8 | eval status = if (RXbytes = "0", "UP", 'DOWN") | stats values(RXbytes) by Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I want to show the 8 interfaces, have the # of RX Bytes in each Single Value and color coded for UP/DOWN - which I set via the dashboard option&amp;nbsp;&lt;/P&gt;&lt;P&gt;0-1 - Red&lt;/P&gt;&lt;P&gt;1-500 - Yellow&lt;/P&gt;&lt;P&gt;500 - Max - Green&lt;/P&gt;&lt;P&gt;Also starting to wonder if I really need the eval statement in there?&amp;nbsp; I&lt;/P&gt;&lt;P&gt;I would like it to look like&lt;/P&gt;&lt;P&gt;ETH1&amp;nbsp; &amp;nbsp;ETH 2&amp;nbsp; ETH 3&amp;nbsp; ETH 4&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ETH 5&amp;nbsp; ETH 6&amp;nbsp; ETH 7&amp;nbsp; ETH 8&lt;/P&gt;&lt;P&gt;vice&lt;/P&gt;&lt;P&gt;ETH1 ETH2 ETH 3 ETH 4 ETH 5 ETH 6&lt;/P&gt;&lt;P&gt;ETH 7 ETH 8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is that possible, sorry system is not connected so its kind of a pain to get screen shots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 15:39:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Trellis-Dashboard-define-rows/m-p/521494#M35137</guid>
      <dc:creator>ddecker03</dc:creator>
      <dc:date>2020-09-25T15:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trellis Dashboard define rows?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Trellis-Dashboard-define-rows/m-p/522086#M35236</link>
      <description>&lt;P&gt;I think the following search may do better?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=os sourcetype=interfaces host=server Name=eth* 
| stats sum(RXbytes) AS rxbytes by Name&lt;/LI-CODE&gt;&lt;P&gt;By doing the 'head 8' up front, you were just taking the first 8 rows.&amp;nbsp; But&amp;nbsp; do you know for sure what 8 rows it is?&amp;nbsp; Is 8 exactly and precisely correct always and is it always the first 8?&amp;nbsp; Just saying that feels a little suspicious, so I don't do that.&lt;/P&gt;&lt;P&gt;If you want to trim it back to 8,&amp;nbsp; that's of course perfectly fine, but I'd do it *after* the stats.&amp;nbsp; Then at least you'd know what order it's in (by name).&lt;/P&gt;&lt;P&gt;Or if you want to do it to the 8 most active ones, add&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort - rxbytes
| head 8&lt;/LI-CODE&gt;&lt;P&gt;to the end of the above.&lt;/P&gt;&lt;P&gt;ALSO I fixed something.&amp;nbsp; I'm not sure you wanted "values()" for the RXbytes.&amp;nbsp; I mean, maybe, but it again feels suspiciously accidental that your head 8 worked just right so that you had one and only one entry for each name, because if for some reason you had two, you'd have an multi-valued field there, like "18737, 7663" instead of the sum of the two.&lt;/P&gt;&lt;P&gt;So, maybe all this is not important, but I feel that even if it isn't right now, it will be some day when you try to extend this process to a server with only 4 NICs.&amp;nbsp; Or 12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To you last question on reordering the columns/rows of a trellis. My understanding is nope, you get what you get.&amp;nbsp; Indeed, it also pages at a certain amount, and that amount of baby-trellis pictures that it makes you go to a second page for? Yeah, that's not even an evenly filled out row unless you accidentally made your browser the right size.&amp;nbsp; Nope, sometimes it's midway through a row that it just stops and tells you to click for the next page.&amp;nbsp; *sigh*&amp;nbsp; Wouldn't it be great to have an option like "columns=4 rows=2 overall=8" or some combination thereof?&lt;/P&gt;&lt;P&gt;In fact, that's such a good idea that I just wrote it up in Splunk Ideas. Go vote on it! &lt;A href="https://ideas.splunk.com/ideas/EID-I-586" target="_blank"&gt;https://ideas.splunk.com/ideas/EID-I-586&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Trellis-Dashboard-define-rows/m-p/522086#M35236</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2020-09-29T19:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trellis Dashboard define rows?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Trellis-Dashboard-define-rows/m-p/522186#M35245</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/69100"&gt;@ddecker03&lt;/a&gt;&amp;nbsp; refer to one of my older answers to set the width of Trellis panels dynamically based on number of results.&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Trellis-to-align-automatically-to-the-panel-size/m-p/497432" target="_blank"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/Trellis-to-align-automatically-to-the-panel-size/m-p/497432&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;However, since you want icon/value/color kind of visualization, you may try out Status Indicator Custom Visualization:&amp;nbsp;&lt;A href="https://splunkbase.splunk.com/app/3119/" target="_blank"&gt;https://splunkbase.splunk.com/app/3119/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Following is a run anywhere example with some Text Box based CSS configuration for you to test out whether you want single row or two rows of trellis (with 11% and 12% width respectively)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2020-09-30 at 1.54.08 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11051i79613F05F15FD690/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-09-30 at 1.54.08 PM.png" alt="Screen Shot 2020-09-30 at 1.54.08 PM.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screen Shot 2020-09-30 at 1.54.08 PM.png&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2020-09-30 at 1.53.54 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11052i0E611620B18D2FF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-09-30 at 1.53.54 PM.png" alt="Screen Shot 2020-09-30 at 1.53.54 PM.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screen Shot 2020-09-30 at 1.53.54 PM.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Following is the required Simple XML run anywhere example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Trellis Width&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="field1"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="text" token="trellisWidth" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Trellis Width %&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;22&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="text" token="trellisHeight" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Trellis Height&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;80px&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="text" token="trellisFontSize" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Trellis Font Size&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;60px&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #my_single_trellis div.viz-facet{
            $tokWidth$
            height: $trellisHeight$ !important;
          }
          div.splunk-status-indicator{
            font-size: $trellisFontSize$ !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
      &amp;lt;viz id="my_single_trellis" type="status_indicator_app.status_indicator"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;progress&amp;gt;
            &amp;lt;condition match="$job.resultCount$==8"&amp;gt;
              &amp;lt;set token="tokWidth"&amp;gt;width: $trellisWidth$% !important;&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition&amp;gt;
              &amp;lt;set token="tokWidth"&amp;gt;width: initial;&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/progress&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd component IN ("*or", "*er")
| fields component date_second
| dedup component
| head 8
| rename date_second as RXbytes
| eval icon=if(RXbytes=0,"check-circle","times-circle")
| eval color=case(RXbytes&amp;amp;gt;=0 AND RXbytes&amp;amp;lt;1,"red",
                RXbytes&amp;amp;gt;=1 AND RXbytes&amp;amp;lt;500,"orange",
                RXbytes&amp;amp;gt;=500,"green")
| stats last(RXbytes) as RXbytes last(icon) as icon last(color) as color by component
| fields - "$trellisWidth$" "$trellisHeight$" "$trellisFontSize$"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="height"&amp;gt;239&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.colorBy"&amp;gt;field_value&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.fillTarget"&amp;gt;background&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.fixIcon"&amp;gt;warning&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.icon"&amp;gt;field_value&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.precision"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.showOption"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.staticColor"&amp;gt;#555&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.useColors"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="status_indicator_app.status_indicator.useThousandSeparator"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.enabled"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.scales.shared"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.size"&amp;gt;medium&amp;lt;/option&amp;gt;
      &amp;lt;/viz&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 08:28:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Trellis-Dashboard-define-rows/m-p/522186#M35245</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-30T08:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trellis Dashboard define rows?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Trellis-Dashboard-define-rows/m-p/524446#M35511</link>
      <description>&lt;P&gt;Thanks Everyone, will have to try these solutions out.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are probably right Richfez, I just created a search that provided what I was looking for, have not validated that it will always provide the correct data :).&amp;nbsp; Its the initial stages.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 15:18:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Trellis-Dashboard-define-rows/m-p/524446#M35511</guid>
      <dc:creator>ddecker03</dc:creator>
      <dc:date>2020-10-13T15:18:16Z</dc:date>
    </item>
  </channel>
</rss>

