<?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 Conditionally Adjusting Line Chart Colors/Adding Distinction in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Conditionally-Adjusting-Line-Chart-Colors-Adding-Distinction/m-p/433070#M28548</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I have a line chart that is built similarly to the splunk article title "Finding and removing outliers" (not enough karma to post the link.....). In any case, I have a bunch of outliers that are defined by the isOutlier eval statement. I would like some method to outline these on the blue CON line a bit better. As you can see, as you drag the mouse across the chart, I have it set so it will provide insight of all the different data at that time frame. The bottom orange line spikes to 1 if there is an outlier above the upper line, or if it is below the lowerl line. &lt;/P&gt;

&lt;P&gt;Is there some way to highlight the CON value in a different color or something where these outliers exist? &lt;/P&gt;

&lt;P&gt;How do I create a drilldown so that when someone clicks on the data point that a search is run to show all the events at the time where the data point was?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=data sourcetype=json
| bin _time span=5m
| streamstats count(seen.indicator) as "Count" by seen.indicator _time
| eventstats avg(Count) as "newAVG" by seen.indicator
| eventstats stdev(Count) as "newSTD" by seen.indicator
| eventstats count(seen.indicator) as "Temp" by seen.indicator _time
| eval upper = newAVG+(newSTD*1.2)
| eval lower = newAVG-(newSTD*1.2)
| eval isOutlier=if(Temp &amp;lt; lower OR Temp &amp;gt; upper, 1, 0)
| timechart span=5m values(Temp) as CON, eval(values(upper)) as upperl, eval(values(lower)) as lowerl, eval(values(isOutlier)) as Outliers by seen.indicator usenull=f useother=f
| filldown
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7225iB2E9938B24CD0B58/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2019 14:42:21 GMT</pubDate>
    <dc:creator>cxr5971</dc:creator>
    <dc:date>2019-06-18T14:42:21Z</dc:date>
    <item>
      <title>Conditionally Adjusting Line Chart Colors/Adding Distinction</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Conditionally-Adjusting-Line-Chart-Colors-Adding-Distinction/m-p/433070#M28548</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I have a line chart that is built similarly to the splunk article title "Finding and removing outliers" (not enough karma to post the link.....). In any case, I have a bunch of outliers that are defined by the isOutlier eval statement. I would like some method to outline these on the blue CON line a bit better. As you can see, as you drag the mouse across the chart, I have it set so it will provide insight of all the different data at that time frame. The bottom orange line spikes to 1 if there is an outlier above the upper line, or if it is below the lowerl line. &lt;/P&gt;

&lt;P&gt;Is there some way to highlight the CON value in a different color or something where these outliers exist? &lt;/P&gt;

&lt;P&gt;How do I create a drilldown so that when someone clicks on the data point that a search is run to show all the events at the time where the data point was?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=data sourcetype=json
| bin _time span=5m
| streamstats count(seen.indicator) as "Count" by seen.indicator _time
| eventstats avg(Count) as "newAVG" by seen.indicator
| eventstats stdev(Count) as "newSTD" by seen.indicator
| eventstats count(seen.indicator) as "Temp" by seen.indicator _time
| eval upper = newAVG+(newSTD*1.2)
| eval lower = newAVG-(newSTD*1.2)
| eval isOutlier=if(Temp &amp;lt; lower OR Temp &amp;gt; upper, 1, 0)
| timechart span=5m values(Temp) as CON, eval(values(upper)) as upperl, eval(values(lower)) as lowerl, eval(values(isOutlier)) as Outliers by seen.indicator usenull=f useother=f
| filldown
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7225iB2E9938B24CD0B58/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 14:42:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Conditionally-Adjusting-Line-Chart-Colors-Adding-Distinction/m-p/433070#M28548</guid>
      <dc:creator>cxr5971</dc:creator>
      <dc:date>2019-06-18T14:42:21Z</dc:date>
    </item>
  </channel>
</rss>

