<?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: Help joining the 2 below searches in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-joining-the-2-below-searches/m-p/697997#M237086</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index="wpg" host=*pz-pay*) (OrderSummary OR (OrderSummary AND "Address is invalid, it might contain a card number"))
| eval is_invalid=if(searchmatch("Address is invalid, it might contain a card number"), 1, 0)
| stats count AS "Total", count(eval(is_invalid=1)) as Failure
| eval result = (Failure * 100)/Total&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 02 Sep 2024 15:56:42 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-09-02T15:56:42Z</dc:date>
    <item>
      <title>Help joining the 2 below searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-joining-the-2-below-searches/m-p/697992#M237083</link>
      <description>&lt;P&gt;Hi -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a requirement to join the below eval statement searches, would it be possible if someone could assist with the solution please?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;eval search 1 = index="wpg" host=*pz-pay* OrderSummary | stats count AS "Total"
eval search 2 = index="wpg" host=*pz-pay* OrderSummary AND "Address is invalid, it might contain a card number") | stats count AS "Failure"
eval result =( search 1/search 2)*100&lt;/LI-CODE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 15:59:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-joining-the-2-below-searches/m-p/697992#M237083</guid>
      <dc:creator>tomjb94</dc:creator>
      <dc:date>2024-09-02T15:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help joining the 2 below searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-joining-the-2-below-searches/m-p/697995#M237085</link>
      <description>&lt;P&gt;Try something llke this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="wpg" host=*pz-pay* OrderSummary
| eventstats count AS "Total"
| search "Address is invalid, it might contain a card number"
| stats count AS "Failure" values(Total) as Total
| eval result = (Total/Failure)*100&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 Sep 2024 15:41:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-joining-the-2-below-searches/m-p/697995#M237085</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-09-02T15:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help joining the 2 below searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-joining-the-2-below-searches/m-p/697997#M237086</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index="wpg" host=*pz-pay*) (OrderSummary OR (OrderSummary AND "Address is invalid, it might contain a card number"))
| eval is_invalid=if(searchmatch("Address is invalid, it might contain a card number"), 1, 0)
| stats count AS "Total", count(eval(is_invalid=1)) as Failure
| eval result = (Failure * 100)/Total&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 Sep 2024 15:56:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-joining-the-2-below-searches/m-p/697997#M237086</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-09-02T15:56:42Z</dc:date>
    </item>
  </channel>
</rss>

