Getting Data In

UNC Path with $ sign

peter_gianusso
Communicator

We have an UNC name in the inputs.conf

monitor://\njros1bva0597\d$\LogFiles\W3SVC1\*.log

I suspect our share, d$, is the problem as to why this is not working. When it gets converted to regex, I think $ is a special character in regex.

Any suggestions? We can't change the Windows share name.

Tags (3)
0 Karma
1 Solution

peter_gianusso
Communicator

Splunk does not like the d$ in the UNC path. It can't handle it. Must be an inputs.conf and props.conf approach.

inputs.conf
[monitor://\njros1bva0597d$LogFilesW3SVC1]
disabled = 0
host = NJROS1BVA0621ABC
index=imaging
whitelist = .log$

Props.conf
[source::...\CAPPM*.log] sourcetype = SOURCE1

View solution in original post

peter_gianusso
Communicator

Splunk does not like the d$ in the UNC path. It can't handle it. Must be an inputs.conf and props.conf approach.

inputs.conf
[monitor://\njros1bva0597d$LogFilesW3SVC1]
disabled = 0
host = NJROS1BVA0621ABC
index=imaging
whitelist = .log$

Props.conf
[source::...\CAPPM*.log] sourcetype = SOURCE1

bwooden
Splunk Employee
Splunk Employee

Monitor statements proper support wildcard matching (*) and recursive directory matching (...). Regular expressions can be used as monitor options, for whiltelist and blacklist as an example, but the dollar sign shouldn't be causing problems here.

Is Splunk running as a local system account or as a domain account with network privileges? If it is running as a local system account it may not be able to access network shares. If that is the case the service will need to be configured to run as a service account with access to the network path.

Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...