<?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: Add a Line into a TimeChart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Add-a-Line-into-a-TimeChart/m-p/81677#M181872</link>
    <description>&lt;UL&gt;
&lt;LI&gt;replace all the GB_limit = 1 by 80&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 09 Oct 2012 14:11:32 GMT</pubDate>
    <dc:creator>quatral</dc:creator>
    <dc:date>2012-10-09T14:11:32Z</dc:date>
    <item>
      <title>Add a Line into a TimeChart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-Line-into-a-TimeChart/m-p/81674#M181869</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to develop a TIMECHART that represent a Download/Upload bandtwidth from &lt;EM&gt;bandwidthd&lt;/EM&gt; log. The TIMECHART should have total bandwidth for each months of the year and a line representing the limit per month.&lt;/P&gt;

&lt;P&gt;I've try to make an EVAL that set a value to that limit, heres the code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="x" sourcetype="bandwidthd" | EVAL val_total_giga_bytes_limit=80 | EVAL val_total_giga_bytes_sent=cus_bndw_total_bytes_sent/1024/1024/1024 | TIMECHART SPAN=1month sum(val_total_giga_bytes_sent) AS "Giga-Octet envoyé" avg(val_total_giga_bytes_limit) AS "Limite"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem is, when I've got NULL value (on my test only September as events log), the "Limit" doesn't show properly.&lt;/P&gt;

&lt;P&gt;Is there any options somewhere that could be done? I've tried in dashboard with the Null Value manage as zero but I just want the SUM to be at zero but the AVG still set at 80.&lt;/P&gt;

&lt;P&gt;Sorry for my poor english skills.&lt;/P&gt;

&lt;P&gt;Drew&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2012 14:12:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-Line-into-a-TimeChart/m-p/81674#M181869</guid>
      <dc:creator>quatral</dc:creator>
      <dc:date>2012-10-05T14:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add a Line into a TimeChart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-Line-into-a-TimeChart/m-p/81675#M181870</link>
      <description>&lt;P&gt;Have you tried fillnull (if your 'bad' events look like &lt;CODE&gt;a= b= c=&lt;/CODE&gt; etc)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="x" sourcetype="bandwidthd" 
| eval GB_limit=80 
| fillnull cus_bndw_total_bytes_sent
| eval GB_sent = cus_bndw_total_bytes_sent/1024/1024/1024 
| timechart span=1month sum(GB_sent) AS "Giga-Octet envoyé" avg(GB_limit) AS "Limite"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or if the 'bad' events look like &lt;CODE&gt;a=NULL b=NULL&lt;/CODE&gt; etc, then use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;replace NULL with 0 in cus_bndw_total_bytes_sent
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;instead of &lt;CODE&gt;fillnull&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/SearchReference/Replace"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.4/SearchReference/Replace&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/SearchReference/Fillnull"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.4/SearchReference/Fillnull&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2012 20:08:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-Line-into-a-TimeChart/m-p/81675#M181870</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-10-05T20:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add a Line into a TimeChart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-Line-into-a-TimeChart/m-p/81676#M181871</link>
      <description>&lt;P&gt;Hi Kristian, the problem is not the cus_bndw_total_bytes_sent but the GB_limit (in your exemple). I'm making a timechart for a year but I only have data for two months. I want GB_limit to be at 80 for all the 12 months even if there is no data loged.&lt;/P&gt;

&lt;P&gt;host="x" sourcetype="y" &lt;BR /&gt;
  | EVAL GB_limit = 1 &lt;BR /&gt;
  | FILLNULL GB_limit = 1&lt;BR /&gt;
  | EVAL GB_sent = cus_bndw_total_bytes_sent/1024/1024/1024 &lt;BR /&gt;
  | FILLNULL GB_sent&lt;BR /&gt;
  | TIMECHART SPAN=1month SUM(GB_sent) AS "Giga-Octet envoyé" AVG(GB_limit) AS "Limite"&lt;/P&gt;

&lt;P&gt;but I got a "Error in 'fillnull' command: Invalid argument: '='".&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-Line-into-a-TimeChart/m-p/81676#M181871</guid>
      <dc:creator>quatral</dc:creator>
      <dc:date>2020-09-28T12:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add a Line into a TimeChart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-Line-into-a-TimeChart/m-p/81677#M181872</link>
      <description>&lt;UL&gt;
&lt;LI&gt;replace all the GB_limit = 1 by 80&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 09 Oct 2012 14:11:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-Line-into-a-TimeChart/m-p/81677#M181872</guid>
      <dc:creator>quatral</dc:creator>
      <dc:date>2012-10-09T14:11:32Z</dc:date>
    </item>
  </channel>
</rss>

