# How to create sla query

**URL:** <https://discuss.elastic.co/t/how-to-create-sla-query/314184>\
**Category:** Elasticsearch\
**Tags:** eql-elastic-query-language\
**Created:** [September 12, 2022, 10:38am UTC](https://discuss.elastic.co/t/how-to-create-sla-query/314184 "2022-09-12T10:38:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rain\_Water](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rain_water/32/98764_2.png) [@Rain\_Water](https://discuss.elastic.co/u/Rain_Water)\
**Post date:** [September 12, 2022, 10:38am UTC](https://discuss.elastic.co/t/how-to-create-sla-query/314184/1 "2022-09-12T10:38:00Z")

</div>

Hi im very new to elasticsearch and Currently I am using ELK + Grafana stack  
i want to create a simple sla query and using the simple math formula to calculate percentage of sla. i have created the formula just dont konw how to implement it.

It would be the best if I could use the solution directly in Grafana query bar, but I would be happy with anything else.

Thank you in advance for any help!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 10, 2022, 10:38am UTC](https://discuss.elastic.co/t/how-to-create-sla-query/314184/2 "2022-10-10T10:38:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
