# Is it possible to add multiple outputs for elastic agents?

**URL:** https://discuss.elastic.co/t/is-it-possible-to-add-multiple-outputs-for-elastic-agents/316891
**Category:** Elastic Agent
**Created:** [October 18, 2022, 12:45pm UTC](https://discuss.elastic.co/t/is-it-possible-to-add-multiple-outputs-for-elastic-agents/316891 "2022-10-18T12:45:47Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![shi](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@shi](https://discuss.elastic.co/u/shi)
#### Post date: [October 18, 2022, 12:45pm UTC](https://discuss.elastic.co/t/is-it-possible-to-add-multiple-outputs-for-elastic-agents/316891/1 "2022-10-18T12:45:47Z")

</div>

```auto
We have 3 elasticsearch nodes and a client node.
node 1, node 2, node 3

The current output of elastic agent is node 1.

```

If the node 1 goes down is there a way for elastic agent to automatically sent its output to node 2 or node 3? (Is it possible to set multiple IP addresses when we specify the output of elastic agent so that we can address node failure)

---

<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 18, 2022, 1:12pm UTC](https://discuss.elastic.co/t/is-it-possible-to-add-multiple-outputs-for-elastic-agents/316891/2 "2022-10-18T13:12:53Z")

</div>

Is, `hosts` is an array for a list of hosts.

Check the [documentation](https://www.elastic.co/guide/en/fleet/current/elasticsearch-output.html#output-elasticsearch-commonly-used-settings).

> `hosts` (list) The list of Elasticsearch nodes to connect to. The events are distributed to these nodes in round robin order. If one node becomes unreachable, the event is automatically sent to another node.

---

<div class="post-metadata">

### Author: ![shi](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@shi](https://discuss.elastic.co/u/shi)
#### Post date: [October 18, 2022, 1:41pm UTC](https://discuss.elastic.co/t/is-it-possible-to-add-multiple-outputs-for-elastic-agents/316891/3 "2022-10-18T13:41:06Z")

</div>

Actually we were trying to use fleet to manage the agents.

`Is there a way to specify multiple elasticsearch outputs for a single elastic-agents when they are managed by fleet?`

---

<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 18, 2022, 1:51pm UTC](https://discuss.elastic.co/t/is-it-possible-to-add-multiple-outputs-for-elastic-agents/316891/4 "2022-10-18T13:51:41Z")

</div>

Oh I see.

Just edit the output and click in `Add row` to add a new output host.

![Screenshot from 2022-10-18 10-45-58](https://us1.discourse-cdn.com/elastic/original/3X/b/1/b164652e879c94823900578d12380e2f2cd86c02.png)

---

<div class="post-metadata">

### Author: ![shi](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@shi](https://discuss.elastic.co/u/shi)
#### Post date: [October 19, 2022, 9:20am UTC](https://discuss.elastic.co/t/is-it-possible-to-add-multiple-outputs-for-elastic-agents/316891/5 "2022-10-19T09:20:15Z")

</div>

It worked.  
Thank you 😄

---

<div class="post-metadata">

### Author: ![shi](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@shi](https://discuss.elastic.co/u/shi)
#### Post date: [October 20, 2022, 4:20am UTC](https://discuss.elastic.co/t/is-it-possible-to-add-multiple-outputs-for-elastic-agents/316891/6 "2022-10-20T04:20:29Z")

</div>

We have given multiple outputs (node1,node2, node3) in the fleet settings.

Now the logs are reaching the elasticsearch even when one elasticsearch node goes down.

> but, the fleet server and the client agents are shown as offline when the node 1 of elasticsearch goes down, even though the data ingested using the client agent is reaching elasticsearch.  
> (We used the node1 to enroll the fleet server)

As a result we cannot push new policies when node 1 of elasticsearch is down.

> Is multiple fleet servers the solution here? If so how to enroll them?

Thanks a lot for the support.  
Shi

---

<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 17, 2022, 4:21am UTC](https://discuss.elastic.co/t/is-it-possible-to-add-multiple-outputs-for-elastic-agents/316891/7 "2022-11-17T04:21:05Z")

</div>

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