# Create an alert based on moving time frame

**URL:** https://discuss.elastic.co/t/create-an-alert-based-on-moving-time-frame/365626
**Category:** Kibana
**Tags:** elastic-stack-alerting
**Created:** [August 27, 2024, 2:37pm UTC](https://discuss.elastic.co/t/create-an-alert-based-on-moving-time-frame/365626 "2024-08-27T14:37:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kirankgummadi](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kirankgummadi](https://discuss.elastic.co/u/kirankgummadi)
#### Post date: [August 27, 2024, 2:37pm UTC](https://discuss.elastic.co/t/create-an-alert-based-on-moving-time-frame/365626/1 "2024-08-27T14:37:33Z")

</div>

Hi - is there a way to create an alert based on an increase/decrease in average response time for the past 5 min compared to the last 30 mins?  
For example, if the average response time for past 30 mins is 300ms and the average response time for the past 5 mins is 500 ms, which is quite a jump, is there a way to trigger an alert based on it?
