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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...