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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...