Monitoring Splunk

how to exclude .txt file in log directory from monitoring??

saifuddin9122
Path Finder

Hello,

i have log directory in which all files need to be monitored but i need to exclude file with .txt
am sure that i can do it with by mentioning black list

but the problem is my log file will be in abc.date.txt format.
can i use black list here if so can anyone let me know how??

Thanks in advance

Tags (1)
0 Karma
1 Solution

woodcock
Esteemed Legend

Like this (inside the appropriate stanza inside of inputs.conf):

blacklist = \.\d+\.(txt)$

View solution in original post

0 Karma

woodcock
Esteemed Legend

Like this (inside the appropriate stanza inside of inputs.conf):

blacklist = \.\d+\.(txt)$
0 Karma

saifuddin9122
Path Finder

Thanks it worked.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...