<?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 to apply multiple criteria in a single Splunk search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-multiple-criteria-in-a-single-Splunk-search/m-p/271115#M81618</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I try to create a saved search to fit into the following logic.  How can I combine multiple criteria into one single Splunk search?  Thanks.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;sourcetype=xyz&lt;BR /&gt;
c_application starts with Mozilla AND&lt;BR /&gt;
(&lt;BR /&gt;
    (file_name starts with "mabcd"   AND&lt;BR /&gt;
     url matches "http://[a-z]{4\,8}-[a-z]{1\,7}\.net/[a-z]{4\,8}\.php$" &lt;BR /&gt;
   )  OR&lt;BR /&gt;
   ( path ends with "=="   AND&lt;BR /&gt;
     url matches "http://[a-z]{14\,21}\.net/[a-z]{4\,8}\.php$"&lt;BR /&gt;
  )  OR&lt;BR /&gt;
    url matches "[a-z]{4,10}/[a-z_-]{139,157}.(php|html)"&lt;BR /&gt;
)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 09:16:41 GMT</pubDate>
    <dc:creator>splunkrocks2014</dc:creator>
    <dc:date>2020-09-29T09:16:41Z</dc:date>
    <item>
      <title>How to apply multiple criteria in a single Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-multiple-criteria-in-a-single-Splunk-search/m-p/271115#M81618</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I try to create a saved search to fit into the following logic.  How can I combine multiple criteria into one single Splunk search?  Thanks.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;sourcetype=xyz&lt;BR /&gt;
c_application starts with Mozilla AND&lt;BR /&gt;
(&lt;BR /&gt;
    (file_name starts with "mabcd"   AND&lt;BR /&gt;
     url matches "http://[a-z]{4\,8}-[a-z]{1\,7}\.net/[a-z]{4\,8}\.php$" &lt;BR /&gt;
   )  OR&lt;BR /&gt;
   ( path ends with "=="   AND&lt;BR /&gt;
     url matches "http://[a-z]{14\,21}\.net/[a-z]{4\,8}\.php$"&lt;BR /&gt;
  )  OR&lt;BR /&gt;
    url matches "[a-z]{4,10}/[a-z_-]{139,157}.(php|html)"&lt;BR /&gt;
)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:16:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-multiple-criteria-in-a-single-Splunk-search/m-p/271115#M81618</guid>
      <dc:creator>splunkrocks2014</dc:creator>
      <dc:date>2020-09-29T09:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to apply multiple criteria in a single Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-apply-multiple-criteria-in-a-single-Splunk-search/m-p/271116#M81619</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;P&gt;**Its good to add index as well for faster searching, if possible.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=yourindex sourcetype=xyz c_application=Mozilla* | where (like(file_name,"mabcd%")  AND match(url,"http:\/\/[a-z]{4,8}-[a-z]{1,7}\.net\/[a-z]{4,8}\.php$" ) OR ( like(path,"%==") AND match(url, "http:\/\/[a-z]{14,21}\.net\/[a-z]{4,8}\.php$") ) OR (match(url, "[a-z]{4,10}\/[a-z_-]{139,157}.(php|html)$"))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Mar 2016 20:11:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-apply-multiple-criteria-in-a-single-Splunk-search/m-p/271116#M81619</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-31T20:11:08Z</dc:date>
    </item>
  </channel>
</rss>

