<?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 set a  Field Value to &amp;quot;True OR False&amp;quot; based on other Field value in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-set-a-Field-Value-to-quot-True-OR-False-quot-based-on/m-p/583476#M11417</link>
    <description>&lt;P&gt;OMG, this is truly amazing, incredible, superb.&lt;/P&gt;&lt;P&gt;I had no idea it be that simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks thanks thanks and thanks a lot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 06:15:34 GMT</pubDate>
    <dc:creator>beriwalnishant</dc:creator>
    <dc:date>2022-02-03T06:15:34Z</dc:date>
    <item>
      <title>How to set a  Field Value to "True OR False" based on other Field value</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-set-a-Field-Value-to-quot-True-OR-False-quot-based-on/m-p/583472#M11414</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&lt;BR /&gt;I have a situation where I need to base a field value in the normal search query on 'true' or 'false' based on another field&lt;BR /&gt;&lt;BR /&gt;example :&lt;BR /&gt;&lt;BR /&gt;index=xxx host=xxx sourcetype=xxx productcode="RE" countryid="74321"&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;what I need is that if the field 'countryid' is equal to '74321' the other field 'foundincache' set to only 'false' if not it should be set to 'true'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I tried something like this but it doesnt take the value from 'inscache'.&amp;nbsp; I mean inscache is not working as a variable&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index=xxx host=xxx sourcetype=xxx productcode="RE" countryid="74321"&amp;nbsp;&lt;BR /&gt;| eval countryid="70207"&lt;BR /&gt;| eval inscache=if(countryid=="70207","false","true")&lt;BR /&gt;| search foundincache=inscache&lt;BR /&gt;| stats count by foundincache&lt;BR /&gt;&lt;BR /&gt;Is there a way to do it I tried google search etc but cant find this anywhere&lt;BR /&gt;&lt;BR /&gt;Many thanks in adavance&amp;nbsp;&lt;BR /&gt;Nishant&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 05:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-set-a-Field-Value-to-quot-True-OR-False-quot-based-on/m-p/583472#M11414</guid>
      <dc:creator>beriwalnishant</dc:creator>
      <dc:date>2022-02-03T05:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a  Field Value to "True OR False" based on other Field value</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-set-a-Field-Value-to-quot-True-OR-False-quot-based-on/m-p/583475#M11416</link>
      <description>&lt;P&gt;Search doesn't work with variables on the right hand side of evaluations, use the where command instead&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where foundincache==inscache&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Feb 2022 06:09:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-set-a-Field-Value-to-quot-True-OR-False-quot-based-on/m-p/583475#M11416</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-03T06:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a  Field Value to "True OR False" based on other Field value</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-set-a-Field-Value-to-quot-True-OR-False-quot-based-on/m-p/583476#M11417</link>
      <description>&lt;P&gt;OMG, this is truly amazing, incredible, superb.&lt;/P&gt;&lt;P&gt;I had no idea it be that simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks thanks thanks and thanks a lot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 06:15:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-set-a-Field-Value-to-quot-True-OR-False-quot-based-on/m-p/583476#M11417</guid>
      <dc:creator>beriwalnishant</dc:creator>
      <dc:date>2022-02-03T06:15:34Z</dc:date>
    </item>
  </channel>
</rss>

