Getting Data In

inputs.conf monitor question

hank72
Path Finder

Hi Community,

I have a inputs.conf monitor that looks like this

[monitor:///var/log/logfiles/.../app.log]
index=englogs
sourcetype=eng:custom

The above monitor will cover these paths to the app.log files
/var/log/logfiles/database/eng/comm/surface/app.log
/var/log/logfiles/trunk/sec/comm/water/app.log
/var/log/logfiles/other/fin/app.log
And many, many more...

I have a file that I want to sourcetype as access_combined (not eng:custom).
/var/log/logfiles/scapes/web01/app.log
This path falls within the scope of the above monitored stanza.

What is the best way to accomplish this? Do I use a blacklist in the .../app.log eng:custom monitor and then create another monitor stanza for the web01/app.log access_combined that immediately follows this?

Thank you

Labels (2)
0 Karma

SinghK
Builder

Yes, thats correct.

0 Karma

SanjayReddy
SplunkTrust
SplunkTrust

Hi @hank72 


Yes, you are correct, you can mention blacklist = /var/log/logfiles/scapes/web01/app.log 

and Create new moniotring stanza , that should work 

-----------
Regards
Sanjay Reddy 

0 Karma
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...