bvillers
(Bill Villers)
January 23, 2018, 11:47pm
1
Installed, carefully, Graylog v.2.4 (I think – can’t confirm) onto CentOS v.7.x
ElasticSearch & MongoDB each can see the server.
The server shows timeout when trying to access the server.
//servername:9000
//servername:9000/api
Nothing responds.
No errors in logs apparent…
I appreciate any helpful suggestions.
What logs can I look at ?
Additional info:
sudo systemctl status graylog-server.service
● graylog-server.service - Graylog server
Loaded: loaded (/usr/lib/systemd/system/graylog-server.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2018-01-23 19:08:51 EST; 4min 54s ago
Main PID: 1089 (graylog-server)
CGroup: /system.slice/graylog-server.service
├─1089 /bin/sh /usr/share/graylog-server/bin/graylog-server
└─1106 /usr/bin/java -Xms1g -Xmx1g -XX:NewRatio=1 -server -XX:+ResizeTLAB -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC -XX:-OmitStackTraceInFastThrow -jar -Dlog4j.config...
[1]: Started Graylog server.
[1]: Starting Graylog server...
sudo systemctl status mongod.service
● mongod.service - SYSV: Mongo is a scalable, document-oriented database.
Loaded: loaded (/etc/rc.d/init.d/mongod; bad; vendor preset: disabled)
Active: active (running) since Tue 2018-01-23 19:09:34 EST; 5min ago
Docs: man:systemd-sysv-generator(8)
Process: 1090 ExecStart=/etc/rc.d/init.d/mongod start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/mongod.service
└─2375 /usr/bin/mongod -f /etc/mongod.conf
Jan 23 19:08:51 syslog.cme.com systemd[1]: Starting SYSV: Mongo is a scalable, document-oriented database....
[1136]: pam_unix(runuser:session): session opened for user mongod by (uid=0)
(1136]: pam_unix(runuser:session): session closed for user mongod
(1090]: Starting mongod: [ OK ]
[1]: Started SYSV: Mongo is a scalable, document-oriented database..
sudo systemctl status elasticsearch.service
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2018-01-23 19:08:52 EST; 7min ago
Docs: http://www.elastic.co
Process: 1088 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
Main PID: 1097 (java)
CGroup: /system.slice/elasticsearch.service
└─1097 /bin/java -Xms2g -Xmx2g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=t...
[1]: Starting Elasticsearch...
[1]: Started Elasticsearch.
jochen
(Jochen)
January 24, 2018, 8:54am
2
Why can’t you confirm that?
How exactly did you install Graylog?
What’s the complete configuration of the Graylog node?
Which logs did you check?
What’s the complete content of these logs?
Also take a look at http://docs.graylog.org/en/2.4/pages/configuration/file_location.html .
jan
(Jan Doberstein)
January 24, 2018, 9:17am
3
Did you checked if you have a firewall between your browser and the Graylog server that might block access to port 9000 ?
bvillers
(Bill Villers)
January 24, 2018, 1:32pm
4
I believe so. But, being a newbie to Linux, I am not certain. I ran the following commands as mentioned in the docs:
Allow the web server to access the network: sudo setsebool -P httpd_can_network_connect 1
Allow using MongoDB’s default port (27017/tcp): sudo semanage port -a -t mongod_port_t -p tcp 27017
semanage etc. configure SELinux. Firewall is configured in CentOS with firewall-cmd. If you want to restrict access to the web interface to specific networks, you can define a zone. If not, you can use --zone=public and add the port. Remember to run firewall-cmd --reload after configuring.
Shane
(Shane)
January 25, 2018, 2:27pm
6
Installed, carefully, Graylog v.2.4 (I think – can’t confirm) onto CentOS v.7.x
Check your /var/log/yum.log file to see which version of Graylog was last updated. A simple command like the one below should work:
grep graylog /var/log/yum.log
Also can you run a simple netstat -ano and verify that you have port 9000 listening on your IP address that you are trying to access the graylog app on?
Also firewalld can be kind of a pain for someone a bit newer to linux. Here’s a guide to go back to iptables as well as how to configure it:
I find firewall-cmd easier than iptables. Adding a rule to allow the port 9000 just takes one command + the reload command.
bvillers
(Bill Villers)
January 26, 2018, 3:00pm
8
I re-installed everything beginning with CentOS 7.
The change, in the new install, was that I allowed DHCP to assign IP, etc.
Now, from within the server, I can successfully hit:
http://127.0.0.1:9000
Now, 2 new problems.
Username/pwd does not allow login. I tried the default, admin/admin. Also, I changed the encrypted password, echo -n MyPa$$w0rd | sha256sum
I cannot hit from outside the server.
bvillers
(Bill Villers)
January 26, 2018, 3:04pm
9
server.log entry:
[SessionsResource] Invalid username or password for user "admin"
jochen
(Jochen)
January 26, 2018, 3:06pm
10
bvillers:
Username/pwd does not allow login. I tried the default, admin/admin. Also, I changed the encrypted password, echo -n MyPa$$w0rd | sha256sum
You probably have a “special character” in your password which is interpreted by the shell, e. g. “$” is such a special character.
You can try using “8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918” in root_password_sha2
, which is the SHA-256 hash for the word “admin”.
That’s probably because 127.0.0.1 is the loopback interface.
In computer networking, localhost is a hostname that refers to the current computer used to access it. The name localhost is reserved for loopback purposes.
It is used to access the network services that are running on the host via the loopback network interface. Using the loopback interface bypasses any local network interface hardware.
The local loopback mechanism may be used to run a network service on a host without requiring a physical network interface, or without making the service acce...
bvillers
(Bill Villers)
January 29, 2018, 1:58pm
11
Thank you everyone.
The Graylog system is accessible from all nodes on the network.
I re-ip’d in the server.conf file successfully.
reset the password successfully, “You can try using “8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918” in root_password_sha2, which is the SHA-256 hash for the word “admin”.”
And, set firewall setting successfully, firewall-cmd --zone=public --add-port=9000/tcp --permanent
All is good. Ticket is closed.
Thanks again for the excellent help.
system
(system)
Closed
February 12, 2018, 1:59pm
12
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.