# Query grafana + api graylog

**URL:** <https://community.graylog.org/t/query-grafana-api-graylog/21969>\
**Category:** Graylog Central (peer support)\
**Created:** [December 7, 2021, 1:44pm UTC](https://community.graylog.org/t/query-grafana-api-graylog/21969 "2021-12-07T13:44:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafaelo2](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@rafaelo2](https://community.graylog.org/u/rafaelo2)\
**Post date:** [December 7, 2021, 1:44pm UTC](https://community.graylog.org/t/query-grafana-api-graylog/21969/1 "2021-12-07T13:44:46Z")

</div>

Hi guys im trying to export some data from graylog to dashboard. Its a very simple query:

I need the number of logs for each person in a table (aggregation,2 columns, format: data table, count() as metric, and name as filter), and then export this table to see it grafana via api.

Since legacy is disabled, I cant find a way to get via api this info.

I have been testing and fining a way out too much time.  
Maybe somebody can help me, thanks.

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [December 7, 2021, 11:57pm UTC](https://community.graylog.org/t/query-grafana-api-graylog/21969/2 "2021-12-07T23:57:15Z")

</div>

Hello && Welcome

I have been testing out the documentation from [here](https://docs.graylog.org/docs/metrics).  
Or you can create a Widget/Dashboard.

Don’t know if you seen this.  
[https://docs.graylog.org/docs/dashboards](https://docs.graylog.org/docs/dashboards)

Hope that helps

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [December 21, 2021, 11:57pm UTC](https://community.graylog.org/t/query-grafana-api-graylog/21969/3 "2021-12-21T23:57:52Z")

</div>

Closed on December 21, 2021, 11:57pm UTC

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