Skip to Content
Security Automation with Ansible 2
book

Security Automation with Ansible 2

by Akash Mahajan, MADHU AKULA
December 2017
Intermediate to advanced
364 pages
7h 30m
English
Packt Publishing
Content preview from Security Automation with Ansible 2

Installing Logstash

Install Logstash from the repository with gpg key and add it to the startup programs:

- name: adding elastic gpg key for logstash  apt_key:    url: "https://artifacts.elastic.co/GPG-KEY-elasticsearch"    state: present- name: adding the elastic repository  apt_repository:    repo: "deb https://artifacts.elastic.co/packages/5.x/apt stable main"    state: present- name: installing logstash  apt:    name: "{{ item }}"    state: present    update_cache: yes  with_items:    - logstash- name: adding logstash to the startup programs  service:    name: logstash    enabled: yes  notify:    - start logstash

Configure the Logstash service with input, output, and filter settings. This enables receiving logs, processing logs, and sending logs to the Elasticsearch cluster: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Implementing DevOps with Ansible 2

Implementing DevOps with Ansible 2

Jonathan McAllister
Practical Ansible 2

Practical Ansible 2

Daniel Oh, James Freeman, Fabio Alessandro Locati

Publisher Resources

ISBN: 9781788394512Supplemental Content