Getting Data In

Index Windows Robocopy Log files - Help!

psbailey
Engager

I am sure this is something simple that i am over looking here but basically i want to monitor a directory with all robocopy log files in it, so that each file is a single new event so i can setup alerts for certain key words that would indicate when things are not working. These logs get overwritten as the same file name multiple times a day. So i want splunk to archive each time they get overwritten with new information so we can monitor things. My first attempt was just something like this, and it doesn't seem to be working? ANY help would be greatly appreciated!

Thanks.

[monitor://D:\Apps\Scripts\SchedLogs]
alwaysOpenFile = 1
crcSalt =
index = _admin

Simon
Contributor

Try

crcSalt = <SOURCE>

AFAIK the case matters. And I'm pretty sure you don't need "alwaysOpenFile", since you're checking the file's CRC.

Btw: Do you really want to have the whole logfile in a single event? If yes, remember to set the line breaking adequately.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...