<?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: Need assistance to show baseline in line chart if using trellis in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-assistance-to-show-baseline-in-line-chart-if-using-trellis/m-p/703407#M57659</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/271320"&gt;@dixa0123&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;SplunkWeb uses hidden field attributes to identify aggregations for trellis mode in Simple XML. (I haven't tried this in Dashboard Studio.) Here's a sample search that summarizes data, calculates a global mean, reformats the results, and then uses the global mean as an overlay in trellis mode:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;index=_internal 
| timechart limit=10 span=1m usenull=f useother=f count as x by component 
| untable _time component x
``` calculate a global mean ```
| eventstats avg(x) as tmp 
``` append temporary events to hold the mean as a series ```
| appendpipe 
    [| stats values(tmp) as x by _time
    | eval component="tmp" ]
``` reformat the results for trellis ```
| xyseries _time component x
``` disassociate the tmp field from aggregations to use as an overlay ```
| eval baseline=tmp
``` remove the tmp field ```
| fields - tmp&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Nov 2024 17:24:43 GMT</pubDate>
    <dc:creator>tscroggins</dc:creator>
    <dc:date>2024-11-02T17:24:43Z</dc:date>
    <item>
      <title>Need assistance to show baseline in line chart if using trellis</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-assistance-to-show-baseline-in-line-chart-if-using-trellis/m-p/696805#M57658</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dixa0123_0-1724136452053.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32316iF6475784BEAB6806/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dixa0123_0-1724136452053.png" alt="dixa0123_0-1724136452053.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have created dashboard that shows total log volumes for different sources across 7 days. I am using line chart and&amp;nbsp;trellis. As shown in pic, I want to add median/average value of logs as horizonal red line. Is there a way to achieve it ? Final aim is to be able to observe pattern and median/avg log volumes of certain week that ultimately helps to define baseline of log volume for each source.&lt;/P&gt;&lt;P&gt;below is the SPL I am using,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| tstats count as log_count where index=myindex AND hostname="colla" AND source=* earliest=--7d@d latest=now by _time, source | timechart span=1d sum(log_count) by source&lt;/P&gt;&lt;P&gt;Any suggestions would be highly appreciated. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 06:51:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Need-assistance-to-show-baseline-in-line-chart-if-using-trellis/m-p/696805#M57658</guid>
      <dc:creator>dixa0123</dc:creator>
      <dc:date>2024-08-20T06:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance to show baseline in line chart if using trellis</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Need-assistance-to-show-baseline-in-line-chart-if-using-trellis/m-p/703407#M57659</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/271320"&gt;@dixa0123&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;SplunkWeb uses hidden field attributes to identify aggregations for trellis mode in Simple XML. (I haven't tried this in Dashboard Studio.) Here's a sample search that summarizes data, calculates a global mean, reformats the results, and then uses the global mean as an overlay in trellis mode:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;index=_internal 
| timechart limit=10 span=1m usenull=f useother=f count as x by component 
| untable _time component x
``` calculate a global mean ```
| eventstats avg(x) as tmp 
``` append temporary events to hold the mean as a series ```
| appendpipe 
    [| stats values(tmp) as x by _time
    | eval component="tmp" ]
``` reformat the results for trellis ```
| xyseries _time component x
``` disassociate the tmp field from aggregations to use as an overlay ```
| eval baseline=tmp
``` remove the tmp field ```
| fields - tmp&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 17:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Need-assistance-to-show-baseline-in-line-chart-if-using-trellis/m-p/703407#M57659</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2024-11-02T17:24:43Z</dc:date>
    </item>
  </channel>
</rss>

