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!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...