<?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: How to compare and calculate comparison flag for two fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-and-calculate-comparison-flag-for-two-fields/m-p/683861#M233476</link>
    <description>&lt;P&gt;There may be a few ways to do that.&amp;nbsp; Here's one.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval Status = case(isnotnull(IPv4) AND isnotnull(IPv6), "IPv4 + IPv6",
                     isnotnull(IPv4), "IPv4",
                     isnotnull(IPv6), "IPv6",
                     1==1, "")&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 11 Apr 2024 00:16:21 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-04-11T00:16:21Z</dc:date>
    <item>
      <title>How to compare and calculate comparison flag for two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-and-calculate-comparison-flag-for-two-fields/m-p/683859#M233475</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have below scenario. My brain is very slow at this time of the day!&lt;BR /&gt;&lt;BR /&gt;I need an eval to create&amp;nbsp;&lt;STRONG&gt;Status&amp;nbsp;&lt;/STRONG&gt;field as in the table below that will flag a host if it is running on &lt;STRONG&gt;IPv4&lt;/STRONG&gt; OR &lt;STRONG&gt;IPv6&lt;/STRONG&gt; OR both &lt;STRONG&gt;IPv4 +IPv6&lt;/STRONG&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="99.8709677419355%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25.93548387096774%" height="24px"&gt;&lt;STRONG&gt;HOSTNAME&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="17.161290322580644%" height="24px"&gt;&lt;STRONG&gt;IPv4&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="28.258064516129032%" height="24px"&gt;&lt;STRONG&gt;IPv6&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="28.516129032258064%" height="24px"&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25.93548387096774%" height="24px"&gt;SampleA&lt;/TD&gt;&lt;TD width="17.161290322580644%" height="24px"&gt;0.0.0.1&lt;/TD&gt;&lt;TD width="28.258064516129032%" height="24px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="28.516129032258064%" height="24px"&gt;IPv4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25.93548387096774%" height="24px"&gt;SampleB&lt;/TD&gt;&lt;TD width="17.161290322580644%" height="24px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="28.258064516129032%" height="24px"&gt;0.0.0.2&lt;/TD&gt;&lt;TD width="28.516129032258064%" height="24px"&gt;IPv6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25.93548387096774%" height="24px"&gt;SampleC&lt;/TD&gt;&lt;TD width="17.161290322580644%" height="24px"&gt;0.0.0.3&lt;/TD&gt;&lt;TD width="28.258064516129032%" height="24px"&gt;A:B:C:D:E:F&lt;/TD&gt;&lt;TD width="28.516129032258064%" height="24px"&gt;IPv4 + IPv6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Thanks in-advance!!!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 23:57:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-and-calculate-comparison-flag-for-two-fields/m-p/683859#M233475</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2024-04-10T23:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare and calculate comparison flag for two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-and-calculate-comparison-flag-for-two-fields/m-p/683861#M233476</link>
      <description>&lt;P&gt;There may be a few ways to do that.&amp;nbsp; Here's one.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval Status = case(isnotnull(IPv4) AND isnotnull(IPv6), "IPv4 + IPv6",
                     isnotnull(IPv4), "IPv4",
                     isnotnull(IPv6), "IPv6",
                     1==1, "")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 11 Apr 2024 00:16:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-and-calculate-comparison-flag-for-two-fields/m-p/683861#M233476</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-04-11T00:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare and calculate comparison flag for two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-and-calculate-comparison-flag-for-two-fields/m-p/683917#M233501</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;!!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 14:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-and-calculate-comparison-flag-for-two-fields/m-p/683917#M233501</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2024-04-11T14:54:54Z</dc:date>
    </item>
  </channel>
</rss>

