Splunk Search

Using AVG function with count

jsights
New Member

I'm a brand new Splunk user, so I apologize if this is an extremely basic question. This is the query I'm running:

loggingAppId=ABC loggingOperationName=Operation.Name loggingMethodName=Logging.Method | timechart count by loggingAppId

This is functioning as expected. However, I would like to get the average of the results. i.e. If I run this for a 30 day time span, I'd like the average of those 30 days. Here's an example of a query I've attempted unsuccessfully to get this:

loggingAppId=ABC loggingOperationName=Operation.Name loggingMethodName=Logging.Method | stats avg count by loggingAppId

I'd greatly appreciate if someone could tell me what I'm doing wrong. Thanks a lot from a newbie!

Tags (1)
0 Karma

pradeepkumarg
Influencer
loggingAppId=ABC loggingOperationName=Operation.Name loggingMethodName=Logging.Method  | timechart span=1d count by loggingAppId | stats avg(count) by loggingAppId 
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...

Edge Processor Scaling, Energy & Manufacturing Use Cases, and More New Articles on ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Get More Out of Your Security Practice With a SIEM

Get More Out of Your Security Practice With a SIEMWednesday, July 31, 2024  |  11AM PT / 2PM ETREGISTER ...