<?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 how to add a horizontal line to a column/bar chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102419#M26453</link>
    <description>&lt;P&gt;I want to draw a horizontal line across the following column time chart made out of a saved search&lt;/P&gt;

&lt;P&gt;| timechart span=1mon avg(numDropPkt) as avgDrop BY host&lt;/P&gt;

&lt;P&gt;Adding " |eval threashold = 100" gave me a few more column bars of value 100 (and the number of newly added columns is equal to the number of months searched), not a horizonal line.&lt;/P&gt;

&lt;P&gt;The following link asked  the same question, but the answer is very high level.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/71142/horizontal-line-in-flash-bar-chart"&gt;http://splunk-base.splunk.com/answers/71142/horizontal-line-in-flash-bar-chart&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jan 2013 00:51:39 GMT</pubDate>
    <dc:creator>myli12</dc:creator>
    <dc:date>2013-01-29T00:51:39Z</dc:date>
    <item>
      <title>how to add a horizontal line to a column/bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102419#M26453</link>
      <description>&lt;P&gt;I want to draw a horizontal line across the following column time chart made out of a saved search&lt;/P&gt;

&lt;P&gt;| timechart span=1mon avg(numDropPkt) as avgDrop BY host&lt;/P&gt;

&lt;P&gt;Adding " |eval threashold = 100" gave me a few more column bars of value 100 (and the number of newly added columns is equal to the number of months searched), not a horizonal line.&lt;/P&gt;

&lt;P&gt;The following link asked  the same question, but the answer is very high level.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/71142/horizontal-line-in-flash-bar-chart"&gt;http://splunk-base.splunk.com/answers/71142/horizontal-line-in-flash-bar-chart&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 00:51:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102419#M26453</guid>
      <dc:creator>myli12</dc:creator>
      <dc:date>2013-01-29T00:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a horizontal line to a column/bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102420#M26454</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| append [ sourcetype=yoursourcetype  | addinfo | where _time &amp;gt;= info_min_time AND time &amp;lt;= info_max_time
    | eval numDropPkt = 100 | eval host="Threshold" ]
| timechart span=1mon avg(numDropPkt) as avgDrop by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;BTW, the only purpose of the &lt;CODE&gt;sourcetype=yoursourcetype&lt;/CODE&gt; is to obtain some events to transform into the values that I want. Any sourcetype would work if it has at least one event per month over the duration that you are searching - and fewer events would be better.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 05:59:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102420#M26454</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-01-29T05:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a horizontal line to a column/bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102421#M26455</link>
      <description>&lt;P&gt;Thanks! I tried the scripts and ensured "sourcetype=yoursourcetype" has events per month, however, there is no horizontal line showing up in the chart.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2013 00:39:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102421#M26455</guid>
      <dc:creator>myli12</dc:creator>
      <dc:date>2013-02-05T00:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a horizontal line to a column/bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102422#M26456</link>
      <description>&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/9053/example-of-chart-overlay"&gt;http://splunk-base.splunk.com/answers/9053/example-of-chart-overlay&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;There is an answer for how to do it with a flashchart. It cannot be done with a JSChart. &lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2013 00:51:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102422#M26456</guid>
      <dc:creator>tfletcher_splun</dc:creator>
      <dc:date>2013-02-05T00:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a horizontal line to a column/bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102423#M26457</link>
      <description>&lt;P&gt;This is how to format for charting use. You still need to have the data as results from your search be it from an append or from an eval.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2013 00:53:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102423#M26457</guid>
      <dc:creator>tfletcher_splun</dc:creator>
      <dc:date>2013-02-05T00:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a horizontal line to a column/bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102424#M26458</link>
      <description>&lt;P&gt;How many hosts are you trying to show in this chart?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2013 10:30:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102424#M26458</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-02-05T10:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a horizontal line to a column/bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102425#M26459</link>
      <description>&lt;P&gt;It was 9 in one example but can vary.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2013 23:17:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102425#M26459</guid>
      <dc:creator>myli12</dc:creator>
      <dc:date>2013-02-05T23:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a horizontal line to a column/bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102426#M26460</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;yoursearchhere&lt;BR /&gt;
| append [ sourcetype=yoursourcetype  | addinfo | where _time &amp;gt;= info_min_time AND time &amp;lt;= info_max_time&lt;BR /&gt;
    | eval numDropPkt = 100 | eval host="Threshold" ]&lt;BR /&gt;
| timechart limit=0 cont=T fixedrange=F span=1mon avg(numDropPkt) as avgDrop by host&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And look at the Table View tab.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2013 21:43:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102426#M26460</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-02-06T21:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a horizontal line to a column/bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102427#M26461</link>
      <description>&lt;P&gt;Thank you very much for your willingness to help. There is still no line show in the column graph. I am not sure why the table view tab, as I'd like a graph rather than a table report. And also since I do not understand the logic behind the script, I cannot really test/twist your script to fit my data. It could be just I did not use your script correctly.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2013 00:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102427#M26461</guid>
      <dc:creator>myli12</dc:creator>
      <dc:date>2013-02-08T00:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a horizontal line to a column/bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102428#M26462</link>
      <description>&lt;P&gt;I am trying to do a similar thing here-- simply draw a line across my graph showing a "full_capacity" line. &lt;BR /&gt;
I've tried &lt;BR /&gt;
mysearch | eval capacity=100 | stats max(capacity)   to no avail. &lt;BR /&gt;
Also capacity=tonumber(100) is no different. &lt;BR /&gt;
A new way to do this? &lt;BR /&gt;
Alternatively, to clearly label the top of my chart's Y-axis?  Choosing the value  in the dashboard UI doesn't label the top.&lt;BR /&gt;&lt;BR /&gt;
Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2015 20:43:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-a-horizontal-line-to-a-column-bar-chart/m-p/102428#M26462</guid>
      <dc:creator>rabitoblanco</dc:creator>
      <dc:date>2015-03-27T20:43:36Z</dc:date>
    </item>
  </channel>
</rss>

