Getting Data In

WMI route to nullQueue based on host. Is it possible?

Paolo_Prigione
Builder

When retrieving EventLogs through WMI, the host value is assigned by a system/detault/props.conf config:

[wmi]
TRANSFORMS-FIELDS = wmi-host,...

Can I specify a "local" props where I use the [host::] stanza to apply some further TRANSFORMS?

I am getting troubles as it seems like when my stanza is executed, the events' host field is still the name of the HWF, i.e. my stanza's transforms are executed BEFORE [wmi-host].

My config stanza is like this:

[host::servername]
TRANSFORMS-IAS = sentAllToNullQueue, KeepIAS

p.s. if I modify the stanza to [WMI:WinEventLog:System] my configs work fine, except that they are applied to all the hosts, not just the one I need...

0 Karma
1 Solution

Paolo_Prigione
Builder

No, it is not possible.

TRANSFORMS are executed AFTER props.conf stanza evaluations. So, if I use transforms to assign a new host or sourcetype, the related [host::....] and [surcetype] stanzas are NOT applied.

The only way to go is to replicate transforms to apply any necessary modifications, such as routing to nullQueue, assign to different index, and so on.

View solution in original post

0 Karma

Paolo_Prigione
Builder

No, it is not possible.

TRANSFORMS are executed AFTER props.conf stanza evaluations. So, if I use transforms to assign a new host or sourcetype, the related [host::....] and [surcetype] stanzas are NOT applied.

The only way to go is to replicate transforms to apply any necessary modifications, such as routing to nullQueue, assign to different index, and so on.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...