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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...