<?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 How do I combine two searches in an eval command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-two-searches-in-an-eval-command/m-p/613268#M213131</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;How do I combine two searches in an eval command? In the example below, I'm trying to create a value for "followup_live_agent" and "caller_silence" values. Splunk is telling me this query is invalid.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=conversation sourcetype=cui-orchestration-log botId=123456
| eval AgentRequests=if(match(intent, "followup_live_agent" OR "caller_silence"), 1, 0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is much appreciated!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2022 16:58:12 GMT</pubDate>
    <dc:creator>KyleMcDougall</dc:creator>
    <dc:date>2022-09-15T16:58:12Z</dc:date>
    <item>
      <title>How do I combine two searches in an eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-two-searches-in-an-eval-command/m-p/613268#M213131</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;How do I combine two searches in an eval command? In the example below, I'm trying to create a value for "followup_live_agent" and "caller_silence" values. Splunk is telling me this query is invalid.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=conversation sourcetype=cui-orchestration-log botId=123456
| eval AgentRequests=if(match(intent, "followup_live_agent" OR "caller_silence"), 1, 0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is much appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 16:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-two-searches-in-an-eval-command/m-p/613268#M213131</guid>
      <dc:creator>KyleMcDougall</dc:creator>
      <dc:date>2022-09-15T16:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Combing values in an eval match command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-two-searches-in-an-eval-command/m-p/613275#M213133</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;match&lt;/FONT&gt; function does not accept boolean expressions - only expects strings and fields containing strings.&amp;nbsp; Try breaking it into 2 &lt;FONT face="courier new,courier"&gt;match&lt;/FONT&gt; calls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=conversation sourcetype=cui-orchestration-log botId=123456
| eval AgentRequests=if(match(intent, "followup_live_agent") OR match(intent, "caller_silence"), 1, 0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 16:54:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-two-searches-in-an-eval-command/m-p/613275#M213133</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-15T16:54:41Z</dc:date>
    </item>
  </channel>
</rss>

