Getting Data In

Collecting Windows eventlogs with whitelist based on word

ArsenyKapralov
Path Finder

Hi

I need to collect all Windows security logs from my infrastructure with Splunk UF installed which include specific Keyword
I'm using following config for Splunk add-on for Windows, but this results in collecting all logs from server.

[WinEventLog://Security]
disabled = 0
start_from = oldest
current_only = 0
checkpointInterval = 5
whitelist1 = (?msi)^Workstation\s+Name\:\s+KEYWORD
index = wineventlog
renderXml=false

How can I do this correctly?

0 Karma

ddrillic
Ultra Champion

You should be able to do it provided you have the event field name.
The syntax is -

whilelist = <list> | key=regex [key=regex]

You have so far -

whitelist1 = (?msi)^Workstation\s+Name\:\s+KEYWORD

Based on the doc you provided at Monitor Windows event log data
you need to identify the key -

alt text

0 Karma

gcusello
SplunkTrust
SplunkTrust

Yes in this way you take all security eventlogs.
if you want not all logs but only the ones that contain specific words, you have to filter them using props.conf and transforms.conf on your indexer.
Bye.
Giuseppe

0 Karma

ArsenyKapralov
Path Finder

Yes, this is traditional way for doing this, but it impacts performance of indexers.

As I found in docs (http://docs.splunk.com/Documentation/Splunk/6.4.2/Data/MonitorWindowseventlogdata) I have ability to filter some logs on UF side and filter could be based on regex.
So my question is what am I doing wrong in my example and how to make it working?

0 Karma

gcusello
SplunkTrust
SplunkTrust

For my Splunk knowledge, Universal Forwarders don't parse logs, parsing is done by Heavy Forwarders and Indexers.

There are two ways to don't parse logs on the Indexer:

  • put an Heavy Forwarder between Universal Forwarders and Indexer and use it to filter logs,
  • get logs not directly from wineventlog but from a script that runs on the Universal Forwarder and writes the filtered logs in a file.

Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...