# Winlogbeat - Installation on multiple hosts

**URL:** <https://discuss.elastic.co/t/winlogbeat-installation-on-multiple-hosts/118898>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [February 7, 2018, 6:21pm UTC](https://discuss.elastic.co/t/winlogbeat-installation-on-multiple-hosts/118898 "2018-02-07T18:21:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![codeguru](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@codeguru](https://discuss.elastic.co/u/codeguru)\
**Post date:** [February 7, 2018, 6:21pm UTC](https://discuss.elastic.co/t/winlogbeat-installation-on-multiple-hosts/118898/1 "2018-02-07T18:21:11Z")

</div>

I am a beginner with the elastic stack and trying to learn and understand all the capabilities/features. I have successfully installed winlog on one machine and I want to installt it on 10 more machines and see how I like elk in my environment. For this purpose should I need to login to each machine and run the powershell commands or can I automate the process? Any MSI packages available or any scripts that I can make use of?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [February 8, 2018, 11:58pm UTC](https://discuss.elastic.co/t/winlogbeat-installation-on-multiple-hosts/118898/2 "2018-02-08T23:58:12Z")

</div>

Well, I'm no windows user myself, but I found this: [https://chocolatey.org/packages/winlogbeat](https://chocolatey.org/packages/winlogbeat).

Please note, this package is no official and is thusly not supported by elastic.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [February 9, 2018, 2:30pm UTC](https://discuss.elastic.co/t/winlogbeat-installation-on-multiple-hosts/118898/3 "2018-02-09T14:30:43Z")

</div>

You could use [Ansible](https://docs.ansible.com/ansible/latest/intro_getting_started.html) for this. It has pretty good [Windows support](https://docs.ansible.com/ansible/latest/intro_windows.html). You can write a role for Winlogbeat that

- downloads using [`win_get_url`](https://docs.ansible.com/ansible/latest/win_get_url_module.html),
- unzips the package to C:\Program Files\Winlogbeat using `win_unzip`,
- executes the install scripts with `win_shell`,
- writes your custom config based on a template or file copy with `win_template` or `win_copy`,
- then starts the service with `win_service`.

We use Ansible to automate installing Beats on various operating systems to conduct [testing](https://github.com/elastic/beats-tester).

There are probably some existing roles people have open sourced that you can use to guide your development.

---

<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:** [March 9, 2018, 2:31pm UTC](https://discuss.elastic.co/t/winlogbeat-installation-on-multiple-hosts/118898/4 "2018-03-09T14:31:11Z")

</div>

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