Getting Data In

Escaping backslashes for Windows paths in props.conf

Ranazar
Path Finder

In my props.conf I need a [source::] stanza to override some settings from a [sourcetype] stanza. The source is a file on a Windows server, so I take a look at the props.conf documentation, and follow these instructions:

When you specify Windows-based file paths as part of a [source::<source>] stanza, you must escape any backslashes contained within the specified file path.
Example: [source::c:\\path_to\\file.txt]

But that seems to be flat out wrong. If I use this:

[source::C:\\dir1\\dir2\\app.log]

it doesn't match. Change it to:

[source::C:\dir1\dir2\app.log]

and it matches.
Am I missing something obvious, or is the documentation just wrong?

0 Karma

skalliger
SplunkTrust
SplunkTrust

As far as I remember, you don't have to escape any paths as long as they don't contain spaces. You can scroll to the end of the docs page and use the "provide feedback" form. The docs team should reply to you in a few days. 🙂

Skalli

Ranazar
Path Finder

Yeah, the doc team was really responsive when I reached out once before. I just wanted to make sure it's actually an error and not just a case of Idiot User.

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...