<?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: can we fill the null values in search results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51563#M12479</link>
    <description>&lt;P&gt;I sort of thought that 'value' should only be altered if it was null, which it may not always be.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Sep 2012 12:10:09 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2012-09-05T12:10:09Z</dc:date>
    <item>
      <title>can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51559#M12475</link>
      <description>&lt;P&gt;Hi..&lt;/P&gt;

&lt;P&gt;can we fill the null values with our desired values in the search query .&lt;/P&gt;

&lt;P&gt;Actually i tried the fillnull command but it didnt work .. I have used my query like this..&lt;/P&gt;

&lt;P&gt;mysearch | eval MYVALUE=5 | fillnull value=MYVALUE&lt;/P&gt;

&lt;P&gt;in this case .. all the null values are replaced with MYVALUE but not with 5 ..I need the value 5 in place of null values ..How can i do this ??&lt;/P&gt;

&lt;P&gt;Please Help..&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 11:54:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51559#M12475</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-09-05T11:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51560#M12476</link>
      <description>&lt;P&gt;Hi rakesh_498115&lt;/P&gt;

&lt;P&gt;why don't you use the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Replace"&gt;replace&lt;/A&gt; instead of fillnull?&lt;/P&gt;

&lt;P&gt;cheers,&lt;/P&gt;

&lt;P&gt;MuS&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 12:05:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51560#M12476</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2012-09-05T12:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51561#M12477</link>
      <description>&lt;P&gt;If you do ...mysearch | fillnull.  Does it replace all empty fields with zeros? Or if you do ..| fillnull value="5" does it replace those empty fields?  fillnul seems to be the right command for what you want to do. You should be able to do this and substitute in whatever value that you want.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 12:06:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51561#M12477</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-09-05T12:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51562#M12478</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;either of these should do, but... maybe the first will fail (i.e. insert "my_value" instead of "5").&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mysearch | eval my_value = 5 | eval value = case(isnull(value), my_value)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mysearch | eval my_value = 5 | eval value = coalesce(value, my_value) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check out &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.3/SearchReference/CommonEvalFunctions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;EDIT: typo&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 12:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51562#M12478</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-05T12:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51563#M12479</link>
      <description>&lt;P&gt;I sort of thought that 'value' should only be altered if it was null, which it may not always be.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 12:10:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51563#M12479</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-05T12:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51564#M12480</link>
      <description>&lt;P&gt;I think that maybe the "5" was a simplification, and the 'real' MYVALUE was more dynamic in nature.&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 12:11:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51564#M12480</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-05T12:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51565#M12481</link>
      <description>&lt;P&gt;Hi Kristain..&lt;/P&gt;

&lt;P&gt;When use eval command shown above .it is throwing error for me..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  Error in 'eval' command: The expression is malformed. Expected 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i have used like this..&lt;/P&gt;

&lt;P&gt;|inputlookup="data.csv" | fields Best95,Worst95 | eval my_value = 5 | eval Best95= coalesce(Best95, my_value)&lt;/P&gt;

&lt;P&gt;please help..&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:22:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51565#M12481</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2020-09-28T12:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51566#M12482</link>
      <description>&lt;P&gt;Do you really want to use 5 as a value. Try to put it inside double quotes.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;eval my_value = "5"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 13:22:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51566#M12482</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-05T13:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51567#M12483</link>
      <description>&lt;P&gt;same error kristan...:(&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 13:33:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51567#M12483</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-09-05T13:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51568#M12484</link>
      <description>&lt;P&gt;Sorry, but it works fine for me. Since I don't have your input data, I've used ordinary &lt;CODE&gt;access_combined&lt;/CODE&gt; logs, and gotten the desired results... &lt;/P&gt;

&lt;P&gt;is the input data OK? try to do a &lt;CODE&gt;table Best95, Worst95 my_value&lt;/CODE&gt; instead of the last eval. What does the result look like?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 13:56:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51568#M12484</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-05T13:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51569#M12485</link>
      <description>&lt;P&gt;Best95  Worst95  myyval&lt;BR /&gt;
        1.393         5&lt;BR /&gt;
-0.016  1.377        5&lt;BR /&gt;
0.010   1.387       5&lt;BR /&gt;
0.032   1.419      5&lt;BR /&gt;
0.047   1.466      5&lt;BR /&gt;
0.113   1.579    5&lt;BR /&gt;
-0.027  1.552        5 &lt;/P&gt;

&lt;P&gt;These are values i got kristan..when i use the table command alone..&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 14:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51569#M12485</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-09-05T14:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51570#M12486</link>
      <description>&lt;P&gt;where in Best95 the first value is null..i  want tat value to be replaced by 5 . ..&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 14:07:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51570#M12486</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-09-05T14:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51571#M12487</link>
      <description>&lt;P&gt;strange that is. If we rewind a little bit, what does the output look like if you use;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;your_search | eval myval=5 | fillnull Best95=myval | table Best95, myval&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;or if that gets weird, i.e. Best95 gets the string "myval", try &lt;CODE&gt;fillnull Best95="5"&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Output?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 14:16:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51571#M12487</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-05T14:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51572#M12488</link>
      <description>&lt;P&gt;Yeah fillnull is working kristian..but why i mentioned eval myval=5 is. i need to calucate the avg of the set Best95 and that avg i need to replace in the first null value of Best95 set..hence the reason i have eval myval=5 to check whether we can use this in null value or not ? . if this works na..i thought of calucate the avg value as i mentioned and thought of replacing it with my actual query..can you please help on this..&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 14:31:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51572#M12488</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-09-05T14:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51573#M12489</link>
      <description>&lt;P&gt;Let me clearly tell one more time..Consider the set Best95 from the table above.for the set i need to calucalte the average and this average value should be replaced in the null value of the same set i.e Best95.So My Expected output should be something like this..&lt;/P&gt;

&lt;P&gt;Best95 &lt;BR /&gt;
&lt;STRONG&gt;0.035&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
-0.016 &lt;BR /&gt;
0.010 &lt;BR /&gt;
0.032&lt;BR /&gt;&lt;BR /&gt;
0.047 &lt;BR /&gt;
0.113 &lt;BR /&gt;
-0.027  &lt;/P&gt;

&lt;P&gt;Here 0.035 value is average of all the values &lt;BR /&gt;
-0.016,0.010,0.032,0.047,0.113 and -0.027 .&lt;/P&gt;

&lt;P&gt;Is ter any possible way for achieving this ??&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 14:42:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51573#M12489</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-09-05T14:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: can we fill the null values in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51574#M12490</link>
      <description>&lt;P&gt;thanks kristain..I Figured out the problem..Actually I think splunk is not defining the fields names starting with numbers..&lt;/P&gt;

&lt;P&gt;Actually i used the previous like this &lt;/P&gt;

&lt;P&gt;my_search | eval myval=5 | fillnull 95Best=myval | table 95Best, myval&lt;/P&gt;

&lt;P&gt;So it didnt work...now changed it Best95 and now its working fyn..:)&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 17:55:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-fill-the-null-values-in-search-results/m-p/51574#M12490</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-09-05T17:55:22Z</dc:date>
    </item>
  </channel>
</rss>

