Getting Data In

monitor blacklist Question

rameshlpatel
Communicator

Hi,

I have log file with name of erlDirService_log.log and erlDirService_error.log.

I want to put this in blacklist in monitor stanza(inputs.conf).

So How should I do this ?

Tags (2)
0 Karma

Ayn
Legend
[monitor:///your/path]
blacklist = erlDirService_log\.log|erlDirService_error\.log
0 Karma

Ayn
Legend

Yes and no - you can definitely do wildcarding, but it needs to be in regex syntax. Like erlDirService.*\.log. But if you're doing this in a production environment and don't really know what you're doing, I would suggest you to read up on how this works.

rameshlpatel
Communicator

Can we make this in single like (Just example, dont know in splunk)

blacklist = erlDirService*.log

0 Karma

rameshlpatel
Communicator

I read the doc but its uncleared. I have to put this directly on production so i didnt try. I want to sure at first time.

0 Karma

Ayn
Legend

What did you try that didn't work? What in the docs is unclear?

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 ...