Getting Data In

What is the correct stanza to monitor access logs on my Ubuntu apache web server?

attraqt
Explorer

Hi Guy's.

I'm currently looking to monitoring specific access logs on my apache web server - Ubuntu. Currently i just monitor a whole directory but i want to specify specifc logs:

My current:

[monitor:///var/log/apache2]
sourcetype = access_log

New config:

[monitor:///var/log/apache2/access.log*]
sourcetype = access_log

When using the new config it is picking up application.log, sync.log. How can i restrict it to file with the name: access.log*

Cheers,

J.

0 Karma

emiller42
Motivator

The new config you specified should only grab /var/log/apache2/access.log*. If you're getting things that don't match that pattern, there is most likely some other input configured that's grabbing them.

To see all of the inputs configured on your forwarder, you can run $SPLUNK_HOME\bin\splunk btool inputs list and then look for any stanzas which match the files you don't want to collect.

0 Karma
Get Updates on the Splunk Community!

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

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...