Getting Data In

Exclude tar files in inputs.conf

tevgey23
Explorer

Hello,

Is there a way to "blacklist" or exclude tar.gz file with in a monitored directory in
the inputs.conf file.

For example.. I would like to monitoring /var/log/syslog/*
but not all the rotated tar files which have been created.
Just the .log file which have been created that day

Tags (1)
0 Karma
1 Solution

jtrucks
Splunk Employee
Splunk Employee

The docs at http://docs.splunk.com/Documentation/Splunk/6.0/admin/Inputsconf show under the Monitor section:

blacklist =
* If set, files from this input are NOT monitored if their path matches
the specified regex.
* Takes precedence over the deprecated _blacklist attribute, which functions the same way.

So in your case:

blacklist = *.tar.gz
--
Jesse Trucks
Minister of Magic

View solution in original post

jtrucks
Splunk Employee
Splunk Employee

The docs at http://docs.splunk.com/Documentation/Splunk/6.0/admin/Inputsconf show under the Monitor section:

blacklist =
* If set, files from this input are NOT monitored if their path matches
the specified regex.
* Takes precedence over the deprecated _blacklist attribute, which functions the same way.

So in your case:

blacklist = *.tar.gz
--
Jesse Trucks
Minister of Magic

ChrisG
Splunk Employee
Splunk Employee
0 Karma

jtrucks
Splunk Employee
Splunk Employee

Don't forget to mark it as accepted/answered!

--
Jesse Trucks
Minister of Magic
0 Karma

tevgey23
Explorer

Nice.. Thank you

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