Splunk Search

input lookup aaa.csv fieldA=staff and fieldA=contractors |stats count

nathanluke86
Communicator

Hi,

How can I extract 2 values from fieldA in a lookup and ignore the rest then count as total

0 Karma
1 Solution

manjunathmeti
Champion

Try:

| inputlookup aaa.csv where fieldA IN ("staff", "contractors") |stats count

View solution in original post

manjunathmeti
Champion

Try:

| inputlookup aaa.csv where fieldA IN ("staff", "contractors") |stats count

nathanluke86
Communicator

Thank you,

0 Karma
Get Updates on the Splunk Community!

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...