Connecting with grafana

Hi
I’m trying to configure Zammad with Grafana

when I try to add elasticsearch as datasource in grafana I had this message
“Unable to connect with Elasticsearch. Please check the server logs for more details.”

my Zammad conf is

the elasticsearch config

elasticsearch conf

the grafana Elastic Data Source


the error message I got on grafana is " Unable to connect with Elasticsearch. Please check the server logs for more details."

Any Advice ?

  • Used Zammad version: version 6.3.0-1714134387.c71d9374.focal
  • Used Zammad installation type: package
  • Operating system: Ubuntu 20.04

I think I know this one :slight_smile:

By default, ES does not listen on another IP than 127.0.0.1.
And 2) ES is in development mode and that also causes it not to listen on another IP again.

So, to resolve this, you need to edit /etc/elasticsearch/elasticsearch.yml

Look for the line network.host: 127.0.0.1 and change it to:

network.host: 0.0.0.0

And a few lines below that, you need to change a line into this:

cluster.initial_master_nodes: [“127.0.0.1”]

Restart ES and it should work.
Please note, this configuration is not safe at all. It is only for testing. You should obviously lock it down. Now, ES is accessible from all devices in your network without any authentication.
But you can try this first to see if it works and continue from there :slight_smile:

Please do not (ever) expose elasticsearch without any authentication to anything else than localhost. This is a very dangerous thing as Elasticsearch hosts very sensitive user information.

If Elasticsearch runs on the same host this shouldn’t be needed at all. We need more input to understand your environment better.

thanks for your reply

I installed zammad with elastic on remote server ( both zammad and elastic are on the same server 173.24X.X.X )
and grafana on another server 185.1X.X.X

in fact I don’t have any experience in these system and have no knowledge so I really appreciate and suggestion

hi and thank you for your reply ,

what Info you need to know ?

I installed zammad with elastic on remote server ( both zammad and elastic are on the same server 173.24X.X.X )
and grafana on another server 185.1X.X.X

and how I can set the authentication for elasticsearch ?

any Idea or suggestion !!!