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
SplunkTrust
SplunkTrust

Try:

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

View solution in original post

manjunathmeti
SplunkTrust
SplunkTrust

Try:

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

nathanluke86
Communicator

Thank you,

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...