# Is there any way through which i can show total investigations with the help of Groupby function

**URL:** <https://discuss.rapid7.com/t/is-there-any-way-through-which-i-can-show-total-investigations-with-the-help-of-groupby-function/53182>\
**Category:** Dashboards\
**Tags:** InsightIDR\
**Created:** [July 17, 2025, 9:51am UTC](https://discuss.rapid7.com/t/is-there-any-way-through-which-i-can-show-total-investigations-with-the-help-of-groupby-function/53182 "2025-07-17T09:51:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sul\_fazal](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/s/df788c/32.png) [@sul\_fazal](https://discuss.rapid7.com/u/sul_fazal)\
**Post date:** [July 17, 2025, 9:51am UTC](https://discuss.rapid7.com/t/is-there-any-way-through-which-i-can-show-total-investigations-with-the-help-of-groupby-function/53182/1 "2025-07-17T09:51:22Z")

</div>

Is there any way through which i can show in graphical form total investigations in graphicial form

---

<div class="post-metadata">

**Author:** ![JustinAR](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/j/8edcca/32.png) [@JustinAR](https://discuss.rapid7.com/u/JustinAR)\
**Post date:** [July 24, 2025, 4:06pm UTC](https://discuss.rapid7.com/t/is-there-any-way-through-which-i-can-show-total-investigations-with-the-help-of-groupby-function/53182/2 "2025-07-24T16:06:31Z")

</div>

Hello Saad,

Thank you for your patience and hopefully you found a good answer already. It does not seem Rapid7 has an innate way to query for all investigations. Of their audit logs’ keys, the one they are missing is for automatic/rule-based openings of Investigations. Here are the Investigation-related events that they are logged: [Audit Logging | InsightIDR Documentation](https://docs.rapid7.com/insightidr/audit-logging/#investigation-events)  
If you only manually open investigations then you can use that key, query for it, and build a dashboard card around it.  
Additionally I’ve seen a similar question asked a few years a go and the answer was that this was something to be added. I’m not yet very knowledgeable on R7. I would recommend something like querying the audit logs and using groupby(action) to get a decent estimate depending on your team’s investigation handling procedures. If every investigation is either assigned to someone or handled within a timely manner you can use the “action” key to get a good estimate with your time range. You can then add this query as a dashboard card.
