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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...