<?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 multiple fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-compare-multiple-fields/m-p/88083#M22519</link>
    <description>&lt;P&gt;suppose my filed is like contain both plan and project and i want my found_project column as project,plan what should i do &lt;BR /&gt;
and the second query is not working as macth returns boolean only can u help once againg for this isssue??&lt;/P&gt;</description>
    <pubDate>Mon, 15 Oct 2012 05:50:13 GMT</pubDate>
    <dc:creator>Tridi123</dc:creator>
    <dc:date>2012-10-15T05:50:13Z</dc:date>
    <item>
      <title>how to compare multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-compare-multiple-fields/m-p/88081#M22517</link>
      <description>&lt;P&gt;i have key words like project,plan ,lease &lt;BR /&gt;
now if any file name if these key word hits i need to find which keywords have hitted.&lt;/P&gt;

&lt;P&gt;if my file mane is Project_plan gamil.doc then keywords hitted are&lt;/P&gt;

&lt;P&gt;project and plan.&lt;BR /&gt;
Can anyone help what should be the Splunk query for this require ment&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2012 04:43:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-compare-multiple-fields/m-p/88081#M22517</guid>
      <dc:creator>Tridi123</dc:creator>
      <dc:date>2012-10-12T04:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-compare-multiple-fields/m-p/88082#M22518</link>
      <description>&lt;P&gt;After the search, use a regex extraction like &lt;CODE&gt;rex&lt;/CODE&gt; or an eval function like &lt;CODE&gt;match&lt;/CODE&gt; to check the presence of the keyword in the source field. And make correction for any case case sensitive matching.&lt;BR /&gt;
Then you can have a field that will contain or not the matching.&lt;/P&gt;

&lt;P&gt;example :&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
mysearch | rex field=source "(?&lt;FOUND_PROJECT&gt;(?i)(project))" | table _time found_project source _raw &lt;BR /&gt;
&lt;/FOUND_PROJECT&gt;&lt;/PRE&gt;&lt;BR /&gt;
OR &lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
mysearch | eval source_lowercase=lower(source) | eval found_project=match(source_lowercase,project) | table _time found_project source _raw &lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:37:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-compare-multiple-fields/m-p/88082#M22518</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2020-09-28T12:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-compare-multiple-fields/m-p/88083#M22519</link>
      <description>&lt;P&gt;suppose my filed is like contain both plan and project and i want my found_project column as project,plan what should i do &lt;BR /&gt;
and the second query is not working as macth returns boolean only can u help once againg for this isssue??&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2012 05:50:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-compare-multiple-fields/m-p/88083#M22519</guid>
      <dc:creator>Tridi123</dc:creator>
      <dc:date>2012-10-15T05:50:13Z</dc:date>
    </item>
  </channel>
</rss>

