Getting Data In

Multiple wildcards for file path in inputs.conf

budimaos
Engager

I need to monitor a file under multiple similar paths, the full path can be dynamic so putting absolute path is not an option.

Actual path example: E:\OpenPages\profiles\OpenPagesNode1\logs\OpenPagesNodeServer2Server3\http_error.log

So I have the following monitor stanza and it doesn't pick up the files. Nothing useful in _internal log which indicate any problem.

[monitor://E:\OpenPages\profiles\OpenPagesNode*\logs\OpenPagesNodeServer*\http_error.log]

I suspect it's due to multiple wildcards on the path, since other file with similar stanza picked up just fine, as below,

[monitor://E:\OpenPages\profiles\OpenPagesNode*\logs\ffdc\(nodeagent|OpenPagesNode)*.log]

I can't really play around with it at the moment, but I'm pretty sure it'll work if I use the following monitor stanza instead,

[monitor://E:\OpenPages\profiles\...\http_error.log]

But I want to avoid it if possible since it will force the forwarder to traverse through all irrelevant subdirectories.

Any good suggestion?

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...