<?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 show the line when its value is NULL with chart command / chartコマンドで行の値が0の時表示する方法 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-line-when-its-value-is-NULL-with-chart-command/m-p/745854#M241555</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"makecontinuous" - This is exactly what I need!&lt;/P&gt;&lt;P&gt;I didn't know there is such useful command.&lt;BR /&gt;My question is solved.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2025 15:51:56 GMT</pubDate>
    <dc:creator>mint_choco</dc:creator>
    <dc:date>2025-05-09T15:51:56Z</dc:date>
    <item>
      <title>How to show the line when its value is NULL with chart command / chartコマンドで行の値が0の時表示する方法</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-line-when-its-value-is-NULL-with-chart-command/m-p/745431#M241438</link>
      <description>&lt;P&gt;Hi, I try to display the number of events per day from multiple indexes.&lt;/P&gt;&lt;P&gt;I wrote the below SPL, but when all index values are null for a specific date, the line itself is not displayed.&lt;/P&gt;&lt;P&gt;複数のindexから、nullには0を代入し、1日ごとのイベント件数を表示させたいです。&lt;/P&gt;&lt;P&gt;chartコマンドを使いイベント件数を表示、特定indexの値がnullの場合はisnullで0を代入できたのですが、特定の日にちだけ全てのindexの値がnullの時、その日の行自体が表示されません。&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN (index1, index2, index3, index4)
| bin span=1d _time
| chart count _time over index
| eval index4=if(isnull(index4), 0, index4)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to display a line of 4/2 by substituting 0 like the below table, when all indexes value of 4/2 are null?&lt;/P&gt;&lt;P&gt;下記の表のように4/2の値がなくとも、０を代入して4/2の行を表示させる方法はないでしょうか。&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;index1&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;index2&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;index3&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;index4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;4/1&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;12&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;3&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;45&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;4/2&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;4/3&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;16&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;7&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;34&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 03 May 2025 09:50:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-line-when-its-value-is-NULL-with-chart-command/m-p/745431#M241438</guid>
      <dc:creator>mint_choco</dc:creator>
      <dc:date>2025-05-03T09:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the line when its value is NULL with chart command / chartコマンドで行の値が0の時表示する方法</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-line-when-its-value-is-NULL-with-chart-command/m-p/745545#M241481</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/309780"&gt;@mint_choco&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe you can either use filldown or fillnull here.&amp;nbsp;&lt;BR /&gt;After your chart command you could use the following, note that you *might not* have to specify all of the fields here, but if you do not specify them then it will only fillnull fields which already exist, therefore if no values for index4 are found then index4 would not appear at all in your chart.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; | fillnull index1 index2 index3 index4 value=0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If you prefer to use the previous value in its place then use filldown:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| filldown &lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 08:50:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-line-when-its-value-is-NULL-with-chart-command/m-p/745545#M241481</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-05-06T08:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the line when its value is NULL with chart command / chartコマンドで行の値が0の時表示する方法</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-line-when-its-value-is-NULL-with-chart-command/m-p/745557#M241486</link>
      <description>&lt;LI-CODE lang="markup"&gt;| addtotals fieldname=_total
| where _total &amp;gt; 0&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 06 May 2025 14:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-line-when-its-value-is-NULL-with-chart-command/m-p/745557#M241486</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-05-06T14:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the line when its value is NULL with chart command / chartコマンドで行の値が0の時表示する方法</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-line-when-its-value-is-NULL-with-chart-command/m-p/745793#M241542</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks your reply. Unfortunately, it didn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I can fill the col index4 by using fillnull, instead of&amp;nbsp; "| eval index4=if(isnull(index4), 0, index4)".&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;But, I got the table like below. The line for 4/2 still missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20%"&gt;_time&lt;/TD&gt;&lt;TD width="20%"&gt;index1&lt;/TD&gt;&lt;TD width="20%"&gt;index2&lt;/TD&gt;&lt;TD width="20%"&gt;index3&lt;/TD&gt;&lt;TD width="20%"&gt;index4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%"&gt;4/1&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;12&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;3&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;45&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%"&gt;4/3&lt;/TD&gt;&lt;TD width="20%"&gt;16&lt;/TD&gt;&lt;TD width="20%"&gt;7&lt;/TD&gt;&lt;TD width="20%"&gt;34&lt;/TD&gt;&lt;TD width="20%"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%"&gt;4/4&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;15&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;6&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;70&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no logs on April 2nd, so there is no line for 4/2, I guess.&lt;BR /&gt;Is there no way to make line for April 2nd? Maybe should I try without chart command?&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 17:14:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-line-when-its-value-is-NULL-with-chart-command/m-p/745793#M241542</guid>
      <dc:creator>mint_choco</dc:creator>
      <dc:date>2025-05-08T17:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the line when its value is NULL with chart command / chartコマンドで行の値が0の時表示する方法</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-line-when-its-value-is-NULL-with-chart-command/m-p/745804#M241545</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/309780"&gt;@mint_choco&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before the fillnull you culd try using "makecontinuous"&lt;/P&gt;&lt;P&gt;Something like this (adjust accordingly):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makecontinuous _time span=1d&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 19:57:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-line-when-its-value-is-NULL-with-chart-command/m-p/745804#M241545</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-05-08T19:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the line when its value is NULL with chart command / chartコマンドで行の値が0の時表示する方法</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-line-when-its-value-is-NULL-with-chart-command/m-p/745854#M241555</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"makecontinuous" - This is exactly what I need!&lt;/P&gt;&lt;P&gt;I didn't know there is such useful command.&lt;BR /&gt;My question is solved.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 15:51:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-line-when-its-value-is-NULL-with-chart-command/m-p/745854#M241555</guid>
      <dc:creator>mint_choco</dc:creator>
      <dc:date>2025-05-09T15:51:56Z</dc:date>
    </item>
  </channel>
</rss>

