Getting Data In

How to Watch Multiple Log Files with Similar Names with Universal Forwarder

yourknightmares
Explorer

Hi, I'm setting up Splunk Universal Forwarder to watch logs generated from an application I have in AWS Elastic Beanstalk. This is done by running shell script installing the Universal Forwarder and setting up monitors.

 

Simple enough. The problem is my application logs into a rolling file, meaning after a certain amount of data has been entered into the file (10MB in this example) it then creates a new file in the same location named "example 1.log" then "example 2.log", etc.

 

Currently I've tried using the below command to set up all the monitors with no success:

/opt/splunkforwarder/bin/splunk add monitor "/var/logs/example*"

 

How can I capture all the files it will create?

Labels (4)
0 Karma

manjunathmeti
Champion

What is the issue? Are you getting duplicate data or no data at all?

0 Karma

yourknightmares
Explorer

No data at all

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...

Index This | Divide 100 by half. What do you get?

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

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...