Splunk Enterprise

Count number of events by a value(ServiceName) in log file

vineetc
Engager

I want to count number of events in the log file based on a serviceName and then plot them with Counts by ServiceName

Sample LogFile:

<Timestamp> Invoked Service1
<Timestamp> Invoked Service2
<Timestamp> Invoked Service3
<Timestamp> Invoked Service3
<Timestamp> Invoked Service1
<Timestamp> Invoked Service2
<Timestamp> Invoked Service1

I should get the count of invocation by service

Tags (1)
0 Karma

somesoni2
Revered Legend

If the field ServiceName is already extracted try this

your base search | stats count by ServiceName

OR

your base search | timechart count by ServiceName
0 Karma
Get Updates on the Splunk Community!

New Dates, New City: Save the Date for .conf25!

Wake up, babe! New .conf25 dates AND location just dropped!! That's right, this year, .conf25 is taking place ...

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud  In today’s fast-paced digital ...

Observability protocols to know about

Observability protocols define the specifications or formats for collecting, encoding, transporting, and ...