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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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