# 2 agents on a machine?

**URL:** https://discuss.elastic.co/t/2-agents-on-a-machine/346114
**Category:** Elastic Agent
**Created:** [October 31, 2023, 10:17am UTC](https://discuss.elastic.co/t/2-agents-on-a-machine/346114 "2023-10-31T10:17:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nightingale\_John](https://avatars.discourse-cdn.com/v4/letter/n/ecccb3/32.png) [@Nightingale\_John](https://discuss.elastic.co/u/Nightingale_John)
#### Post date: [October 31, 2023, 10:17am UTC](https://discuss.elastic.co/t/2-agents-on-a-machine/346114/1 "2023-10-31T10:17:37Z")

</div>

Hi All,

I'm wondering if anyone has any experience of putting 2 elastic agents on a machine?  
We've got a client who is using elastic for monitoring, and we need to have the elastic agent on for security.. this is on Microsoft Windows servers

Is this even at all possible, or potentially another way to get the data for Elasticsearch to work and generate alerts? I wondered whether two agents with different install paths, e.g. customer on default install path, and ours in a different directory.  
Thanks!  
J

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [October 31, 2023, 12:36pm UTC](https://discuss.elastic.co/t/2-agents-on-a-machine/346114/2 "2023-10-31T12:36:41Z")

</div>

> [@Nightingale\_John](#):
>
> Is this even at all possible, or potentially another way to get the data for Elasticsearch to work and generate alerts?

I don't think this is possible even if you have one that is managed by fleet and another that is standalone, from the [documentation](https://www.elastic.co/guide/en/fleet/current/installation-layout.html) you cannot change the installation path.

> [@Nightingale\_John](#):
>
> We've got a client who is using elastic for monitoring, and we need to have the elastic agent on for security.. this is on Microsoft Windows servers

But they are monitoring using Elastic Agent or Metricbeat? If it Elastic Agent, then you cannot install another agent on this server, if it is Metricbeat, then there will be no issue installing the Elastic Agent.

---

<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: [November 28, 2023, 12:36pm UTC](https://discuss.elastic.co/t/2-agents-on-a-machine/346114/3 "2023-11-28T12:36:52Z")

</div>

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