Getting Data In

Attempting to index a apache logs directory

jslocomb
New Member

I am attempting to index a apache logs directory.

We use cronolog to split our apache log files We have a sub directory rotate_logs that have historical logs in GZ format.

I want to only index the error log files in /etc/httpd/logs and not the access logs or any time from subdirectories.

Tags (1)
0 Karma

southeringtonp
Motivator

Sounds like you want a blacklist on the filename. You can also turn off recursion if you don't want to descend into subdirectories.

For example:

[monitor:///etc/httpd/logs]
recursive = false
blacklist = \.gz$

Take a look at:
http://www.splunk.com/base/Documentation/4.1.5/admin/Inputsconf

and:
http://www.splunk.com/base/Documentation/4.1.5/admin/Whitelistorblacklistspecificincomingdata#Blackl...

Genti
Splunk Employee
Splunk Employee

directory structure and exact filenames desired would help too

0 Karma

Simeon
Splunk Employee
Splunk Employee

It would help to have your current settings and parameters used for this input.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...