<?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 Help with if &amp;quot;null&amp;quot; command in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607382#M13472</link>
    <description>&lt;P&gt;Hi splunkers,&lt;/P&gt;
&lt;P&gt;I want to use "null"&amp;nbsp; command in below query. If the message is "null" then it should replace with the below message otherwise it should only display the already extracted message.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval message= if(Actor="superman","super hero", if(Actor="emma watson","model"))&lt;/LI-CODE&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2022 15:20:12 GMT</pubDate>
    <dc:creator>super_saiyan</dc:creator>
    <dc:date>2022-07-28T15:20:12Z</dc:date>
    <item>
      <title>Help with if "null" command</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607382#M13472</link>
      <description>&lt;P&gt;Hi splunkers,&lt;/P&gt;
&lt;P&gt;I want to use "null"&amp;nbsp; command in below query. If the message is "null" then it should replace with the below message otherwise it should only display the already extracted message.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval message= if(Actor="superman","super hero", if(Actor="emma watson","model"))&lt;/LI-CODE&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 15:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607382#M13472</guid>
      <dc:creator>super_saiyan</dc:creator>
      <dc:date>2022-07-28T15:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: If "null" command</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607388#M13473</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244498"&gt;@super_saiyan&lt;/a&gt;&amp;nbsp;... please check this isnull():&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|makeresults | eval Actor="emma watson" 
| eval message = if(isnull(message),if(Actor="superman","super hero", if(Actor="emma watson","model", "not emma")),message) | table message&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="if-cmd.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20734i664041D805EEE1DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="if-cmd.png" alt="if-cmd.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 14:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607388#M13473</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2022-07-28T14:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: If "null" command</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607391#M13474</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval message= coalesce(message,case(Actor="superman","super hero",Actor="emma watson","model", true(),"NA"))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Jul 2022 15:02:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607391#M13474</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-07-28T15:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: If "null" command</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607461#M13477</link>
      <description>&lt;P&gt;I am getting error while using the below SPL Query&lt;/P&gt;&lt;P&gt;Could you please help me with that ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="super_saiyan_0-1659075047799.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20746i0161EB0514E5C4E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="super_saiyan_0-1659075047799.png" alt="super_saiyan_0-1659075047799.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 06:11:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607461#M13477</guid>
      <dc:creator>super_saiyan</dc:creator>
      <dc:date>2022-07-29T06:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: If "null" command</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607462#M13478</link>
      <description>&lt;P&gt;Thanks for your quick response&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;could you please also provide the spl using "isnull" ?&lt;BR /&gt;&lt;BR /&gt;Really&amp;nbsp;appreciate your support.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 06:14:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607462#M13478</guid>
      <dc:creator>super_saiyan</dc:creator>
      <dc:date>2022-07-29T06:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: If "null" command</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607544#M13487</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244498"&gt;@super_saiyan&lt;/a&gt;&amp;nbsp;.. your "if" format was wrong.. pls check this..&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|makeresults | eval Actor="emma watson" | eval message = if(isnull(message, null(),if(Actor="superman","super hero", if(Actor="emma watson","model", "not emma")) | table message&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you pls check this and update us with some more details:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; If the message is "null" then it should replace with the below message.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; otherwise it should only display the already extracted message.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 14:55:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607544#M13487</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2022-07-29T14:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: If "null" command</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607555#M13489</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval message= if(isnotnull(message),message,case(Actor="superman","super hero",Actor="emma watson","model", true(),"NA"))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 29 Jul 2022 15:46:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Help-with-if-quot-null-quot-command/m-p/607555#M13489</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-07-29T15:46:39Z</dc:date>
    </item>
  </channel>
</rss>

