
Install Graylog on Ubuntu to efficiently manage and analyze large volumes of log data. Graylog is an open-source, web-based log management and aggregation system that collects server logs, stores them in Elasticsearch for indexing, and uses MongoDB to save metadata. It enables detailed log analysis and provides alerting capabilities for proactive monitoring.
This article explains how to install Graylog on Ubuntu server.
Install OpenJDK required by Elasticsearch and other dependencies.
Import the Elasticsearch PGP signing key.
Add the Elasticsearch repository.
Update the system.
Install Elasticsearch.
Edit the Elasticsearch configuration file.
Add these two lines to the end of the file.
Save and exit the file.
Reload the system daemon.
Restart Elasticsearch service.
Enable Elasticsearch to run on system startup.
Start the MongoDB service.
Enable MongoDB service to start at system startup.
Add the Graylog repository.
Install the Graylog server package.
Update the system.
Install Graylog.
Generate a 96-character random string for Graylog and save a copy to use in the Graylog server configuration file.
Choose a strong password for your admin account and generate a 64-character hash. For example, if you choose StrongPassword:
The hash is:
Edit the Graylog configuration file.
Update password_secret with the 96-character random string you generated earlier. For example:
Update root_password_sha2 with the 64-character hash of your admin password. For example:
Update http_bind_address as shown:
Save and close the file.
Restart the system daemon.
Restart the Graylog service.
Enable the Graylog service to run on system startup.
Verify the status of the Graylog server.
Open your web browser and navigate to your servers IP address at port 9000. for example:
Log in with username admin and the password you chose to access the Graylog dashboard.
For more information on Graylog, please visit the official documentation.
0 Comments
Be the first to comment and share your perspective with the community.