<?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: Contains &amp;amp;quot;is null&amp;amp;quot; with if command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Contains-amp-quot-is-null-amp-quot-with-if-command/m-p/625413#M217398</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235891"&gt;@Shakira1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try the below line.&lt;BR /&gt;&lt;BR /&gt;| eval public_ip=if(isnull(private_ip),all_ip,"NO")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;you can change the value in else as you prefer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helps, karma would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manasa&lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2022 11:56:54 GMT</pubDate>
    <dc:creator>Manasa_401</dc:creator>
    <dc:date>2022-12-28T11:56:54Z</dc:date>
    <item>
      <title>Contains &amp;quot;is null&amp;quot; with if command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Contains-amp-quot-is-null-amp-quot-with-if-command/m-p/625412#M217397</link>
      <description>&lt;P&gt;I have all_ip filed that contains all my ips.&lt;/P&gt;&lt;P&gt;now I want to split it to public ip and&amp;nbsp;private ip:&lt;/P&gt;&lt;P&gt;public_ip,&amp;nbsp;private_ip, all_ip:&lt;/P&gt;&lt;P&gt;and when&amp;nbsp;private_ip is null I want to put the value from all_ip in&amp;nbsp;public_ip field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;first I did:&amp;nbsp;&lt;/P&gt;&lt;P&gt;| eval private_ip=if(like(all_ip,"XXXX.%") OR like(all_ip,"XXX.%"),all_ip,null())&lt;/P&gt;&lt;P&gt;and now I need to do (all the rest fill it in public_ip field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is possible?&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 11:45:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Contains-amp-quot-is-null-amp-quot-with-if-command/m-p/625412#M217397</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2022-12-28T11:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Contains &amp;quot;is null&amp;quot; with if command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Contains-amp-quot-is-null-amp-quot-with-if-command/m-p/625413#M217398</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235891"&gt;@Shakira1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try the below line.&lt;BR /&gt;&lt;BR /&gt;| eval public_ip=if(isnull(private_ip),all_ip,"NO")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;you can change the value in else as you prefer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helps, karma would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manasa&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 11:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Contains-amp-quot-is-null-amp-quot-with-if-command/m-p/625413#M217398</guid>
      <dc:creator>Manasa_401</dc:creator>
      <dc:date>2022-12-28T11:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Contains &amp;quot;is null&amp;quot; with if command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Contains-amp-quot-is-null-amp-quot-with-if-command/m-p/625424#M217403</link>
      <description>&lt;P&gt;thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 15:16:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Contains-amp-quot-is-null-amp-quot-with-if-command/m-p/625424#M217403</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2022-12-28T15:16:39Z</dc:date>
    </item>
  </channel>
</rss>

