<?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 Use wildcard in source? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358032#M105871</link>
    <description>&lt;P&gt;I have a directory C:\logs&lt;/P&gt;

&lt;P&gt;in this directory I have multiple files:&lt;/P&gt;

&lt;P&gt;1: logging-projectname-0.log (There can be multiple files like *-1.log, *-2.log etc..)&lt;BR /&gt;
2: logging-projectname-batch-0.log (There can be multiple files like *batch-1.log, *batch-2.log etc..)&lt;/P&gt;

&lt;P&gt;I only want to search the files like #1. So, I tried ---- source="c:\logs\logging-projectname-[0-9]{1,}.log" SEARCH_STRING&lt;/P&gt;

&lt;P&gt;It's not working. Can anyone suggest?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2017 09:12:25 GMT</pubDate>
    <dc:creator>nishantjiit</dc:creator>
    <dc:date>2017-11-09T09:12:25Z</dc:date>
    <item>
      <title>Use wildcard in source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358032#M105871</link>
      <description>&lt;P&gt;I have a directory C:\logs&lt;/P&gt;

&lt;P&gt;in this directory I have multiple files:&lt;/P&gt;

&lt;P&gt;1: logging-projectname-0.log (There can be multiple files like *-1.log, *-2.log etc..)&lt;BR /&gt;
2: logging-projectname-batch-0.log (There can be multiple files like *batch-1.log, *batch-2.log etc..)&lt;/P&gt;

&lt;P&gt;I only want to search the files like #1. So, I tried ---- source="c:\logs\logging-projectname-[0-9]{1,}.log" SEARCH_STRING&lt;/P&gt;

&lt;P&gt;It's not working. Can anyone suggest?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 09:12:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358032#M105871</guid>
      <dc:creator>nishantjiit</dc:creator>
      <dc:date>2017-11-09T09:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Use wildcard in source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358033#M105872</link>
      <description>&lt;P&gt;Why don't you just use a wildcard like you mentioned it yourself?&lt;BR /&gt;
Nevermind that.&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;

&lt;P&gt;edit: deleted my search string.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 10:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358033#M105872</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2017-11-09T10:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Use wildcard in source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358034#M105873</link>
      <description>&lt;P&gt;Another option would be this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | regex source="c:\\\\logs\\\\logging-projectname-\d+\.log"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Nov 2017 11:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358034#M105873</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-09T11:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Use wildcard in source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358035#M105874</link>
      <description>&lt;P&gt;This should be an OR, not an AND.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 13:06:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358035#M105874</guid>
      <dc:creator>xavierashe</dc:creator>
      <dc:date>2017-11-09T13:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Use wildcard in source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358036#M105875</link>
      <description>&lt;P&gt;Oh, you're correct. I've misread that. Thought he wants only one but not the other one.&lt;/P&gt;

&lt;P&gt;I'll edit it.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 13:08:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358036#M105875</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2017-11-09T13:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Use wildcard in source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358037#M105876</link>
      <description>&lt;P&gt;&lt;CODE&gt;source&lt;/CODE&gt; uses wildcards, not regular expressions.  somesoni2's suggestion should work.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 13:56:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358037#M105876</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-11-09T13:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use wildcard in source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358038#M105877</link>
      <description>&lt;P&gt;Thanks it worked&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 16:51:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358038#M105877</guid>
      <dc:creator>nishantjiit</dc:creator>
      <dc:date>2017-11-09T16:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Use wildcard in source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358039#M105878</link>
      <description>&lt;P&gt;@nishantjiit, please accept an answer.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 21:29:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358039#M105878</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-11-09T21:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use wildcard in source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358040#M105879</link>
      <description>&lt;P&gt;@skalliger&lt;BR /&gt;
stop being a noob &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 10:50:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358040#M105879</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2017-11-10T10:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use wildcard in source?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358041#M105880</link>
      <description>&lt;P&gt;Should have deleted my comment. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 12:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-wildcard-in-source/m-p/358041#M105880</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2017-11-10T12:18:36Z</dc:date>
    </item>
  </channel>
</rss>

