{"id":22499758,"url":"https://github.com/avinash6784/ansible-role-logstash","last_synced_at":"2025-08-03T06:32:23.057Z","repository":{"id":217116335,"uuid":"115077812","full_name":"avinash6784/ansible-role-logstash","owner":"avinash6784","description":"An Ansible Role that installs Logstash on RedHat/CentOS","archived":false,"fork":false,"pushed_at":"2017-12-23T13:25:46.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-01-14T17:27:51.015Z","etag":null,"topics":["ansible","ansible-role","devops","elk","logstash","monitoring"],"latest_commit_sha":null,"homepage":null,"language":null,"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/avinash6784.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-12-22T04:52:27.000Z","updated_at":"2024-01-14T17:27:52.305Z","dependencies_parsed_at":"2024-01-14T17:27:52.217Z","dependency_job_id":"d5ec62a0-9820-49d2-b7f6-37cbd240a523","html_url":"https://github.com/avinash6784/ansible-role-logstash","commit_stats":null,"previous_names":["avinash6784/ansible-role-logstash"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avinash6784%2Fansible-role-logstash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avinash6784%2Fansible-role-logstash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avinash6784%2Fansible-role-logstash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avinash6784%2Fansible-role-logstash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avinash6784","download_url":"https://codeload.github.com/avinash6784/ansible-role-logstash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228532231,"owners_count":17933247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ansible","ansible-role","devops","elk","logstash","monitoring"],"created_at":"2024-12-06T22:15:45.902Z","updated_at":"2024-12-06T22:15:46.613Z","avatar_url":"https://github.com/avinash6784.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role: Logstash\nAn Ansible Role that installs Logstash on RedHat/CentOS.\n\nNote that this role installs a syslog grok pattern by default; if you want to add more filters, please add them inside the /etc/logstash/conf.d/ directory. \n\n## Requirements\n\nRequires Java (Preferred Java 8+). See [`avinash6784.oracle-java`](https://github.com/avinash6784/ansible-oracle-java) role to install Java 8.\n\nThis role is made Elastisearch as a backend for storing the logs. See [`avinash6784.elasticsearch`](https://github.com/avinash6784/ansible-role-elasticsearch) role to install Elasticsearch\n\n## Role Variables\nAvailable variables are listed below, along with default values (see `defaults/main.yml`):\n```yml\n\n# Lggstash major version\nlogstash_major_version: 5.x\n\n# Lggstash port\nlogstash_port: 5044\n\n# Elasticsearch hostname, where logstash ship logs.\nlogstash_elasticsearch_host:\n  - http://localhost:9200\n\n# Local paths to the SSL certificate and key files.\nlogstash_ssl_dir: /etc/pki/logstash\nlogstash_ssl_certificate_file: logstash-forwarder-example.crt\nlogstash_ssl_key_file: logstash-forwarder-example.key\n\nTo generate a self-signed certificate/key pair, you can use following role to generate ssl certs.\nSee [`avinash6784.openssl-certs`](https://github.com/avinash6784/ansible-role-openssl-certs) role to install and generate OpenSSL certs\n\n**NOTE**: filebeat and logstash may not work correctly with self-signed certificates unless you also have the full chain of trust (including the Certificate Authority for your self-signed certs) added on your server. \nSee: https://github.com/elastic/logstash/issues/4926#issuecomment-203936891\n\n# Configuration for local syslog file\nlogstash_local_syslog_path: /var/log/syslog\nlogstash_monitor_local_syslog: true\n```\n\n## Dependencies\n\nThis role depends on avinash6784.oracle-java role. This is configured for ansible-galaxy install in requirements.yml.\nAlso you may need to install elasticsearch, because in this role uses elasticsearch as a backend to stores the logs.(avinash6784.ansible-role-elasticsearch role) \n\n**NOTE**: Requirements are installed as virtual user avinash6784 (avinash6784.oracle-java).\n\nBe sure to install required roles with\n```\nansible-galaxy install --role-file requirements.yml\n```\n\n## Usage and Example Playbook\n\nInstall from Ansible Galaxy\n```\n$ ansible-galaxy install avinash6784.logstash\n```\nOr download manually\n```\n$ git clone https://github.com/avinash6784/ansible-role-logstash.git\n```\nThe code should reside in the roles directory of ansible ( See ansible documentation for more information on roles ), in a folder ansible-role-logstash.\n\n## Run the playbook\n\nFirst create a playbook including the git role, naming it test.yml.\n```yml\n- name: Install logstash\n  hosts: localhost\n  become: true\n  roles:\n    - { role: ansible-role-elasticsearch }\n    - { role: ansible-role-logstash }\n\n$ ansible-playbook -i hosts test.yml\n```\n\n## Author Informations\n\nThis role was created by [Avinash Pawar](http://devopstechie.com).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favinash6784%2Fansible-role-logstash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favinash6784%2Fansible-role-logstash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favinash6784%2Fansible-role-logstash/lists"}