SRE-Ansible To Install ELK Stack

Our task is related to SRE-Ansible To Install ELK Stack i.e.

Write an ansible script to install ELK stack and filebeat locally. To do so, create a directory structure as mentioned below

 ansible_ELK 
  |_site.yml 
  |_roles 
    |_elasticsearch 
      |_tasks
        |_main.yml   
    |_logstash 
      |_tasks
        |_main.yml
    |_kibana
      |_tasks
        |_main.yml
    |_filebeat
      |_tasks
        |_main.yml

For creating we are using

git clone https://github.com/jekhokie/scriptbox.git
cd scriptbox/ansible--elk-stack/

Please provide expertise advice anything wrong here as above command command showing incorrect result.

any expertise advice?

Hi Ashish,

The structure looks ok, but you may also create a common role to install common components like JAVA, setting JAVA HOME and also for any kernel level parameters that are common to all the three components.

Not sure if you planned for this, but since it is not depicted in the structure, you could also include elasticsearch.yml.j2, kibana.yml.j2 as template files. Same thing with filebeat.yml too.

can cannot use

git clone https://github.com/jekhokie/scriptbox.git

Absolutely, no point re-inventing the wheel, please use if it suits your requirement.

what will be script fot "Write an ansible script to install ELK stack and filebeat locally. "

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.