Installation CentOs is failing

Hi, working on an CentOS graylog deployment.

Following the manual on How to install and configure Graylog on CentOS 7 | FOSS Linux
When checking the elastic search health. > curl -XGET ‘http://localhost:9200/_cluster/health?pretty=true

I get this error
curl -XGET ‘http://localhost:9200/_cluster/health?pretty=true
curl: (7) Failed connect to localhost:9200; Connection refused

Any ideas/tips?

Hi @mveerdonk , normally “localhost” is an address related to (confirm it in your /etc/hosts).

A “Connection refused” error means that your server is not “listening” to this port in localhost.

first make sure that Elasticsearch is running:

systemctl status elasticsearch.service

If it is, try to figure out in which interface:

netstat -tanp | grep LISTEN | grep 9200
# The output should be something like this
tcp6       0      0       :::*                    LISTEN      899/java  

then, run your command again like:

curl -XGET ‘’

You may want to take a look at: CentOS installation — Graylog 4.0.0 documentation

Also may want to look for another Linux Distro. CentOS has been sunset.

Asking the forum: What Linux Distro will Graylog support to replace CentOS?

@mveerdonk without knowing what steps you’ve taken in the guide to installing, I would ask that you confirm elasticsearch is installed and running on your CentOS system, also, do you have SE linux running? if so, have you taken the necessary steps with regards to SE linux? Have you opened the firewall? Also, is everything running on a single node?

@dickinsonzach CentOS is not sunset, it has been repositioned in the Red Hat hierarchy with the release of CentOS 8. CentOS 7 will see full support until sometime in 2024, so you still have life on that platform. Red Hat has also changed the lincensing for RHEL to allow for a certain number of free installs per account.

As for supported OS’s, they are listed on Graylog’s site.
and RHEL 8 is one of them.

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