Splunk Search

In Config Files, are Slashes and Backslashes (non stanza headers) treated same?

jchensor
Communicator

I have a props.conf file where I need to point to a custom DATETIME_CONFIG xml file. Now, this file may go to either a Linux box or a Windows box. So right now, my DATETIME_CONFIG line looks as such:

DATETIME_CONFIG = ./FILE_datetime.xml

Will Splunk properly interpret this on both Windows and Linux? Or do I have to make special props.conf files for Linux and Windows, the latter being one with Backslashes instead?

I know they must be different when it comes to Stanza Headers. But being able to use RegEx in those helps, so I can do something like "source::.[\/]pathname[\/]filename.ext". But I'm not sure if that works in a VALUE under the stanza.

Thanks.

  • James
0 Karma

ziegfried
Influencer

As far as I know there is no path delimiter normalization in Splunk atm. At least with file monitors and scripted inputs this is the case. So my guess is you will have to create a separate props.conf for Windows.

0 Karma

jchensor
Communicator

Also, I just learned that relative path doesn't seem to work for that variable. It HAS to be the "full" path from "$SPLUNK_HOME$".

0 Karma
Get Updates on the Splunk Community!

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 ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...