Getting Data In

Why is WMI Input field data being truncated?

dstaulcu
Builder

So I would like to implement a WMI based input via WMI.conf among a subset of Splunk Universal Forwarders. In this case, I'd like to log PnpSignedDrivers. Here is the input I have defined in WMI.conf

[WMI:Win32_PnPSignedDriver]
interval = 10
wql = SELECT Description, DeviceClass, DeviceID, DeviceName, DriverDate, DriverVersion, FriendlyName, InfName, IsSigned, Location, Manufacturer FROM Win32_PnPSignedDriver

I'm getting events BUT WMI object properties such as DeviceName seem to get truncated after the first word. For instance, in Splunk the corresponding event for the DeviceName of my network interface is "Broadcom", but the actual property value of the WMI object is "Broadcom 802.11n Network Adapter".

Am I doing something wrong is this a bug?

1 Solution

dstaulcu
Builder

ah... just looked at _raw field and the full details are in there. I guess I need to tweak field default extractions somehow

View solution in original post

dstaulcu
Builder

ah... just looked at _raw field and the full details are in there. I guess I need to tweak field default extractions somehow

dstaulcu
Builder

Well.. Here's a field extraction if you need it...

WMI:Win32_PnPSignedDriver : EXTRACT-WMI:Win32_PnPSignedDriver

Inline

^(?<eventtime>\d+\.\d+)\s+Description=(?<Description>.*)\s+DeviceClass=(?<DeviceClass>.*)\s+DeviceID=(?<DeviceID>.*)\s+DeviceName=(?<DeviceName>.*)\s+DriverDate=(?<DriverDate>(NULL|\d{8}))(0{6}\.[*+]+)?\s+DriverVersion=(?<DriverVersion>.*)\s+FriendlyName=(?<FriendlyName>.*)\s+InfName=(?<InfName>.*)\s+IsSigned=(?<IsSigned>.*)\s+Location=(?<Location>.*)\s+Manufacturer=(?<Manufacturer>.*)\s+wmi_type=(?<wmi_type>.*)$ 

alvn_sulendra
Explorer

is there any way to put the value within quote? so that we don't need to update the field extraction if we add or remove field that we want to get.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...