Getting Data In

Unable to whitelist only Error EventID's sent from UF to Indexer

sneha_nv
Engager

Hi Team,

From Windows Event Viewer logs we can onboard all Event ID's generated for "Application" and "System" Event logs but unable to onboard filtered events based on Event Code OR Type(Error/Warning).
 
Below is inputs.conf written by me to filter-out the events which is not working.Also followed the below splunk docs.
 
[WinEventLog ://Application]
disabled = 0
whitelist = Type="^[Error|Critical]"
index = test
 
OR
 
[WinEventLog://Application]
disabled = 0
whitelist = EventCode="1001|11707"
index = test
 
 
 
Please check with your seniors on How can we whitelist only Error events in Application or System Event logs. Please find the attachement
 
sneha_nv_0-1599544724108.png

 

 
Labels (1)
0 Karma

sneha_nv
Engager

it worked for me 

[WinEventLog://System]
disabled = 0
whitelist1 = Type="^[Error]"
whitelist2 = Type="^[Critical]"
whitelist3 = Type="^[Warning]"
index = test

 
[WinEventLog://Application]
disabled = 0
whitelist1 = Type="^[Error]"
whitelist2 = Type="^[Critical]"
whitelist3 = Type="^[Warning]"

index = test

0 Karma

thambisetty
SplunkTrust
SplunkTrust

I suggest you to replace [] with (), characters between [] will match individually for example

[Error] - matches E or r or r or o or r anywhere in the event.

(Error) -matches only Error

————————————
If this helps, give a like below.
0 Karma

sneha_nv
Engager

Also If I don't know the error Eventcode and only based on Type(Error/Warning) want to collect the "Application" and "Sysytem" logs

What will be my inputs.conf in this scenario while on-boarding data from UF to Indexer

0 Karma

thambisetty
SplunkTrust
SplunkTrust

try below:

[WinEventLog://Application]
disabled = 0
whitelist = EventCode="^(1001|11707)$"
index = test
[WinEventLog://System]
disabled = 0
whitelist1 = EventCode="7011" #no space between whitelist and number
whitelist2 = Type="^(Error|Critical)$"
index = test
————————————
If this helps, give a like below.
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

 Ready to master Kubernetes and cloud monitoring like the pros? Join Splunk’s Growth Engineering team for an ...

Update Your SOAR Apps for Python 3.13: What Community Developers Need to Know

To Community SOAR App Developers - we're reaching out with an important update regarding Python 3.9's ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...