<?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: Use fillnull to fill in different values within same field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Use-fillnull-to-fill-in-different-values-within-same-field/m-p/463214#M130584</link>
    <description>&lt;P&gt;Thank you for your reply.&lt;BR /&gt;
What that did was fill in the empty values all the same with "Unknown" and "# of events" for a particular field. Example: Within MyField1 all empty values show "Unknown 500".  What I am trying to do is increment the value so all the empty values in MyField1 are unique. &lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 21:44:59 GMT</pubDate>
    <dc:creator>rfranco83</dc:creator>
    <dc:date>2020-02-06T21:44:59Z</dc:date>
    <item>
      <title>Use fillnull to fill in different values within same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-fillnull-to-fill-in-different-values-within-same-field/m-p/463212#M130582</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to use the fillnull to populate empty values within the same field with unique values. For example, the first empty value found in field1, insert unknown1. The second empty value found in field1, insert unknown2, etc...&lt;/P&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 18:12:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-fillnull-to-fill-in-different-values-within-same-field/m-p/463212#M130582</guid>
      <dc:creator>rfranco83</dc:creator>
      <dc:date>2020-02-06T18:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Use fillnull to fill in different values within same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-fillnull-to-fill-in-different-values-within-same-field/m-p/463213#M130583</link>
      <description>&lt;P&gt;Assuming all the events have a null, or you just need them to be unique (not sequential) try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|streamstats count as ct|eval yourNullField=if(isnull(yourNullField),"Unknown "+ct,yourNullField)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Feb 2020 19:45:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-fillnull-to-fill-in-different-values-within-same-field/m-p/463213#M130583</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-06T19:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Use fillnull to fill in different values within same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-fillnull-to-fill-in-different-values-within-same-field/m-p/463214#M130584</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;BR /&gt;
What that did was fill in the empty values all the same with "Unknown" and "# of events" for a particular field. Example: Within MyField1 all empty values show "Unknown 500".  What I am trying to do is increment the value so all the empty values in MyField1 are unique. &lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 21:44:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-fillnull-to-fill-in-different-values-within-same-field/m-p/463214#M130584</guid>
      <dc:creator>rfranco83</dc:creator>
      <dc:date>2020-02-06T21:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Use fillnull to fill in different values within same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-fillnull-to-fill-in-different-values-within-same-field/m-p/463215#M130585</link>
      <description>&lt;P&gt;sorry - use streamstats, not event stats.&lt;/P&gt;

&lt;P&gt;edited answer&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 21:49:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-fillnull-to-fill-in-different-values-within-same-field/m-p/463215#M130585</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-06T21:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use fillnull to fill in different values within same field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-fillnull-to-fill-in-different-values-within-same-field/m-p/463216#M130586</link>
      <description>&lt;P&gt;That works, thank you!! I appreciate the quick response.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 23:16:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-fillnull-to-fill-in-different-values-within-same-field/m-p/463216#M130586</guid>
      <dc:creator>rfranco83</dc:creator>
      <dc:date>2020-02-06T23:16:21Z</dc:date>
    </item>
  </channel>
</rss>

