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
.conf21 CFS Extended through 5/20!

Don't miss your chance
to share your Splunk
wisdom in-person or
virtually at .conf21!

Call for Speakers has
been extended through
Thursday, 5/20!