<?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 Why is the rename command not working post using fillnull? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-rename-command-not-working-post-using-fillnull/m-p/439214#M124965</link>
    <description>&lt;P&gt;Can you please help check why below command is not working.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="app_batch_reports" "] ERROR [" NOT "MessageClient."  | rex field=_raw "Generate Request to Module (?[^ ]+) Failed.+?Error \(Code: (?[^)]+)\): [\"']?(?[^\"']+?)\)?($|\n|\r)" | rex field=_raw "Error \(Code: (?[^)]+)\): (?.+?)($|\n|\r)" | rex field=_raw "ExecutionPersistenceController\.PersistScheduledReportExecution-END(.+?), Error, (?[^\"')]+)" | eval CODE=coalesce(CODE1,CODE2) | fillnull value=NULL |  table CODE |rename CODE as new
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;CODE field has all values as NULL. When I use rename command, I get no result, and without using it the query works fine. Also, if I change the fieldname from CODE to anything else, the query works fine with rename as well.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Dec 2018 02:34:59 GMT</pubDate>
    <dc:creator>AnmolKohli</dc:creator>
    <dc:date>2018-12-18T02:34:59Z</dc:date>
    <item>
      <title>Why is the rename command not working post using fillnull?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-rename-command-not-working-post-using-fillnull/m-p/439214#M124965</link>
      <description>&lt;P&gt;Can you please help check why below command is not working.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="app_batch_reports" "] ERROR [" NOT "MessageClient."  | rex field=_raw "Generate Request to Module (?[^ ]+) Failed.+?Error \(Code: (?[^)]+)\): [\"']?(?[^\"']+?)\)?($|\n|\r)" | rex field=_raw "Error \(Code: (?[^)]+)\): (?.+?)($|\n|\r)" | rex field=_raw "ExecutionPersistenceController\.PersistScheduledReportExecution-END(.+?), Error, (?[^\"')]+)" | eval CODE=coalesce(CODE1,CODE2) | fillnull value=NULL |  table CODE |rename CODE as new
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;CODE field has all values as NULL. When I use rename command, I get no result, and without using it the query works fine. Also, if I change the fieldname from CODE to anything else, the query works fine with rename as well.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 02:34:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-rename-command-not-working-post-using-fillnull/m-p/439214#M124965</guid>
      <dc:creator>AnmolKohli</dc:creator>
      <dc:date>2018-12-18T02:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the rename command not working post using fillnull?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-rename-command-not-working-post-using-fillnull/m-p/439215#M124966</link>
      <description>&lt;P&gt;@AnmolKohli add the fieldname &lt;CODE&gt;CODE&lt;/CODE&gt; to the fillnull command i.e. &lt;CODE&gt;| fillnull value="NULL" CODE&lt;/CODE&gt; and confirm.&lt;BR /&gt;
Following is a run anywhere example on similar lines for testing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=10
| fillnull value="NULL" CODE
| table CODE
| rename CODE as new
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Dec 2018 05:23:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-rename-command-not-working-post-using-fillnull/m-p/439215#M124966</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-12-18T05:23:34Z</dc:date>
    </item>
  </channel>
</rss>

