{"id":42712845,"url":"https://github.com/bimdata/ansible_role_graylog","last_synced_at":"2026-01-29T15:13:21.931Z","repository":{"id":39795741,"uuid":"298614405","full_name":"bimdata/ansible_role_graylog","owner":"bimdata","description":"Ansible role to install and configure Graylog.","archived":false,"fork":false,"pushed_at":"2023-08-08T09:17:59.000Z","size":133,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-18T11:54:48.223Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bimdata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-25T15:41:57.000Z","updated_at":"2024-01-19T15:49:49.000Z","dependencies_parsed_at":"2022-09-03T19:40:43.933Z","dependency_job_id":null,"html_url":"https://github.com/bimdata/ansible_role_graylog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bimdata/ansible_role_graylog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimdata%2Fansible_role_graylog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimdata%2Fansible_role_graylog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimdata%2Fansible_role_graylog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimdata%2Fansible_role_graylog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bimdata","download_url":"https://codeload.github.com/bimdata/ansible_role_graylog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimdata%2Fansible_role_graylog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28880017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-29T15:13:21.131Z","updated_at":"2026-01-29T15:13:21.926Z","avatar_url":"https://github.com/bimdata.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible role graylog\n=========\n\nThis role installs and configures [Graylog](https://www.graylog.org/).\n\nThis role assumes you have others roles for Elasticsearch, MongoDB, Nginx etc.\n\nRequirements\n------------\n\n* You need a running Elasticsearch cluster and a MongoDB cluster.\n* Managed servers must be able to communicate with https://packages.graylog2.org/.\n* This role is only tested on Debian 10.x (Buster).\n\nRole Variables\n--------------\n\nThis role tries to keep the same default configuration as if you manually install\nGraylog. All default values are defined in `./defaults/main.yml`, you may want to\ncheck it.\nWe try to keep the same name for the Ansible variable as the name in the Graylog\nconfiguration file, but with the prefix `graylog_`. You can have more information\nabout each parameter in the [Graylog documentation](https://docs.graylog.org/docs/server-conf).\n\nYou need to define at least two variables :\n* `graylog_password_secret`: you should generate its content with the command:\n`pwgen -N 1 -s 96` or `tr -cd '[:alnum:]' \u003c /dev/urandom | fold -w96 | head -n1`\n* `graylog_root_password_sha2`: you should generate its content with the command:\n`echo -n your_password | shasum -a 256` (You need to replace 'your_password' by\nan actual password!)  \nOr you can use Ansible `hash()` function:\n`graylog_root_password_sha2: \"{{ vault_graylog_root_password | hash('sha256') }}\"`.\n\n\nThis role supports the installation of plugins too. Plugins need to be `.jar` files,\nand the managed hosts must be able to download them. The checksum is optional and work\nlike the checksum parameter in [Ansible get_url module](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/get_url_module.html#parameter-checksum).\n```\ngraylog_plugins:\n  - url: https://github.com/graylog-labs/graylog-plugin-metrics-reporter/releases/download/3.0.0/metrics-reporter-prometheus-3.0.0.jar\n    checksum: sha256:383eac2135baf248b5a0828a9e305130a2ab863b07afeef30cba00be05fc7cf9\n```\n\nIf some of your plugins need configuration in the Graylog main configuration file, there is\na special variable for that `graylog_custom_config`. This is a dictionary, the keys are used\nas the option names and the values as values. For example:\n```\ngraylog_custom_config:\n  metrics_prometheus_enabled: true\n  metrics_prometheus_report_interval: 1m\n  metrics_prometheus_address: 127.0.0.1:9001\n  metrics_prometheus_job_name: graylog\n```\nwill add at the end of `/etc/graylog/server/server.conf`:\n```\n# Custom configuration, if some are needed by plugins.\nmetrics_prometheus_enabled = True\nmetrics_prometheus_report_interval = 1m\nmetrics_prometheus_address = 127.0.0.1:9001\nmetrics_prometheus_job_name = graylog\n```\n\nDependencies\n------------\n\nA list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.\n\nExample Playbook\n----------------\n\n```\n- hosts: logs-servers\n  gather_facts: True\n  become: true\n  vars:\n    graylog_password_secret: \"OMFPRQwk7Pg7i9Apun5xbuK4ICl0cfNUbZ5QblvmHKnKvnpzbjxtgHIoaSiEmi9XVlbqDhI6d8UqErW2wRiS0uapaHRgW4e\"\n    graylog_root_password_sha2: \"4da3376323046a3bb6759f0a3f4ae7100a0567950c53ee42d2e19201baaa6dfc\"\n    # You can also ask Ansible to hash it and use a vault to store the password.\n    # graylog_root_password_sha2: \"{{ vault_graylog_root_password | hash('sha256') }}\"\n  roles:\n    - role: bimdata.graylog\n```\n\nLicense\n-------\n\nMIT\n\nAuthor Information\n------------------\n\n[BIMData.io](https://bimdata.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbimdata%2Fansible_role_graylog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbimdata%2Fansible_role_graylog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbimdata%2Fansible_role_graylog/lists"}