<?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: Fillnull until specific time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306591#M160113</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;| fillnull value=0 fieldA
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is 100% equivalent to &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval fieldA=coalesce(fieldA,0)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so you want something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval fieldA = coalesce(fieldA, if(_time&amp;lt;now(), 0, null() )  )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 13 Jul 2017 20:01:55 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-07-13T20:01:55Z</dc:date>
    <item>
      <title>Fillnull until specific time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306586#M160108</link>
      <description>&lt;P&gt;Is there a way to get fillnull to work over all entries up until a certain time? &lt;/P&gt;

&lt;P&gt;Right now, I'm evaluating a field in a subsearch with earliest=@d, latest=now and then working with the field outside of the subsearch. I want fillnull to work on that field up until now, but when I put "| fillnull value=0 field" at the end of the subsearch, it's not working. When I put that statement outside of the subsearch, fillnull is working over all times, not until now. &lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 18:21:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306586#M160108</guid>
      <dc:creator>cmzhu</dc:creator>
      <dc:date>2017-07-13T18:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fillnull until specific time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306587#M160109</link>
      <description>&lt;P&gt;can you show a snippet of your search? i see no immediate reason why that wouldn't work in a subsearch, so i'm curious how the subsearch is joined to the actual search.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 18:37:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306587#M160109</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-07-13T18:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fillnull until specific time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306588#M160110</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults count=288 | eval TimeDeltaSec=300 | accum TimeDeltaSec as TimeOffsetSec | eval _time=relative_time(now(),"@d-5m")+TimeOffsetSec | fields - TimeDeltaSec,TimeOffsetSec | eval TimeSlice=strftime(_time,"%H:%M") 
| join type=left TimeSlice [
search earliest=-30d@d latest=@d
...
| eventstats median(absDev) as mad by TimeSlice
| eval LowNormalCt=(med-mad*3), HighNormalCt=(med+mad*3)
| rename med as AvgNormalCt]
| fillnull value=0 HighNormalCt, AvgNormalCt, LowNormalCt
| join type=left TimeSlice
[search
earliest=@d latest=now
...
| stats first(ReqCt5m) as RC5 by TimeSlice, ActivSlice, ActivSite, CgClass
| stats sum(RC5) as LiveRequestCt by TimeSlice 
]
| table TimeSlice,LiveRequestCt,HighNormalCt,AvgNormalCt,LowNormalCt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried adding "| fillnull value=0 LiveRequestCount" right before the last ']', but it's not working. When I add the statement after the bracket, it's filling every TimeSlice (as expected).&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 19:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306588#M160110</guid>
      <dc:creator>cmzhu</dc:creator>
      <dc:date>2017-07-13T19:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Fillnull until specific time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306589#M160111</link>
      <description>&lt;P&gt;how are you calculating TimeSlice? are they the same buckets in every single search? I see with the makeresults command it's every 5 minutes. If when you break the search apart, the TimeSlice is a different bucket, then that could be the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 19:40:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306589#M160111</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-07-13T19:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fillnull until specific time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306590#M160112</link>
      <description>&lt;P&gt;TimeSlices is calculated the same way across the search; it's a field value in the indexes of the subsearch.&lt;BR /&gt;
&lt;CODE&gt;| eval TimeSlice=strftime(_time,"%H:%M")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 19:52:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306590#M160112</guid>
      <dc:creator>cmzhu</dc:creator>
      <dc:date>2017-07-13T19:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fillnull until specific time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306591#M160113</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| fillnull value=0 fieldA
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is 100% equivalent to &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval fieldA=coalesce(fieldA,0)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so you want something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval fieldA = coalesce(fieldA, if(_time&amp;lt;now(), 0, null() )  )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Jul 2017 20:01:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306591#M160113</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-07-13T20:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Fillnull until specific time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306592#M160114</link>
      <description>&lt;P&gt;thanks so much!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 20:23:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fillnull-until-specific-time/m-p/306592#M160114</guid>
      <dc:creator>cmzhu</dc:creator>
      <dc:date>2017-07-13T20:23:04Z</dc:date>
    </item>
  </channel>
</rss>

