# Script for install and configure file beat on Linux

**URL:** <https://discuss.elastic.co/t/script-for-install-and-configure-file-beat-on-linux/197163>\
**Category:** Beats\
**Tags:** elastic-stack-monitoring\
**Created:** [August 28, 2019, 3:57pm UTC](https://discuss.elastic.co/t/script-for-install-and-configure-file-beat-on-linux/197163 "2019-08-28T15:57:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sk545](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@sk545](https://discuss.elastic.co/u/sk545)\
**Post date:** [August 28, 2019, 3:57pm UTC](https://discuss.elastic.co/t/script-for-install-and-configure-file-beat-on-linux/197163/1 "2019-08-28T15:57:58Z")

</div>

I have several servers those need to be installed with file beat .is there any shell /Ansible/some other way to install file beat on all Linux servers at once instead of manual intervention?

TIA

---

<div class="post-metadata">

**Author:** ![Mike\_Place](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_place/32/39555_2.png) [@Mike\_Place](https://discuss.elastic.co/u/Mike_Place)\
**Post date:** [August 28, 2019, 4:16pm UTC](https://discuss.elastic.co/t/script-for-install-and-configure-file-beat-on-linux/197163/2 "2019-08-28T16:16:50Z")

</div>

Hi @sk545. There isn't an Elastic-sanctioned way to do this at present, but if memory serves there are some unofficial Ansible Galaxy roles that can handle what you're looking for.

---

<div class="post-metadata">

**Author:** ![sk545](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@sk545](https://discuss.elastic.co/u/sk545)\
**Post date:** [August 28, 2019, 4:27pm UTC](https://discuss.elastic.co/t/script-for-install-and-configure-file-beat-on-linux/197163/3 "2019-08-28T16:27:22Z")

</div>

can you please provide any related docs/web link if possible ?

---

<div class="post-metadata">

**Author:** ![Julien\_MAILLERET](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien_mailleret/32/45074_2.png) [@Julien\_MAILLERET](https://discuss.elastic.co/u/Julien_MAILLERET)\
**Post date:** [August 29, 2019, 7:26am UTC](https://discuss.elastic.co/t/script-for-install-and-configure-file-beat-on-linux/197163/4 "2019-08-29T07:26:37Z")

</div>

Hi @sk545, we do actually have an official Ansible role for beats: [https://galaxy.ansible.com/elastic/beats](https://galaxy.ansible.com/elastic/beats)

Here is a quick example of Ansible playbook to use it:

```auto
---
- hosts: localhost
  roles:
    - { role: "ansible-beats",
         beat: "filebeat",
         beat_conf: {
             "filebeat": {"inputs":[{"paths":["/var/log/*.log"],"type":"log"}]} 
         }
      }

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 26, 2019, 9:26am UTC](https://discuss.elastic.co/t/script-for-install-and-configure-file-beat-on-linux/197163/5 "2019-09-26T09:26:47Z")

</div>

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