Refine your search:

I am attempting to calculate a running average with autoregress for a count of errors across a group of servers. I'm using the following query to get the data in 5-minute slices

index="monitoring" ServerErrors  | timechart span=5m sum(ServerErrors)

How would I get a running average of the last four hours of the values generated here? Do I want to use something like

| autogregress p1-48

My experience here is very limited, so I'm certain there is much I don't know about what's going on here.

asked 10 Mar '11, 21:22

dang's gravatar image

dang
125114
accept rate: 0%


One Answer:

I'd go this route:

index="monitoring" ServerErrors 
       | timechart span=5m sum(ServerErrors) as Error5MinSum 
       | streamstats avg(Error5MinSum) window=48

http://www.splunk.com/base/Documentation/latest/SearchReference/Streamstats

link

answered 10 Mar '11, 22:05

David's gravatar image

David
2.2k1320
accept rate: 46%

Thanks. This provided the kind of information I wanted.

(10 Mar '11, 23:49) dang
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×343

Asked: 10 Mar '11, 21:22

Seen: 787 times

Last updated: 10 Mar '11, 22:05

Copyright © 2005-2012 Splunk Inc. All rights reserved.