Splunk Search

Problem with wildcard in inputs.conf?

SarahWKarvenz
Path Finder

I cannot seem to get my inputs.conf to accept the wildcard in the monitor string.
This is my inputs.conf file:

[default]
host = webLog

[monitor:///opt/log/www*]
index=web
host_segment=3

I get the following error in the splunkd.log:
ERROR TailingProcessor - matching /opt/log/www3/ against ^/opt/log/www[^/]*$

If I change my inputs to:
[monitor:///opt/log/www*]
index=web
host_segment=3

I get the following error in the splunkd.log:
ERROR TailingProcessor - matching /opt/log/www3/ against ^/opt/log/www[^/]*$

If I change it to:
[monitor:///opt/log/www1]
index=web
host_segment=3

It works and will grab all logs in the www1 folder.

Thanks!

Tags (1)

lguinn2
Legend

You need to use a different wild card for the directory name:

[monitor:///opt/log/www...]

Will work.

Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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