/graylog2-ansible-role

Ansible role which installs and configures Graylog2

Apache License 2.0Apache-2.0

Description

Ansible role which installs and configures Graylog log management.

Dependencies

Variables

# Basic server settings
is_master: 'true'
password_secret: 2jueVqZpwLLjaWxV # generate with pwgen -s 96 1
root_password_sha2: 8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918

# Elasticsearch
elasticsearch_max_docs_per_index: 20000000
elasticsearch_max_number_of_indices: 20
elasticsearch_shards: 4
elasticsearch_replicas: 0

mongodb_*:

# Basic web interface settings
web_server_uri: http://127.0.0.1:12900
web_secret: 2jueVqZpwLLjaWxV # generate with pwgen -s 96 1

Take a look into defaults/main.yml to get an overview of all configuration parameters

Single host example

  • Apply MongoDB and Elasticsearch roles to the host. Make sure to configure the Elasticsearch cluster name to graylog2 by settings the attribute elasticsearch_cluster_name
  • Create an inventory.ini file, minimal content is the IP address of your host, for further informations take a look here
  • run ansible with ansible-playbook -s -u ubuntu -i inventory.ini main.yml
  • Login to Graylog by opening http://<host IP>:9000 in your browser, default username and password is admin

License

Author: Marius Sturm (marius@graylog.com) and contributors

License: Apache 2.0