# Grafana + Graylog VIA API

**URL:** <https://community.graylog.org/t/grafana-graylog-via-api/22008>\
**Category:** Graylog Central (peer support)\
**Created:** [December 10, 2021, 8:18am UTC](https://community.graylog.org/t/grafana-graylog-via-api/22008 "2021-12-10T08:18:40Z")\
**Posts on this page:** 5\
**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 10, 2021, 8:18am UTC](https://community.graylog.org/t/grafana-graylog-via-api/22008/1 "2021-12-10T08:18:40Z")

</div>

Hi guys in my first post i dindt explain my problem properly, im trying to export some data from Graylog to GRAFANA. 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 GRAFAN via api.

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

WHAT I NEED is to know which URL or what query insert in Grafana via Infinity plugin to get that info from Graylog dashboards.

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 11, 2021, 1:37am UTC](https://community.graylog.org/t/grafana-graylog-via-api/22008/2 "2021-12-11T01:37:24Z")

</div>

Hello,

I just check out Infinity plugin and it didn’t work as well as I thought.

Graylog is capable of enable Prometheus in the configuration file then connect it through the Prometheus plugin on Grafana.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/c/cbd803a9d0b02f648cb2dbe2688ff70dafd68f02.png)

You can find out HowTo here.

[https://docs.graylog.org/docs/metrics](https://docs.graylog.org/docs/metrics)

If you need information on your Graylog Dashboards you can find the API’s in `System/Nodes` this will help grab your data as needed.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/3/36ab71e05b461edcebff9890d78aa6bf55d6c3f8.png)

I believe this link will help understand what you need for API/URL needed.

[https://docs.graylog.org/docs/rest-api](https://docs.graylog.org/docs/rest-api)

Hope that helps

---

<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 13, 2021, 9:29am UTC](https://community.graylog.org/t/grafana-graylog-via-api/22008/3 "2021-12-13T09:29:13Z")

</div>

Ty for you help gsmith I solved it another way! But help is always welcome!

---

<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 13, 2021, 10:59pm UTC](https://community.graylog.org/t/grafana-graylog-via-api/22008/4 "2021-12-13T22:59:46Z")

</div>

Hello

Out of curiosity, how did you solve this?

---

<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 27, 2021, 11:00pm UTC](https://community.graylog.org/t/grafana-graylog-via-api/22008/5 "2021-12-27T23:00:26Z")

</div>

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