<?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: replace special character &amp;quot;*&amp;quot; with NULL in datamodel in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/replace-special-character-quot-quot-with-NULL-in-datamodel/m-p/332419#M98896</link>
    <description>&lt;P&gt;Not sure if 1st one can be used in data model. But 2nd option worked for me. Cheers!!&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2018 13:00:57 GMT</pubDate>
    <dc:creator>goyals05</dc:creator>
    <dc:date>2018-01-24T13:00:57Z</dc:date>
    <item>
      <title>replace special character "*" with NULL in datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/replace-special-character-quot-quot-with-NULL-in-datamodel/m-p/332417#M98894</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;In one of my numeric field sometimes  I am getting value as " * ". I want to replace it with either NA or NULL if its " * ". &lt;/P&gt;

&lt;P&gt;I am looking to add this regex in data model.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 11:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/replace-special-character-quot-quot-with-NULL-in-datamodel/m-p/332417#M98894</guid>
      <dc:creator>goyals05</dc:creator>
      <dc:date>2018-01-24T11:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: replace special character "*" with NULL in datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/replace-special-character-quot-quot-with-NULL-in-datamodel/m-p/332418#M98895</link>
      <description>&lt;P&gt;hey @goyals05&lt;/P&gt;

&lt;P&gt;you can try this run anywhere search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval raw="* 20 30 04 3 2 5 *" 
| makemv raw 
| mvexpand raw 
| rex field=raw mode=sed "s/\*/NA/g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval raw="* 20 30 04 3 2 5 *" 
| makemv raw 
| mvexpand raw 
| eval raw1=case(raw="*","NA",1=1,raw)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also in your environment, you should write in eval expression of data model &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;case(raw="*","NA",1=1,raw)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you can try anyone of these. which one you like bro? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 12:18:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/replace-special-character-quot-quot-with-NULL-in-datamodel/m-p/332418#M98895</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-24T12:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: replace special character "*" with NULL in datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/replace-special-character-quot-quot-with-NULL-in-datamodel/m-p/332419#M98896</link>
      <description>&lt;P&gt;Not sure if 1st one can be used in data model. But 2nd option worked for me. Cheers!!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 13:00:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/replace-special-character-quot-quot-with-NULL-in-datamodel/m-p/332419#M98896</guid>
      <dc:creator>goyals05</dc:creator>
      <dc:date>2018-01-24T13:00:57Z</dc:date>
    </item>
  </channel>
</rss>

