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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...