Getting Data In

Wildcard for Custom WinEventLogs

jodros
Builder

Our programmers code events to custom logs stored in the WinEventLog viewer. Instead of having to update the inputs.conf file for each new application and it's corresponding custom event log, is there a way to utilize wildcards? I know that they work for monitoring file directories, but I am unsure if that approach would work for WinEventLogs. We were thinking of prefacing each custom log with the same text and using wildcard in the inputs.conf. Currently this is not working for us. Example is below:

Log Names would begin with "ABC-"

[WinEventLog:ABC-*]
disabled = 0
start_from = oldest
current_only = 0
checkpointInterval = 5
sourcetype = dotnet
index = web

Any assistance would be appreciated.

Tags (2)
0 Karma

yannK
Splunk Employee
Splunk Employee

Wildcard in inputs.conf in a [WinEventLog:] stanza will not work.

I tested with
[WinEventLog:S*]
instead of
[WinEventLog:System]
[WinEventLog:Security] and failed.

jodros
Builder

Early morning bump. Anyone know if this can be accomplished? I am fine if I can use wildcards with the full path name. Any info would be appreciated.

0 Karma

jodros
Builder

So when I change it to the exact log name [WinEventLog:ABC-CustomApp] it works fine. Would really love to use the wildcard here in order to automatically pull in any new custom application logs.

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