Splunk Search

How do I make a query which finds logs where the value for a field matches?

infcl
Explorer

Log1: id=5 errorA
Log2: id=5 errorB

I would like a query to return the logs with the same id value grouped together. Or more simply, a count of the number of matches.

Thanks.

0 Karma

burwell
SplunkTrust
SplunkTrust

If you want a count you could do your search with | stats count by id

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...