<?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: Constant Horizontal Line On Line Chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37764#M8516</link>
    <description>&lt;P&gt;I know this is a really old post- but couldn't find a similar question. &lt;/P&gt;

&lt;P&gt;The "| eval SLA=5 " works fine, but how could you do it if you wanted the value "5" to come from a search? eg:&lt;/P&gt;

&lt;P&gt;splunk_server=splunk*unix* index=_internal sourcetype="splunkd" component="LicenseUsage" pool="EFX Prod" NOT type=RolloverSummary | eval Gb=b/1024/1024/1024| timechart span=1h sum(Gb) as total | streamstats sum(total) AS cumulative_total | predict cumulative_total   | appendcols [| rest /services/licenser/pools | where like(title,"%EFX Prod%") | eval quota=quota/1024/1024/1024|  fields quota] | eval quota2=quota| eval quota=150&lt;/P&gt;

&lt;P&gt;Here I'm trying to add a horizontal line for the quota, ie the result from:&lt;BR /&gt;
| rest /services/licenser/pools | where like(title,"%EFX Prod%") | eval quota=quota/1024/1024/1024|  fields quota&lt;/P&gt;

&lt;P&gt;"quota" works fine&lt;BR /&gt;
"quota2" just displays as a single point&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:43:06 GMT</pubDate>
    <dc:creator>kyleharrison</dc:creator>
    <dc:date>2020-09-28T18:43:06Z</dc:date>
    <item>
      <title>Constant Horizontal Line On Line Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37760#M8512</link>
      <description>&lt;P&gt;I'm putting together a line chart measuring application response time in milliseconds. What I would like to is put a horizontal line on the chart which is a constant value. This represents an SLA. This will allow us to determine whether the SLA has been exceeded/breached. Any thoughts on how to do this&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2010 19:36:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37760#M8512</guid>
      <dc:creator>sajbutler</dc:creator>
      <dc:date>2010-08-26T19:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Constant Horizontal Line On Line Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37761#M8513</link>
      <description>&lt;P&gt;You can simply add a series to the chart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval SLA=5 | timechart avg(responsetime) as responsetime, first(SLA) as SLA
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Aug 2010 20:19:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37761#M8513</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-08-26T20:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Constant Horizontal Line On Line Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37762#M8514</link>
      <description>&lt;P&gt;I'd usually add the series after the fact:&lt;/P&gt;

&lt;P&gt;... | timechart avg(responsetime) as responsetime | eval SLA = 5&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2010 21:58:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37762#M8514</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-26T21:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Constant Horizontal Line On Line Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37763#M8515</link>
      <description>&lt;P&gt;Having the eval command afterwards allows the search to be accelerated.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2013 14:29:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37763#M8515</guid>
      <dc:creator>AlexMcDuffMille</dc:creator>
      <dc:date>2013-10-14T14:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Constant Horizontal Line On Line Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37764#M8516</link>
      <description>&lt;P&gt;I know this is a really old post- but couldn't find a similar question. &lt;/P&gt;

&lt;P&gt;The "| eval SLA=5 " works fine, but how could you do it if you wanted the value "5" to come from a search? eg:&lt;/P&gt;

&lt;P&gt;splunk_server=splunk*unix* index=_internal sourcetype="splunkd" component="LicenseUsage" pool="EFX Prod" NOT type=RolloverSummary | eval Gb=b/1024/1024/1024| timechart span=1h sum(Gb) as total | streamstats sum(total) AS cumulative_total | predict cumulative_total   | appendcols [| rest /services/licenser/pools | where like(title,"%EFX Prod%") | eval quota=quota/1024/1024/1024|  fields quota] | eval quota2=quota| eval quota=150&lt;/P&gt;

&lt;P&gt;Here I'm trying to add a horizontal line for the quota, ie the result from:&lt;BR /&gt;
| rest /services/licenser/pools | where like(title,"%EFX Prod%") | eval quota=quota/1024/1024/1024|  fields quota&lt;/P&gt;

&lt;P&gt;"quota" works fine&lt;BR /&gt;
"quota2" just displays as a single point&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37764#M8516</guid>
      <dc:creator>kyleharrison</dc:creator>
      <dc:date>2020-09-28T18:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Constant Horizontal Line On Line Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37765#M8517</link>
      <description>&lt;P&gt;figured it out:&lt;/P&gt;

&lt;P&gt;splunk_server=splunk*unix* index=_internal sourcetype="splunkd" component="LicenseUsage" pool="EFX Prod" NOT type=RolloverSummary | eval Gb=b/1024/1024/1024| timechart span=1h sum(Gb) as total | streamstats sum(total) AS cumulative_total | predict cumulative_total   | eval quota = [| rest /services/licenser/pools | where like(title,"%EFX Prod%") | eval quota=quota/1024/1024/1024| fields quota | head 1 | return $quota]  &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:43:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37765#M8517</guid>
      <dc:creator>kyleharrison</dc:creator>
      <dc:date>2020-09-28T18:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Constant Horizontal Line On Line Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37766#M8518</link>
      <description>&lt;P&gt;I managed to fill the gaps with the make &lt;STRONG&gt;continuous&lt;/STRONG&gt; and &lt;STRONG&gt;fullnull&lt;/STRONG&gt; commands&lt;/P&gt;

&lt;P&gt;... | eval SLA=5 | timechart avg(responsetime) as responsetime, first(SLA) as SLA &lt;STRONG&gt;| table _time, responsetime, sla  | makecontinuous _time span=10m | fillnull value=5 SLA&lt;/STRONG&gt;&lt;BR /&gt;
,I managed to fill the gaps with the make &lt;STRONG&gt;continuous&lt;/STRONG&gt; and &lt;STRONG&gt;fullnull&lt;/STRONG&gt; commands&lt;/P&gt;

&lt;P&gt;| eval SLA=5 | timechart avg(responsetime) as responsetime, first(SLA) as SLA&lt;BR /&gt;
&lt;STRONG&gt;| table _time, responsetime, sla  | makecontinuous _time span=10m | fillnull value=5 SLA&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 09:57:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Constant-Horizontal-Line-On-Line-Chart/m-p/37766#M8518</guid>
      <dc:creator>splunkmaesi</dc:creator>
      <dc:date>2016-12-17T09:57:38Z</dc:date>
    </item>
  </channel>
</rss>

