<?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: Searching for multiple strings in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-multiple-strings/m-p/17631#M2469</link>
    <description>&lt;P&gt;You need to use OR logic in your query as such:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_combined (frkcurrent OR dmanager)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check out the &lt;A href="http://www.splunk.com/base/Documentation/latest/User/StartSearching" rel="nofollow"&gt;this part of the documentation&lt;/A&gt; for a more in depth coverage of the search language.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jul 2010 20:04:26 GMT</pubDate>
    <dc:creator>ftk</dc:creator>
    <dc:date>2010-07-19T20:04:26Z</dc:date>
    <item>
      <title>Searching for multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-multiple-strings/m-p/17630#M2468</link>
      <description>&lt;P&gt;I'm trying to collect all the log info for one website into one query. The site uses two starting url's /dmanager and /frkcurrent. I'm trying to figure out a query that will give me both the dmanager and frkcurrent records&lt;/P&gt;

&lt;P&gt;I tried: sourcetype=access_combined &lt;EM&gt;frkcurrent&lt;/EM&gt; *dmanager*
but I don't get any results. I know I'm doing something wrong, but I'm not sure what. I looked through the search manual, but didn't see anything that stood out as an obvious answer.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2010 19:40:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-for-multiple-strings/m-p/17630#M2468</guid>
      <dc:creator>jxjackso</dc:creator>
      <dc:date>2010-07-19T19:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-multiple-strings/m-p/17631#M2469</link>
      <description>&lt;P&gt;You need to use OR logic in your query as such:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_combined (frkcurrent OR dmanager)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check out the &lt;A href="http://www.splunk.com/base/Documentation/latest/User/StartSearching" rel="nofollow"&gt;this part of the documentation&lt;/A&gt; for a more in depth coverage of the search language.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2010 20:04:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-for-multiple-strings/m-p/17631#M2469</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2010-07-19T20:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-multiple-strings/m-p/17632#M2470</link>
      <description>&lt;P&gt;Gah, I tied or, but didn't capitalize it.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2010 23:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-for-multiple-strings/m-p/17632#M2470</guid>
      <dc:creator>jxjackso</dc:creator>
      <dc:date>2010-07-19T23:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-multiple-strings/m-p/17633#M2471</link>
      <description>&lt;P&gt;If I have large number of nested OR conditions.. &lt;/P&gt;

&lt;P&gt;e.g. there are 40 error codes that I need to search through in logs to show only relevant events in timechart..&lt;/P&gt;

&lt;P&gt;what would be better option?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  multiple OR conditions  (1 OR 2  OR 3 ... OR 40 )
 configure a  lookup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In terms of tidiness  or adding new codes, lookup is better definetely. &lt;/P&gt;

&lt;P&gt;However there will be no increase in the error code list ever..&lt;/P&gt;

&lt;P&gt;So in terms of performance is the OR Clause or lookup preferred approach?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 12:23:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-for-multiple-strings/m-p/17633#M2471</guid>
      <dc:creator>stanwin</dc:creator>
      <dc:date>2015-09-18T12:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-multiple-strings/m-p/17634#M2472</link>
      <description>&lt;P&gt;@stanwin i'd suggest asking a new question and deleting this comment - this question has already been answered and might not get very much attention&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 17:31:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-for-multiple-strings/m-p/17634#M2472</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2015-09-18T17:31:22Z</dc:date>
    </item>
  </channel>
</rss>

