Getting Data In

How to achieve blacklist for folder level

splunkn
Communicator

I would like monitor all the files below except the first one
Because sample.log from environment a1 conusming more data and is not required to index
How to blacklist only this file from one environment?
How to achieve blacklist for folder level

/logs/sample/enva1/logs/sample.log
/logs/sample/enva2/logs/sample.log
/logs/sample/enva3/logs/sample.log
/logs/sample/enva4/logs/sample.log
/logs/sample/enva2/logs/purple.log
/logs/sample/enva4/logs/purple.log

Tags (2)
0 Karma

niketn
Legend

As one of the options you can define Blacklist in your inputs.conf for the monitor data input you currently have.

[monitor://<YourFolderStructure>\enva*\logs\*]
    blacklist = <YourFolderStructure>\enva1\logs\*

For information on Blacklisting refer to following documentation: https://docs.splunk.com/Documentation/Splunk/latest/Data/Whitelistorblacklistspecificincomingdata#Bl...

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

niketn
Legend

@splunkn were you able to try the blacklist solution?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...