# Graylog's graph on Grafana

**URL:** <https://community.graylog.org/t/graylogs-graph-on-grafana/8492>\
**Category:** Graylog Central (peer support)\
**Created:** [January 23, 2019, 2:48pm UTC](https://community.graylog.org/t/graylogs-graph-on-grafana/8492 "2019-01-23T14:48:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arethusa](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@Arethusa](https://community.graylog.org/u/Arethusa)\
**Post date:** [January 23, 2019, 2:48pm UTC](https://community.graylog.org/t/graylogs-graph-on-grafana/8492/1 "2019-01-23T14:48:31Z")

</div>

Hello everyone.

Let me show my context:

**Graylog 2.5: 192.168.1.206**

**Elasticsearch 5.6.14: 192.168.1.208**

**MongoDB 4.0: 192.168.1.207**

All is good, I can create imput and dashboard.

But I whant to do dashboard on grafana.

**Grafana 5.4.2: 192.168.1.203**

My grafana server already works with influxdb (for icinga2)

So now, I want to connect it on Elasticsearch to add Graylog’s graph.

And I have this error:

 ![grafana2](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/5/5f8a79ad2ed2b9db087e5f28273e9efccd9f6fa3.png)

How can I fix that?

Thank you

---

<div class="post-metadata">

**Author:** ![Totally\_Not\_A\_Robot](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/totally_not_a_robot/32/3353_2.png) [@Totally\_Not\_A\_Robot](https://community.graylog.org/u/Totally_Not_A_Robot)\
**Post date:** [January 23, 2019, 2:55pm UTC](https://community.graylog.org/t/graylogs-graph-on-grafana/8492/2 "2019-01-23T14:55:21Z")

</div>

First thing I can think of: Graylog’s index names are not static, right? They get rotated frequently, so your connection would break anyway. “_Graylog\_0_” will be phased out in a few days/weeks, and Graylog will continue with “_graylog\_1_”.

---

<div class="post-metadata">

**Author:** ![Arethusa](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@Arethusa](https://community.graylog.org/u/Arethusa)\
**Post date:** [January 23, 2019, 2:58pm UTC](https://community.graylog.org/t/graylogs-graph-on-grafana/8492/3 "2019-01-23T14:58:13Z")

</div>

I don’t know, I just do that:

```
[root@elasticsearch elasticsearch]# curl 'localhost:9200/_cat/indices?v'
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open graylog_0 9BFGyliASZGiGGKkA9NFBA 4 0 1611223 0 1.2gb 1.2gb

```

Thank you.

---

<div class="post-metadata">

**Author:** ![Ponet](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/ponet/32/2131_2.png) [@Ponet](https://community.graylog.org/u/Ponet)\
**Post date:** [January 23, 2019, 2:58pm UTC](https://community.graylog.org/t/graylogs-graph-on-grafana/8492/4 "2019-01-23T14:58:55Z")

</div>

Depending on what you’re trying to get displayed on your Grafana dashboard, you may find that the prometheus metrics plugin is suitable for your needs.

> **[graylog-labs/graylog-plugin-metrics-reporter](https://github.com/graylog-labs/graylog-plugin-metrics-reporter/)**
>
> Graylog Metrics Reporter Plugins. Contribute to graylog-labs/graylog-plugin-metrics-reporter development by creating an account on GitHub.

Install the prometheus plugin onto your Graylog server, setup prometheus somewhere (on the same host as Grafana perhaps?) and then add prometheus as a data source in Grafana.

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [January 23, 2019, 3:05pm UTC](https://community.graylog.org/t/graylogs-graph-on-grafana/8492/5 "2019-01-23T15:05:17Z")

</div>

Graylog name the timestamp not `@timestamp` but `timestamp` and watch out what @Totally_Not_A_Robot already wrote. Depending on your configuration Graylog will rotate the indices so you need to configure that pattern…

---

<div class="post-metadata">

**Author:** ![Arethusa](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@Arethusa](https://community.graylog.org/u/Arethusa)\
**Post date:** [January 23, 2019, 3:09pm UTC](https://community.graylog.org/t/graylogs-graph-on-grafana/8492/6 "2019-01-23T15:09:40Z")

</div>

Hello,

Thank you “timestamp” works.

And we can add a " \* ", so gr **aylog\_\* looks** good… I will try that.

 ![grafana3](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/0/0290535109a0afadde3a146dd68c770f39160ceb.png)

---

<div class="post-metadata">

**Author:** ![Arethusa](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@Arethusa](https://community.graylog.org/u/Arethusa)\
**Post date:** [January 23, 2019, 3:47pm UTC](https://community.graylog.org/t/graylogs-graph-on-grafana/8492/7 "2019-01-23T15:47:39Z")

</div>

Ok, that works, but it’s not exploitable ^^

Thank you everyone for you high availability and reactivity.

---

<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:** [February 6, 2019, 3:51pm UTC](https://community.graylog.org/t/graylogs-graph-on-grafana/8492/8 "2019-02-06T15:51:26Z")

</div>

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