Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avinash6784/elk-stack
Ansible repo to install ELK (elasticsearch, logstash, Kibana) stack
https://github.com/avinash6784/elk-stack
Last synced: 6 days ago
JSON representation
Ansible repo to install ELK (elasticsearch, logstash, Kibana) stack
- Host: GitHub
- URL: https://github.com/avinash6784/elk-stack
- Owner: avinash6784
- Created: 2017-12-23T13:38:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-23T14:15:20.000Z (almost 7 years ago)
- Last Synced: 2024-08-01T21:49:53.466Z (3 months ago)
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# elk-stack
Ansible repo to install ELK (elasticsearch, logstash, Kibana) stack## Usage and Example Playbook
Install Java, Elasticsearch, Logstash and Kibana roles from Ansible Galaxy into your roles directory of ELK stack repo.
**Installing multiple roles from a file**
Beginning with Ansible 1.8 it is possible to install multiple roles by including the roles in a requirements.yml file. The format of the file is YAML, and the file extension must be either .yml or .yaml.
Use the following command to install roles included in requirements.yml into roles/ directory of ELK stack repo:
```yml
$ ansible-galaxy install -r requirements.yml -p roles/
```
**OR install one by one**```
$ ansible-galaxy install avinash6784.oracle-java
$ ansible-galaxy install avinash6784.elasticsearch
$ ansible-galaxy install avinash6784.logstash
$ ansible-galaxy install avinash6784.kibana
```
**OR download manually**```
$ git clone https://github.com/avinash6784/ansible-oracle-java.git
$ git clone https://github.com/avinash6784/ansible-role-elasticsearch.git
$ git clone https://github.com/avinash6784/ansible-role-logstash.git
$ git clone https://github.com/avinash6784/ansible-role-kibana.git
```
The code should reside in the roles directory of elk stack ( See ansible documentation for more information on roles ).## Run the playbook
First create a playbook including the git role, naming it elk-stack-install.yml.
```yml
- name: Install ELK Stack
hosts: localhost
become: true
roles:
- { role: ansible-role-elasticsearch }
- { role: ansible-role-logstash }
- { role: ansible-role-kibana }$ ansible-playbook -i hosts elk-stack-install.yml