<?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 Spl in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/Spl/m-p/632122#M9</link>
    <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;&lt;P&gt;I'm working on two conditions where I need to use condition eval statement. Some filters that I need to add for every condition before I do eval. Please help me in achieving this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Condition 1:&lt;BR /&gt;Filters to be applied before:&lt;BR /&gt;id is not "N/A"&amp;nbsp; AND risk="Critical" AND risk_factor="critical"&lt;BR /&gt;After satisfying above conditions, I have to create a field called score.&lt;BR /&gt;eval score=IF(insurance="Y",&amp;nbsp; instate="Y", age_requirements="y",&amp;nbsp; 30, 60)&lt;BR /&gt;&lt;BR /&gt;Condition 2:&lt;BR /&gt;Filters to be applied before:&lt;BR /&gt;id is not "N/A"&amp;nbsp; AND risk="Critical" AND risk_factor="high"&lt;BR /&gt;After satisfying above conditions. Add to the newly existing field "score"&lt;BR /&gt;eval score=IF(insurance="Y",&amp;nbsp; instate="Y", age_requirements="y",&amp;nbsp; 60, 90)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;TIA.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 03:40:26 GMT</pubDate>
    <dc:creator>revanthammineni</dc:creator>
    <dc:date>2023-02-24T03:40:26Z</dc:date>
    <item>
      <title>Spl</title>
      <link>https://community.splunk.com/t5/Other-Usage/Spl/m-p/632122#M9</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;&lt;P&gt;I'm working on two conditions where I need to use condition eval statement. Some filters that I need to add for every condition before I do eval. Please help me in achieving this.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Condition 1:&lt;BR /&gt;Filters to be applied before:&lt;BR /&gt;id is not "N/A"&amp;nbsp; AND risk="Critical" AND risk_factor="critical"&lt;BR /&gt;After satisfying above conditions, I have to create a field called score.&lt;BR /&gt;eval score=IF(insurance="Y",&amp;nbsp; instate="Y", age_requirements="y",&amp;nbsp; 30, 60)&lt;BR /&gt;&lt;BR /&gt;Condition 2:&lt;BR /&gt;Filters to be applied before:&lt;BR /&gt;id is not "N/A"&amp;nbsp; AND risk="Critical" AND risk_factor="high"&lt;BR /&gt;After satisfying above conditions. Add to the newly existing field "score"&lt;BR /&gt;eval score=IF(insurance="Y",&amp;nbsp; instate="Y", age_requirements="y",&amp;nbsp; 60, 90)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;TIA.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 03:40:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Spl/m-p/632122#M9</guid>
      <dc:creator>revanthammineni</dc:creator>
      <dc:date>2023-02-24T03:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Spl</title>
      <link>https://community.splunk.com/t5/Other-Usage/Spl/m-p/632126#M10</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/66319"&gt;@revanthammineni&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your conditions are very similar but else values are overwriting. You can use below to give an idea.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval score=if(searchmatch(insurance="Y" instate="Y" age_requirements="y" id!="N/A" risk="Critical" risk_factor="critical" ), 30, 60)
| eval score=if(searchmatch(insurance="Y" instate="Y" age_requirements="y" id!="N/A" risk="Critical" risk_factor="high" ), 60, 90)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 24 Feb 2023 04:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Spl/m-p/632126#M10</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-24T04:01:47Z</dc:date>
    </item>
  </channel>
</rss>

