Getting Data In

Monitor files which have special characters in them?

Dingu
Explorer

Hello there,

I'm trying to monitor inputs files which have spaces in it which are in the below format but not all of the files are being captured . 

Kindly advise me if my inputs need to be corrected in any way.

E:\files\xxxxx\eeeee\Error_20200528173833_70515016_ssss yyyy  Planning Mapping - Update Dimensions.log

E:\files\xxxx\eeee\Error_20200615161548_31008196_ Origination Dimension Build.log

My current configuration:

[monitor://E:\files\xxxx\eeee\Error_*]
index = <myindex>
disabled = false
sourcetype = <mysourcetype>
ignoreOlderThan = 30d
crcSalt = <SOURCE>

Labels (1)
0 Karma

anilchaithu
Builder

@Dingu 

If you have spaces in the log file name, you should monitor the base directory to monitor the log files 

 

[monitor://E:\files\xxxx\eeee]
index = <myindex>
disabled = false
sourcetype = <mysourcetype>
ignoreOlderThan = 30d
crcSalt = <SOURCE>

 

 

Hope this helps

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...