# \[ threat intelligence \]: Display the number of alerts generated by a specific rule

**URL:** <https://discuss.elastic.co/t/threat-intelligence-display-the-number-of-alerts-generated-by-a-specific-rule/260528>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [January 8, 2021, 10:27am UTC](https://discuss.elastic.co/t/threat-intelligence-display-the-number-of-alerts-generated-by-a-specific-rule/260528 "2021-01-08T10:27:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [January 8, 2021, 10:27am UTC](https://discuss.elastic.co/t/threat-intelligence-display-the-number-of-alerts-generated-by-a-specific-rule/260528/1 "2021-01-08T10:27:27Z")

</div>

Hello,

I would like to display in my canvas, the number of alertes generated the last 24 hours by a specific rule (Costume rule That I have created)

Could you tell me please how can I do that ?

Best regards

---

<div class="post-metadata">

**Author:** ![TheHunter1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thehunter1/32/80190_2.png) [@TheHunter1](https://discuss.elastic.co/u/TheHunter1)\
**Post date:** [January 8, 2021, 1:10pm UTC](https://discuss.elastic.co/t/threat-intelligence-display-the-number-of-alerts-generated-by-a-specific-rule/260528/2 "2021-01-08T13:10:45Z")

</div>

I found the solution,  
For all who wanna display the number of alerts for specific rule, you can use this query:

```auto
SELECT COUNT(*) as TotalCount FROM ".siem-signals-default-*"
WHERE "@timestamp" > NOW() - INTERVAL 24 HOURS
AND signal.rule.name = 'NameOfYourRule'

```

---

<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:** [February 5, 2021, 1:11pm UTC](https://discuss.elastic.co/t/threat-intelligence-display-the-number-of-alerts-generated-by-a-specific-rule/260528/3 "2021-02-05T13:11:06Z")

</div>

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