Getting Data In

Proper way to blacklist .gz files in inputs.conf?

aferone
Builder

According to the documentation, it is this:

[monitor:///mnt/logs]
blacklist = .gz$

However, I've tried this and the many variations found in this knowledge base, and NONE of them are working!

Please help?

Tags (2)
0 Karma

koshyk
Super Champion

Please have a try

[monitor:///mnt/logs]
sourcetype=someSourcetype
index = myindex
blacklist = \.gz$

lguinn2
Legend

This example assumes that your gzip files all end with "gz" - lower case. How are your gzip files named?

0 Karma

aferone
Builder

That's precisely how they are named. It seems like it is now working? It looked like Splunk was finishing the file it had started and I couldn't stop it, even after a restart of the service.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...