<?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 display zero for latest(values) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-for-latest-values/m-p/709632#M239828</link>
    <description>&lt;LI-CODE lang="markup"&gt;| appendpipe [| stats count | where count==0]&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 23 Jan 2025 21:09:36 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2025-01-23T21:09:36Z</dc:date>
    <item>
      <title>How to display zero for latest(values)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-for-latest-values/m-p/709616#M239818</link>
      <description>&lt;P&gt;The following is my query.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;index="xyz"&amp;nbsp; host="*"&amp;nbsp;&lt;BR /&gt;|fields host,messagevalue&lt;BR /&gt;| search "total payment count :"&lt;BR /&gt;|eval messagevalue=mvindex(split(messagevalue,":"),1)&lt;BR /&gt;|stats latest(messagevalue)&lt;BR /&gt;&lt;BR /&gt;For a given period if there are no events, No results found is displayed. Instead I want zeo to be displayed.&lt;BR /&gt;&lt;BR /&gt;I tried using fillnull but no luck.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 16:33:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-for-latest-values/m-p/709616#M239818</guid>
      <dc:creator>varsh_6_8_6</dc:creator>
      <dc:date>2025-01-23T16:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to display zero for latest(values)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-for-latest-values/m-p/709617#M239819</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262834"&gt;@varsh_6_8_6&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you can find many anwers to this question and I proposed it in Splunk ideas to have this feature in fashboards and it's a future prospect, if you think that's interesting, upvote for it at&amp;nbsp;&lt;A href="https://ideas.splunk.com/ideas/EID-I-572" target="_blank"&gt;https://ideas.splunk.com/ideas/EID-I-572&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, in the meantime, o&lt;SPAN&gt;nly one question before the answer: is messageValue a number or what else?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if it's a number, please try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="xyz"  host="*" "total payment count :"
| eval messagevalue=mvindex(split(messagevalue,":"),1)
| stats latest(messagevalue) AS messagevalue
| append [ | makeresults | eval messagevalue=0 | fields messagevalue ]
| stats sum(messagevalue) AS messagevalue&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 16:40:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-for-latest-values/m-p/709617#M239819</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-01-23T16:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to display zero for latest(values)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-for-latest-values/m-p/709632#M239828</link>
      <description>&lt;LI-CODE lang="markup"&gt;| appendpipe [| stats count | where count==0]&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Jan 2025 21:09:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-for-latest-values/m-p/709632#M239828</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-01-23T21:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to display zero for latest(values)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-for-latest-values/m-p/709667#M239832</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for the inputs. I have voted for the idea which is essential.&lt;BR /&gt;Also I have both number and string.&lt;BR /&gt;The one mentioned worked perfectly for the number.&amp;nbsp;&lt;BR /&gt;Is there any way to display "No files found" in case there no latest events in a particular time.&lt;BR /&gt;Regards,&lt;BR /&gt;Varsh&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 11:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-for-latest-values/m-p/709667#M239832</guid>
      <dc:creator>varsh_6_8_6</dc:creator>
      <dc:date>2025-01-24T11:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to display zero for latest(values)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-for-latest-values/m-p/709680#M239837</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262834"&gt;@varsh_6_8_6&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;in this case, please try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="xyz"  host="*" "total payment count :"
| eval messagevalue=mvindex(split(messagevalue,":"),1)
| appendpipe [ stats count | eval messagevalue="No File Found" | where count==0 | fields - count ]&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 13:43:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-zero-for-latest-values/m-p/709680#M239837</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-01-24T13:43:27Z</dc:date>
    </item>
  </channel>
</rss>

