<?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 Are Wildcards supported for use with UNC Paths? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95916#M19967</link>
    <description>&lt;P&gt;I am trying to index a UNC Path, but am unable to use wildcards.. &lt;/P&gt;

&lt;P&gt;Here's what I"m trying to match&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\\IISLOGS\MYSERVER01\W3SVC01\EX10.LOG
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't want to match this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\\IISLOGS\YOURSERVER01\W3SVC01\EX10.LOG
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The manual indicates I could use *, but am having no luck.. Have tried this..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\\IISLOGS\MYSERVER*
\\IISLOGS\MYSERVER*\
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;NO indexing at all occurs if I do this..&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2011 19:19:48 GMT</pubDate>
    <dc:creator>richnavis</dc:creator>
    <dc:date>2011-05-05T19:19:48Z</dc:date>
    <item>
      <title>Are Wildcards supported for use with UNC Paths?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95916#M19967</link>
      <description>&lt;P&gt;I am trying to index a UNC Path, but am unable to use wildcards.. &lt;/P&gt;

&lt;P&gt;Here's what I"m trying to match&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\\IISLOGS\MYSERVER01\W3SVC01\EX10.LOG
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't want to match this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\\IISLOGS\YOURSERVER01\W3SVC01\EX10.LOG
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The manual indicates I could use *, but am having no luck.. Have tried this..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\\IISLOGS\MYSERVER*
\\IISLOGS\MYSERVER*\
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;NO indexing at all occurs if I do this..&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2011 19:19:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95916#M19967</guid>
      <dc:creator>richnavis</dc:creator>
      <dc:date>2011-05-05T19:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Are Wildcards supported for use with UNC Paths?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95917#M19968</link>
      <description>&lt;P&gt;Your examples seem a bit odd to me, but to match your .LOG files in your example you would use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\\IISLOGS\MYSERVER01\W3SVC01\*.LOG
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;[EDIT]&lt;BR /&gt;
You could use the wildcard as such:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\\IISLOGS\MYSERVER*\W3SVC01\*.LOG
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 May 2011 19:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95917#M19968</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-05-05T19:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Are Wildcards supported for use with UNC Paths?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95918#M19969</link>
      <description>&lt;P&gt;Sorry... need to clarify my example.  Was hoping not to have a seperate entry for each server..&lt;BR /&gt;
Need to match the following..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\\IISLOGS\MYSERVER01\W3SVC01\EX10.LOG
\\IISLOGS\MYSERVER02\W3SVC01\EX10.LOG
\\IISLOGS\MYSERVER03\W3SVC01\EX10.LOG
\\IISLOGS\MYSERVER04\W3SVC01\EX10.LOG
\\IISLOGS\MYSERVER05\W3SVC01\EX10.LOG
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Don't want to match..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\\IISLOGS\YOURSERVER01\W3SVC01\EX10.LOG
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 May 2011 20:04:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95918#M19969</guid>
      <dc:creator>richnavis</dc:creator>
      <dc:date>2011-05-05T20:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Are Wildcards supported for use with UNC Paths?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95919#M19970</link>
      <description>&lt;P&gt;I updated my answer, basically just use more wildcards.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2011 20:39:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95919#M19970</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-05-05T20:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Are Wildcards supported for use with UNC Paths?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95920#M19971</link>
      <description>&lt;P&gt;Have you considered just eating \IISLOGS and using&lt;BR /&gt;
_blacklist = YOURSERVER&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/Data/Whitelistorblacklistspecificincomingdata"&gt;http://www.splunk.com/base/Documentation/latest/Data/Whitelistorblacklistspecificincomingdata&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2011 20:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95920#M19971</guid>
      <dc:creator>Michael_Wilde</dc:creator>
      <dc:date>2011-05-05T20:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Are Wildcards supported for use with UNC Paths?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95921#M19972</link>
      <description>&lt;P&gt;Awesome.. I could not get it to work using wildcards in the path, but using a WHITELIST, it worked perfectly... &lt;/P&gt;

&lt;P&gt;.*MYSERVER.*&lt;/P&gt;

&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2011 23:37:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95921#M19972</guid>
      <dc:creator>richnavis</dc:creator>
      <dc:date>2011-05-05T23:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Are Wildcards supported for use with UNC Paths?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95922#M19973</link>
      <description>&lt;P&gt;Update:  Did NOT work as expected... When creating a SECOND input for the same path for the second set of servers, I got a message indicating that I could not create an input with the same name.. &lt;/P&gt;

&lt;P&gt;This seems like pretty basic functionality.. Essentially, I want to create multiple indexes with files with a common path.. &lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2011 01:25:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95922#M19973</guid>
      <dc:creator>richnavis</dc:creator>
      <dc:date>2011-05-06T01:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Are Wildcards supported for use with UNC Paths?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95923#M19974</link>
      <description>&lt;P&gt;Splunk only lets you monitor a directory once.   What is your scheme for determining what data goes in which index?&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2011 01:36:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95923#M19974</guid>
      <dc:creator>Michael_Wilde</dc:creator>
      <dc:date>2011-05-06T01:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Are Wildcards supported for use with UNC Paths?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95924#M19975</link>
      <description>&lt;P&gt;We should be able to use your existing singular whitelist to eat the directory, but exclude everything other than your server, as you have done.&lt;/P&gt;

&lt;P&gt;Then..  create two files in the same dir called "props.conf" &amp;amp; "transforms.conf" (assuming you're in the $SPLUNK_HOME/etc/apps/search/local directory&lt;BR /&gt;
in props.conf, we can choose how events get selected and are processed by "transforms.conf".  Transforms.conf will make our "index-switching" happen on the fly.  Just tested it locally, seems to work just fine.&lt;/P&gt;

&lt;H1&gt;PROPS.CONF&lt;/H1&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::...Order...]
TRANSFORMS-moveorders = toIndex1

[source::...Product...]
TRANSFORMS-moveproducts = toIndex2

[source::...Customer...]
TRANSFORMS-movecustomers = toIndex3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H1&gt;TRANSFORMS.CONF&lt;/H1&gt;

&lt;PRE&gt;&lt;CODE&gt;[toIndex1]
DEST_KEY = _MetaData:Index
REGEX = .
FORMAT = Index1

[toIndex2]
DEST_KEY = _MetaData:Index
REGEX = .
FORMAT = Index2

[toIndex3]
DEST_KEY = _MetaData:Index
REGEX = .
FORMAT = Index3
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 May 2011 04:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95924#M19975</guid>
      <dc:creator>Michael_Wilde</dc:creator>
      <dc:date>2011-05-06T04:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Are Wildcards supported for use with UNC Paths?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95925#M19976</link>
      <description>&lt;P&gt;Finally able to get this to work.   Ended up deleting all the configuration on my server and recreating it, so potentially their was something conflicting?   Anyway, just wanted to close the loop on this, showing that you can wildcard in your inputs.conf file without using transforms... Here's three examples of syntax I used for the monitor headers that WORKED.&lt;/P&gt;

&lt;P&gt;[monitor://\ServerLogs\prod\prod-iislogs\HS1WS*...]&lt;/P&gt;

&lt;P&gt;[monitor://\ServerLogs\prod\prod-iislogs\HS2WS*...]&lt;/P&gt;

&lt;P&gt;[monitor://\ServerLogs\prod\prod-iislogs\SI1WS*...]&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2011 16:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-Wildcards-supported-for-use-with-UNC-Paths/m-p/95925#M19976</guid>
      <dc:creator>richnavis</dc:creator>
      <dc:date>2011-05-09T16:45:01Z</dc:date>
    </item>
  </channel>
</rss>

