<?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 search all events and corresponding volume, but display the volume as &amp;quot;0&amp;quot; for missing events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-events-and-corresponding-volume-but-display/m-p/222145#M65311</link>
    <description>&lt;P&gt;Indeed, my answer was not complete. Refere to the other answer and follow the three steps after the base search and you should get it working.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2016 07:07:29 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2016-06-20T07:07:29Z</dc:date>
    <item>
      <title>How to search all events and corresponding volume, but display the volume as "0" for missing events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-events-and-corresponding-volume-but-display/m-p/222142#M65308</link>
      <description>&lt;P&gt;I'm search to fetch the volume against different events in a given time frame. The problem I'm running into is that if one or more of those events that did not process any records during that time frame, they do not show up in the output. What search should I use to display volume as 0 with those missing events? Missing events should display with volume as 0 in the search output. Any help will be appreciated ..&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2016 19:01:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-events-and-corresponding-volume-but-display/m-p/222142#M65308</guid>
      <dc:creator>nasamajh09</dc:creator>
      <dc:date>2016-06-19T19:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to search all events and corresponding volume, but display the volume as "0" for missing events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-events-and-corresponding-volume-but-display/m-p/222143#M65309</link>
      <description>&lt;P&gt;Hi nasamajh09,&lt;/P&gt;

&lt;P&gt;take a look at this answer &lt;A href="https://answers.splunk.com/answers/176466/how-to-use-eval-if-there-is-no-result-from-the-bas-1.html"&gt;https://answers.splunk.com/answers/176466/how-to-use-eval-if-there-is-no-result-from-the-bas-1.html&lt;/A&gt; which show a way how to do it.&lt;BR /&gt;
In your case you could do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search here to get all events
| eval volume=if(isnotnull(volume), volume, "0")
| do more stuff here
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will search in your events for the field &lt;CODE&gt;volume&lt;/CODE&gt; and if it is not null it will uses the value of &lt;CODE&gt;volume&lt;/CODE&gt; otherwise it will be set to &lt;CODE&gt;0&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2016 20:50:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-events-and-corresponding-volume-but-display/m-p/222143#M65309</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-06-19T20:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to search all events and corresponding volume, but display the volume as "0" for missing events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-events-and-corresponding-volume-but-display/m-p/222144#M65310</link>
      <description>&lt;P&gt;Thank You MuS for your answer but it won't work because if there is no logs for any event ,event name will not appear while searching ,so no point of using isnotnull.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 03:26:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-events-and-corresponding-volume-but-display/m-p/222144#M65310</guid>
      <dc:creator>nasamajh09</dc:creator>
      <dc:date>2016-06-20T03:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to search all events and corresponding volume, but display the volume as "0" for missing events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-events-and-corresponding-volume-but-display/m-p/222145#M65311</link>
      <description>&lt;P&gt;Indeed, my answer was not complete. Refere to the other answer and follow the three steps after the base search and you should get it working.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 07:07:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-events-and-corresponding-volume-but-display/m-p/222145#M65311</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-06-20T07:07:29Z</dc:date>
    </item>
  </channel>
</rss>

