Getting Data In

Is it possible to monitor and index files in a folder that has multiple periods in the name?

Michael_Ekkert
New Member

Hi,

I'm using Splunk 6.1.3 for Windows and have an issue with indexing files that reside in a folder that contains periods in the folder name.

An example is D:\Application\Logs\Z.Y.Z\APP01_13776_20161019.log

I have attempted a few different syntax formats listed below and will not index the files. Any suggestions as to how I can identify why it's not indexing these APP*.log files?

[monitor://D:\Application\Logs\...\APP*.log]
crcSalt = 
ignoreOlderThan = 2d
index = indexname
sourcetype = sourcetypename
recursive=false
disabled=false

[monitor://D:\Application\Logs\X.Y.Z\APP*.log]
crcSalt = 
ignoreOlderThan = 2d
index = indexname
sourcetype = sourcetypename
recursive=false
disabled=false

Thanks for any assistance.

0 Karma

ddrillic
Ultra Champion

Why the extra slash at

[monitor://D:\Application\Logs\\...\APP*.log]

[monitor://D:\Application\Logs\...\APP*.log]

should do it...

What about?

[monitor://D:\Application\Logs\*\APP*.log]
0 Karma

Michael_Ekkert
New Member

Yeah.. I just tried that not too long ago and the wildcard doesn't pickup either.. the extra "\" was due to the way the edit rendered and didn't display in the preview correctly.. I've edited the post.

0 Karma

ddrillic
Ultra Champion

And if you put the Z.Y.Z in the monitor, does it work?

0 Karma

Michael_Ekkert
New Member

If I explicitly added the full name, it works -- I was looking to avoid having to create 32 stanzas.. I presume it's a limitation of the matching logic or something.

i'll just go down the creation route.. thanks.

0 Karma

ddrillic
Ultra Champion

It doesn't make any sense. A limitation - maybe a bug ; -) smells like a bug for sure...

0 Karma
Get Updates on the Splunk Community!

Index This | What did the zero say to the eight?

June 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

Splunk Observability Cloud's AI Assistant in Action Series: Onboarding New Hires & ...

This is the fifth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Now Playing: Splunk Education Summer Learning Premieres

It’s premiere season, and Splunk Education is rolling out new releases you won’t want to miss. Whether you’re ...