<?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: Annotation of graph not working when i use the below command. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Annotation-of-graph-not-working-when-i-use-the-below-command/m-p/418367#M42511</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
When you run the 2nd search do you get any output or only annotation disappears?&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 07:06:47 GMT</pubDate>
    <dc:creator>nikita_p</dc:creator>
    <dc:date>2019-03-01T07:06:47Z</dc:date>
    <item>
      <title>Annotation of graph not working when i use the below command.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Annotation-of-graph-not-working-when-i-use-the-below-command/m-p/418366#M42510</link>
      <description>&lt;P&gt;Hi all. I'm facing some issues in displaying annotations for my graphs. I suspect that something is wrong when I use 2 STREAMSTATS command. My annotation for that particular graph seems to stop working.&lt;/P&gt;

&lt;P&gt;When I run this code, it works!&lt;BR /&gt;
        &lt;SEARCH type="annotation"&gt;&lt;BR /&gt;
          &lt;QUERY&gt;index="alarm" &lt;BR /&gt;
          | streamstats avg(alarmcount) as average stdev(alarmcount) as standev&lt;BR /&gt;&lt;BR /&gt;
          | eval threeSigmaLimit = (average + (standev * 3)) &lt;BR /&gt;
          | where alarmcount &amp;gt; threeSigmaLimit | eval annotation_label = index | eval annotation_color = "0xff9900"&lt;BR /&gt;
          | table _time annotation_label alarmcount &lt;/QUERY&gt;&lt;BR /&gt;
          &lt;EARLIEST&gt;$field1.earliest$&lt;/EARLIEST&gt;&lt;BR /&gt;
          &lt;LATEST&gt;$field1.latest$&lt;/LATEST&gt;&lt;BR /&gt;
        &lt;/SEARCH&gt;&lt;/P&gt;

&lt;P&gt;However, when I run this code. The annotation disappears.&lt;BR /&gt;
        &lt;SEARCH type="annotation"&gt;&lt;BR /&gt;
          &lt;QUERY&gt;index="alarm" &lt;BR /&gt;
                  | streamstats window=2 min(alarmcount3) as minimum&lt;BR /&gt;
                  | eval is_increase=if(alarmcount3!=minimum,1,0)&lt;BR /&gt;
                  | streamstats window=7 sum(is_increase) as increases&lt;BR /&gt;
                  | where increases&amp;gt;=7&lt;BR /&gt;
                  | eval increase_index = index2 - 6 &lt;BR /&gt;
                  | eval annotation_label = increase_index| eval annotation_color = "0xff9900"&lt;BR /&gt;
                  | table _time annotation_label alarmcount3  &lt;/QUERY&gt;&lt;BR /&gt;
          &lt;EARLIEST&gt;$field1.earliest$&lt;/EARLIEST&gt;&lt;BR /&gt;
          &lt;LATEST&gt;$field1.latest$&lt;/LATEST&gt;&lt;BR /&gt;
        &lt;/SEARCH&gt;&lt;/P&gt;

&lt;P&gt;any idea whY??&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:31:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Annotation-of-graph-not-working-when-i-use-the-below-command/m-p/418366#M42510</guid>
      <dc:creator>marvinlee93</dc:creator>
      <dc:date>2020-09-29T23:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation of graph not working when i use the below command.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Annotation-of-graph-not-working-when-i-use-the-below-command/m-p/418367#M42511</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
When you run the 2nd search do you get any output or only annotation disappears?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 07:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Annotation-of-graph-not-working-when-i-use-the-below-command/m-p/418367#M42511</guid>
      <dc:creator>nikita_p</dc:creator>
      <dc:date>2019-03-01T07:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation of graph not working when i use the below command.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Annotation-of-graph-not-working-when-i-use-the-below-command/m-p/418368#M42512</link>
      <description>&lt;P&gt;Hi, I get the output but not the annotation. I'm suspecting the 'double' streamstats command is affecting it.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://i.imgur.com/JyhPc0S.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 08:48:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Annotation-of-graph-not-working-when-i-use-the-below-command/m-p/418368#M42512</guid>
      <dc:creator>marvinlee93</dc:creator>
      <dc:date>2019-03-01T08:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation of graph not working when i use the below command.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Annotation-of-graph-not-working-when-i-use-the-below-command/m-p/418369#M42513</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Don't run your search completely but try running it part by part so that you can find which part of your search is going wrong.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 11:11:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Annotation-of-graph-not-working-when-i-use-the-below-command/m-p/418369#M42513</guid>
      <dc:creator>nikita_p</dc:creator>
      <dc:date>2019-03-01T11:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation of graph not working when i use the below command.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Annotation-of-graph-not-working-when-i-use-the-below-command/m-p/418370#M42514</link>
      <description>&lt;P&gt;Yup! I did. I realised that if I remove the '2nd' streamstats command, everything works. Hmmm... I really think that it isn't the code that has a problem here..&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 01:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Annotation-of-graph-not-working-when-i-use-the-below-command/m-p/418370#M42514</guid>
      <dc:creator>marvinlee93</dc:creator>
      <dc:date>2019-03-04T01:51:04Z</dc:date>
    </item>
  </channel>
</rss>

