<?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: Replace no value with &amp;quot;0&amp;quot; (zero) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Replace-no-value-with-quot-0-quot-zero/m-p/496292#M138307</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;|  timechart span=360s count(msg) as cnt, first(BaseLine) as Baseline by msg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;please provide the results.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time cnt: alert cnt: critical cnt: other Baseline: alert Baseline: critical Baseline: other
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is this?&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 12:20:08 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-05-12T12:20:08Z</dc:date>
    <item>
      <title>Replace no value with "0" (zero)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-no-value-with-quot-0-quot-zero/m-p/496291#M138306</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Since a few days I am in a battle regarding the following and I am on the loosing edge here. So all help is wanted of course. &lt;/P&gt;

&lt;P&gt;Instead of "no result found" in the graph area, I want to have a visual but in that case all "0".&lt;/P&gt;

&lt;P&gt;My query is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index host=test 
| rex field=_raw "(?ms)^(?:[^ \\n]* ){6}(?P&amp;lt;SyslogMessage&amp;gt;[^:]+)(?:[^ \\n]* ){7}(?P&amp;lt;src_ip&amp;gt;[^ ]+) to (?P&amp;lt;dest_ip&amp;gt;[^ ]+)"  
| eval msg = if(match(SyslogMessage,"%ABC-1-*"),"alert", if(match(SyslogMessage,"%ABC-2-*"),"critical","Other"))
| Search NOT msg="other"
| timechart span=360s count(msg) as cnt, first(BaseLine) as Baseline by msg
| eval BaseLine=8
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried several options such as before the last |eval BaseLine=8:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| fillnull value=0 cnt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Looking for some magic.&lt;/P&gt;

&lt;P&gt;S&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 12:10:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-no-value-with-quot-0-quot-zero/m-p/496291#M138306</guid>
      <dc:creator>swengroeneveld</dc:creator>
      <dc:date>2020-05-12T12:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Replace no value with "0" (zero)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-no-value-with-quot-0-quot-zero/m-p/496292#M138307</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|  timechart span=360s count(msg) as cnt, first(BaseLine) as Baseline by msg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;please provide the results.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time cnt: alert cnt: critical cnt: other Baseline: alert Baseline: critical Baseline: other
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is this?&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 12:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-no-value-with-quot-0-quot-zero/m-p/496292#M138307</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-12T12:20:08Z</dc:date>
    </item>
  </channel>
</rss>

