<?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: How to remove a specific value from timechart? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-a-specific-value-from-timechart/m-p/184202#M18342</link>
    <description>&lt;P&gt;Your search is certainly not what you think it is.  I believe you are trying to do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nest | fillnull value=NULL error_code | timechart usenull=f useother=f cont=false span=30m count BY error_code
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 30 Jun 2015 16:21:21 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-06-30T16:21:21Z</dc:date>
    <item>
      <title>How to remove a specific value from timechart?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-a-specific-value-from-timechart/m-p/184201#M18341</link>
      <description>&lt;P&gt;I'm using the Nest for Splunk app and am trying to chart the number of power outages I have by duration.  I've got the search working almost perfectly:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nest | fillnull value=NULL error_code |  addinfo | eval duration=(info_max_time - info_min_time) | timechart usenull=f useother=f cont=false span=30m count(duration) by error_code
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This gives me the values that I'm looking for (namely error_code=E23) over time, but it also charts a value called "VALUE" which, from what I can tell, is just an empty value in the error_code field. &lt;/P&gt;

&lt;P&gt;I can't figure out how to remove that VALUE entry to just show the valid error codes, which start with "E", "N" or "W."  I tried using fillnull to make that entry null, and it doesn't break anything, but doesn't fix it.  I also added the searches below, but they are definitely not what I'm looking for and I seem to lose the time/duration:&lt;BR /&gt;
&lt;CODE&gt;| where error_code != ""&lt;/CODE&gt; and &lt;BR /&gt;
&lt;CODE&gt;| where error_code != "VALUE"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The error_code entry in question looks to be like this in the events field:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;equipment_type:  electric 
error_code: 
fan_control_state:  false 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas what I'm missing? &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-a-specific-value-from-timechart/m-p/184201#M18341</guid>
      <dc:creator>Sageth1</dc:creator>
      <dc:date>2020-09-28T20:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a specific value from timechart?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-a-specific-value-from-timechart/m-p/184202#M18342</link>
      <description>&lt;P&gt;Your search is certainly not what you think it is.  I believe you are trying to do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nest | fillnull value=NULL error_code | timechart usenull=f useother=f cont=false span=30m count BY error_code
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jun 2015 16:21:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-a-specific-value-from-timechart/m-p/184202#M18342</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-30T16:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a specific value from timechart?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-a-specific-value-from-timechart/m-p/184203#M18343</link>
      <description>&lt;P&gt;Thanks for the insight.  That gives me the same results (which is good because this is cleaner), but it still gives me the value of "VALUE" in the timechart&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 16:25:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-a-specific-value-from-timechart/m-p/184203#M18343</guid>
      <dc:creator>Sageth1</dc:creator>
      <dc:date>2015-06-30T16:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a specific value from timechart?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-a-specific-value-from-timechart/m-p/184204#M18344</link>
      <description>&lt;P&gt;Is it a &lt;CODE&gt;field&lt;/CODE&gt; called &lt;CODE&gt;"VALUE"&lt;/CODE&gt; or a &lt;CODE&gt;value&lt;/CODE&gt; of &lt;CODE&gt;error_code&lt;/CODE&gt;?  Try this for both at the same time&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=nest | fillnull value=NULL error_code | timechart usenull=f useother=f cont=false span=30m count BY error_code | table * | fields - VALUE | where error_code!="VALUE"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jun 2015 16:40:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-a-specific-value-from-timechart/m-p/184204#M18344</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-30T16:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a specific value from timechart?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-a-specific-value-from-timechart/m-p/184205#M18345</link>
      <description>&lt;P&gt;This wasn't exact, but it got me there.  It was displaying as a value, but it was actually (apparently) a field.  This query gave me no results, but I modified my original query and added &lt;CODE&gt;fields - VALUE&lt;/CODE&gt; and that worked.  Now just to tidy up and make a bit more efficient.  Thanks for your help. I didn't know about the 'fields' command.  Final result:  &lt;CODE&gt;index=nest error_code!="VALUE"| fillnull value=NULL error_code | timechart usenull=f useother=f cont=false span=30m count BY error_code | fields - VALUE&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 16:44:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-a-specific-value-from-timechart/m-p/184205#M18345</guid>
      <dc:creator>Sageth1</dc:creator>
      <dc:date>2015-06-30T16:44:56Z</dc:date>
    </item>
  </channel>
</rss>

