Support #435
Installing Graylog2 on Debian 7
Start date:
07/17/2014
Due date:
% Done:
10%
Estimated time:
4.00 h
Description
Prerequisites¶
You will need the following environment:- Debian Linux
- 2GB RAM (I ran into issues using less)
- 80GB HD
- ElasticSearch v0.90.10
- MongoDB (as recent stable version as possible, at least v2.0)
Vagrant Box available¶
Install Graylog2¶
- Install Debian a few dependencies
apt-get install mongodb-server openjdk-7-jre-headless uuid-runtime adduser pwgen
- Install Elasticsearch from Upstream
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.10.deb dpkg -i elasticsearch-0.90.10.deb
- Configure of Elasticsearch:
vi /etc/elasticsearch/elasticsearch.yml
- Add to configuration:
- Configure of Elasticsearch:
cluster.name: graylog2
Install Graylog2 Packages¶
- Install GPG Key from Jonas Genannt GPG Stats:
apt-key adv --keyserver pgp.surfnet.nl --recv-keys 016CFFD0
- Add Graylog2 Apt Repro:
echo 'deb http://finja.brachium-system.net/~jonas/packages/graylog2_repro/ wheezy main' > /etc/apt/sources.list.d/graylog2.list
- Install Graylog2 Packages:
apt-get update && apt-get install graylog2-server graylog2-web
- Install Graylog2 Stream Dashboard:
apt-get install graylog2-stream-dashboard
- OR: manually download deb files: http://finja.brachium-system.net/~jonas/packages/graylog2/
Enable Graylog2 init script¶
- Graylog2 Server
sed -i 's@no@yes@' /etc/default/graylog2-server
- Graylog2 Webinterface
sed -i 's@no@yes@' /etc/default/graylog2-web
Configuration of Graylog2¶
- Edit the Graylog2 server parameters, see configuration:
vi /etc/graylog2/server/server.conf
password_secret
root_password_sha2
- To generate the "password_secret", run:
pwgen -s 96
- To generate the "root_password_sha2", run:
echo -n SuperSecretPassword | shasum -a 256
Edit the Graylog2 web server parameters:
vi /etc/graylog2/web/graylog2-web-interface.conf
graylog2-server.uris="http://127.0.0.1:12900/"
application.secret=""
- To generate the "application.secret", run:
pwgen -s 96
Start the Graylog2 services¶
- Graylog2 Server
service graylog2-server start
- Graylog2 Webinterface
service graylog2-web start
- Elasticsearch
service elasticsearch
- Now its time to access the web interface, open a web browser and navigate to: http://localhost:9000/
- Username: admin
- Password: (see /etc/graylog2/server/server.conf)
Graylog2 official documentation
Resources¶
Related issues
Updated by Daniel Curtis over 10 years ago
- Copied from Support #426: Installing Graylog2 on Arch Linux added
Updated by Daniel Curtis almost 10 years ago
- Project changed from 94 to GNU/Linux Administration
- Category set to Logging Server