Splunk Search

wmi how to do "where field in"

juniormint
Communicator

My goal is to get information on a list of processes. I think WMI is a decent way to do this, but keep getting a syntax error from the select below. Refactoring to have Name = "app1" or Name = "app2" etc works, but I'd rather understand why the below doesn't work.

[WMI:ProcessMemory]
interval=10
wql = select * from Win32_PerfFormattedData_PerfProc_Process Where Name in ("app1", "app2", "java")

Tags (2)
0 Karma
1 Solution

juniormint
Communicator

Windows Query Language (wql) does not appear to support where field in

View solution in original post

0 Karma

juniormint
Communicator

Windows Query Language (wql) does not appear to support where field in

0 Karma

juniormint
Communicator

yeah...I was just noticing...Windows Query Language (wql) does not appear to support it...grumble

0 Karma

somesoni2
Revered Legend

I believe WMI doesn't have IN clause.

0 Karma
Get Updates on the Splunk Community!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...