Getting Data In

Filtering wmi events on a heavy forwarder.

aaronzabell
Path Finder

I have a bunch of light forwarders sending data to a central heavy forwarder which sends the data to the main indexer.

This is my props.conf and transforms.conf located on the central heavy forwarder. The light forwarders and main indexer do not have a props.conf or transforms.conf. Is this correct and/or what am I doing wrong and is there a more efficient way to do this? Thanks.

props.conf (located %SPLUNK_HOME\etc\system\local\props.conf)

[wmi]
TRANSFORMS-wmi=wminull

transforms.conf (located %SPLUNK_HOME\etc\system\local\transforms.conf)

[wminull]
REGEX=(?m)^Process_Name="C:\\Winpds\\Prismexe\\netman.exe"
DEST_KEY=queue
FORMAT=nullQueue

[wminull]
REGEX=(?m)^Process_Name="C:\\Program*\\Symantec\\Symantec*Endpoint*Protection\\Rtvscan.exe"
DEST_KEY=queue
FORMAT=nullQueue
Tags (2)
0 Karma
2 Solutions

aaronzabell
Path Finder

I think i found it. There is a "." in the REGEX. I needed to put a backslash "\" before the "." So the lines should have been:

REGEX=(?m)^Process_Name="C:\\Winpds\\Prismexe\\netman\.exe"

REGEX=(?m)^Process_Name="C:\\Program*\\Symantec\\Symantec Endpoint Protection\\Rtvscan\.exe"

Did I mention that I'm new to this whole REGEX thing?

View solution in original post

0 Karma

aaronzabell
Path Finder

I was completely off!

Process_Name can't be used (unless I want to get really hard core in editing other conf files)

Here is the working config:

props.conf

[WinEventLog:Security]
TRANSFORMS-null = setnull

transforms.conf

[setnull]
REGEX=(?msi)^EventCode=(520.*netman\.exe|4656.*rtvscan\.exe)
DEST_KEY=queue
FORMAT=nullQueue

View solution in original post

aaronzabell
Path Finder

I was completely off!

Process_Name can't be used (unless I want to get really hard core in editing other conf files)

Here is the working config:

props.conf

[WinEventLog:Security]
TRANSFORMS-null = setnull

transforms.conf

[setnull]
REGEX=(?msi)^EventCode=(520.*netman\.exe|4656.*rtvscan\.exe)
DEST_KEY=queue
FORMAT=nullQueue

aaronzabell
Path Finder

I think i found it. There is a "." in the REGEX. I needed to put a backslash "\" before the "." So the lines should have been:

REGEX=(?m)^Process_Name="C:\\Winpds\\Prismexe\\netman\.exe"

REGEX=(?m)^Process_Name="C:\\Program*\\Symantec\\Symantec Endpoint Protection\\Rtvscan\.exe"

Did I mention that I'm new to this whole REGEX thing?

0 Karma

aaronzabell
Path Finder

I even used the msi option.

0 Karma

aaronzabell
Path Finder

bump! Help? Anyone?

0 Karma

aaronzabell
Path Finder

Never mind. It still doesn't work!

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

Yes, this is right. Please see: http://www.splunk.com/wiki/Where_do_I_configure_my_Splunk_settings%3F for more about where to configure parsing settings.

0 Karma

aaronzabell
Path Finder

I don't think my syntax is correct though. These events are still being forwarded to the central indexer.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...