<?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 make a search for two or more source file with wildcard or regex? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-make-a-search-for-two-or-more-source-file-with-wildcard/m-p/556189#M157933</link>
    <description>&lt;P&gt;What search criteria should I include to only get these logs?&lt;/P&gt;&lt;P&gt;D:\Applications\Windows.App.0001\app1\logs\log-06-17-2021-Test.log&lt;BR /&gt;D:\Applications\Windows.App.0002\app1\logs\log-06-17-2021-Test.log&lt;BR /&gt;D:\Applications\Windows.App.0003\app1\logs\log-06-172021-Test.log&lt;BR /&gt;D:\Applications\PBS20.01\app1\logs\log-06-17-2021-Test.log&lt;BR /&gt;D:\Applications\PBS20.02\app1\logs\log-06-17-2021-Test.log&lt;BR /&gt;D:\Applications\PBS20.03\app1\logs\log-06-17-2021-Test.log&lt;BR /&gt;D:\Applications\DDS0\app1\logs\log-06-17-2021-Test.log&lt;BR /&gt;D:\Applications\DDS1\app1\logs\log-06-17-2021-Test.log&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried this but it did not work&lt;/P&gt;&lt;P&gt;source="*Windows.App*log*Test.log" source="*PBS20*log*Test.log" source="*DDS*log*Test.log"&lt;BR /&gt;or this:&lt;BR /&gt;source="*Windows.App*log*Test.log" or source="*PBS20*log*Test.log" or source="*DDS*log*Test.log"&lt;BR /&gt;or this:&lt;BR /&gt;source="*(Windows.App|PBS20|DDS)*log*Test.log)"&lt;/P&gt;&lt;P&gt;I can not use the "Applications " keyword since this is a common folder a crosses all applications we are using.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jun 2021 18:43:54 GMT</pubDate>
    <dc:creator>iamuser</dc:creator>
    <dc:date>2021-06-17T18:43:54Z</dc:date>
    <item>
      <title>how to make a search for two or more source file with wildcard or regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-make-a-search-for-two-or-more-source-file-with-wildcard/m-p/556189#M157933</link>
      <description>&lt;P&gt;What search criteria should I include to only get these logs?&lt;/P&gt;&lt;P&gt;D:\Applications\Windows.App.0001\app1\logs\log-06-17-2021-Test.log&lt;BR /&gt;D:\Applications\Windows.App.0002\app1\logs\log-06-17-2021-Test.log&lt;BR /&gt;D:\Applications\Windows.App.0003\app1\logs\log-06-172021-Test.log&lt;BR /&gt;D:\Applications\PBS20.01\app1\logs\log-06-17-2021-Test.log&lt;BR /&gt;D:\Applications\PBS20.02\app1\logs\log-06-17-2021-Test.log&lt;BR /&gt;D:\Applications\PBS20.03\app1\logs\log-06-17-2021-Test.log&lt;BR /&gt;D:\Applications\DDS0\app1\logs\log-06-17-2021-Test.log&lt;BR /&gt;D:\Applications\DDS1\app1\logs\log-06-17-2021-Test.log&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried this but it did not work&lt;/P&gt;&lt;P&gt;source="*Windows.App*log*Test.log" source="*PBS20*log*Test.log" source="*DDS*log*Test.log"&lt;BR /&gt;or this:&lt;BR /&gt;source="*Windows.App*log*Test.log" or source="*PBS20*log*Test.log" or source="*DDS*log*Test.log"&lt;BR /&gt;or this:&lt;BR /&gt;source="*(Windows.App|PBS20|DDS)*log*Test.log)"&lt;/P&gt;&lt;P&gt;I can not use the "Applications " keyword since this is a common folder a crosses all applications we are using.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 18:43:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-make-a-search-for-two-or-more-source-file-with-wildcard/m-p/556189#M157933</guid>
      <dc:creator>iamuser</dc:creator>
      <dc:date>2021-06-17T18:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a search for two or more source file with wildcard or regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-make-a-search-for-two-or-more-source-file-with-wildcard/m-p/556223#M157940</link>
      <description>&lt;P&gt;The first form won't work because of the implied AND operator between each expression.&amp;nbsp; The source field cannot have more than one value at a time.&lt;/P&gt;&lt;P&gt;The second form should work, but the OR operator must be in upper-case.&lt;/P&gt;&lt;P&gt;The third form may work, but not as expected.&amp;nbsp; The search command does not support regular expressions so it will try to find the specified string literally.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 18:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-make-a-search-for-two-or-more-source-file-with-wildcard/m-p/556223#M157940</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-06-17T18:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a search for two or more source file with wildcard or regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-make-a-search-for-two-or-more-source-file-with-wildcard/m-p/556225#M157942</link>
      <description>&lt;P&gt;Thanks. The upper OR works. The other option I used is by using subquery. similar to this:&lt;BR /&gt;source="D:\\Applications*Test.Log" |&lt;BR /&gt;where like(source,&lt;SPAN&gt;"%Windows.App%log%Test.log"&lt;/SPAN&gt;)&amp;nbsp; or&amp;nbsp;like(source,&lt;SPAN&gt;"%PBS20%log%Test.log"&lt;/SPAN&gt;)&amp;nbsp; or&amp;nbsp;like(source,&lt;SPAN&gt;"%DDS%log%Test.log"&lt;/SPAN&gt;)&amp;nbsp; |&lt;BR /&gt;table source, _raw&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 18:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-make-a-search-for-two-or-more-source-file-with-wildcard/m-p/556225#M157942</guid>
      <dc:creator>iamuser</dc:creator>
      <dc:date>2021-06-17T18:43:07Z</dc:date>
    </item>
  </channel>
</rss>

