<?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 fill null values using another field value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-null-values-using-another-field-value/m-p/210957#M61678</link>
    <description>&lt;P&gt;Thanks for imeediate response. its working. but its working for only if your query results are below 10000. if we have more than 10000 results sort command is truncating the results to 10000. &lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2015 14:22:47 GMT</pubDate>
    <dc:creator>Laya123</dc:creator>
    <dc:date>2015-11-03T14:22:47Z</dc:date>
    <item>
      <title>How to fill null values using another field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-null-values-using-another-field-value/m-p/210953#M61674</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I need small to fill null values in search results&lt;/P&gt;
&lt;P&gt;I have search results like&lt;/P&gt;
&lt;P&gt;ID host country&lt;BR /&gt;1 A CC&lt;BR /&gt;2 A CC&lt;BR /&gt;3 B AA&lt;BR /&gt;4 C CC&lt;BR /&gt;5 A&lt;BR /&gt;&lt;BR /&gt;6 B AA&lt;BR /&gt;7 B AA&lt;BR /&gt;8 C CC&lt;BR /&gt;9 A CC&lt;BR /&gt;10 B&lt;BR /&gt;&lt;BR /&gt;11 A&lt;/P&gt;
&lt;P&gt;I want to fill blanks of country from other rows where the same host is there means for ID:5 host is 'A' but country is blank I want to fill that blank with 'CC' (the country name is same for same host for all IDs) same as B host for ID:10 is balnk wanto fill with 'AA' why because host 'B' country is 'CC' same for all blanks of country has to be filled with country of same host&lt;/P&gt;
&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 15:22:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fill-null-values-using-another-field-value/m-p/210953#M61674</guid>
      <dc:creator>Laya123</dc:creator>
      <dc:date>2022-07-28T15:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to fill null values using another field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-null-values-using-another-field-value/m-p/210954#M61675</link>
      <description>&lt;P&gt;Try something like this (assuming Country for a host is always same)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving above output | eventstats values(Country) as Country by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Nov 2015 15:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fill-null-values-using-another-field-value/m-p/210954#M61675</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-11-02T15:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to fill null values using another field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-null-values-using-another-field-value/m-p/210955#M61676</link>
      <description>&lt;P&gt;Does this solve yoour problem?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| eventstats values(country) country_2 BY host
| eval country=coalesce(country, country_2)
| fields- country_2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Nov 2015 15:50:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fill-null-values-using-another-field-value/m-p/210955#M61676</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2015-11-02T15:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to fill null values using another field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-null-values-using-another-field-value/m-p/210956#M61677</link>
      <description>&lt;P&gt;You could use &lt;CODE&gt;filldown&lt;/CODE&gt; command. You'd have to &lt;CODE&gt;sort&lt;/CODE&gt; by host first. The end result would look something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | sort host | filldown country
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Nov 2015 16:19:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fill-null-values-using-another-field-value/m-p/210956#M61677</guid>
      <dc:creator>aholzer</dc:creator>
      <dc:date>2015-11-02T16:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to fill null values using another field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-null-values-using-another-field-value/m-p/210957#M61678</link>
      <description>&lt;P&gt;Thanks for imeediate response. its working. but its working for only if your query results are below 10000. if we have more than 10000 results sort command is truncating the results to 10000. &lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 14:22:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fill-null-values-using-another-field-value/m-p/210957#M61678</guid>
      <dc:creator>Laya123</dc:creator>
      <dc:date>2015-11-03T14:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to fill null values using another field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fill-null-values-using-another-field-value/m-p/607385#M211165</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;Sort has a default value of 10000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Sort" target="_blank" rel="noopener"&gt;sort - Splunk Documentation&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;You would need to specify "sort 0"&amp;nbsp; (zero)&amp;nbsp; in the code, to remove any limits&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;H3&gt;&lt;FONT size="4"&gt;&lt;SPAN class=""&gt;Optional arguments&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;H3&gt;&lt;FONT size="4"&gt;&lt;SPAN class=""&gt;&amp;lt;count&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;H3&gt;&lt;FONT size="4"&gt;&lt;SPAN class=""&gt;Syntax:&amp;nbsp;&amp;lt;int&amp;gt; | limit=&amp;lt;int&amp;gt; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;H3&gt;&lt;FONT size="4"&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;:&amp;nbsp; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;H3&gt;&lt;FONT size="4"&gt;&lt;SPAN class=""&gt;Specify the number of results to return from the sorted results. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;H3&gt;&lt;FONT size="4"&gt;&lt;SPAN class=""&gt;&lt;FONT color="#0000FF"&gt;If no count is specified, the default limit of &lt;STRONG&gt;10000&lt;/STRONG&gt; is used. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;H3&gt;&lt;FONT size="4"&gt;&lt;SPAN class=""&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT color="#339966"&gt;If&amp;nbsp;0&amp;nbsp;is specified, &lt;STRONG&gt;all&lt;/STRONG&gt; results are returned. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;H3&gt;&lt;FONT size="4" color="#000000"&gt;&lt;SPAN class=""&gt;You can specify the count using an integer or precede the count with a label, for example&amp;nbsp;limit=10&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/H3&gt;&lt;P class=""&gt;&lt;FONT size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;Using&amp;nbsp;sort 0&amp;nbsp;might have a negative impact performance&lt;/STRONG&gt;, depending on how many results are returned.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 14:40:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fill-null-values-using-another-field-value/m-p/607385#M211165</guid>
      <dc:creator>Machine247</dc:creator>
      <dc:date>2022-07-28T14:40:21Z</dc:date>
    </item>
  </channel>
</rss>

