# Fleet server agent output not supported

**URL:** <https://discuss.elastic.co/t/fleet-server-agent-output-not-supported/339174>\
**Category:** Elastic Agent\
**Tags:** fleet\
**Created:** [July 25, 2023, 10:52am UTC](https://discuss.elastic.co/t/fleet-server-agent-output-not-supported/339174 "2023-07-25T10:52:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![quic22](https://avatars.discourse-cdn.com/v4/letter/q/ba9def/32.png) [@quic22](https://discuss.elastic.co/u/quic22)\
**Post date:** [July 25, 2023, 10:52am UTC](https://discuss.elastic.co/t/fleet-server-agent-output-not-supported/339174/1 "2023-07-25T10:52:13Z")

</div>

Hello, I just installed elastic stack (with fleet server on the same host) with logstash as output in fleet settings and that was working until I rebooted. Everything seems to work only is the server not listening on port 8220 and the agent appears offline in kibana. I read somewhere on github that output as logstash does not work for fleet server, so i tried to change the output to elasticsearch in elastic-agent.yml but still get the error after restarting the agent:

```auto
[elastic_agent][error] Spawned new unit fleet-server-default-fleet-server-fleet_server-084faf10-2ad3-11ee-b6a5-43451818e6af: output not supported
[elastic_agent][error] Spawned new unit fleet-server-default: output not supported
[elastic_agent][error] Spawned new component fleet-server-default: output not supported

```

I added this to elastic-agent.yml:

```auto
outputs:
  default:
    type: elasticsearch
    hosts: [127.0.0.1:9200]
    username: "elastic"
    password: "password"

```

Am I missing something?

Hope someone can help, kind regards.

---

<div class="post-metadata">

**Author:** ![Julia\_Bardi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julia_bardi/32/79463_2.png) [@Julia\_Bardi](https://discuss.elastic.co/u/Julia_Bardi)\
**Post date:** [July 25, 2023, 11:54am UTC](https://discuss.elastic.co/t/fleet-server-agent-output-not-supported/339174/2 "2023-07-25T11:54:04Z")

</div>

Hi quic22, welcome to the community!

To change the output of a Fleet Server agent (or Fleet managed agents), you have to change the output of the agent policy in Fleet, see the guide how to do it: [Elastic Agent policies | Fleet and Elastic Agent Guide [master] | Elastic](https://www.elastic.co/guide/en/fleet/master/agent-policy.html#change-policy-output)

Changing the `elastic-agent.yml` doesn't work for Fleet managed agents.

---

<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:** [August 22, 2023, 11:54am UTC](https://discuss.elastic.co/t/fleet-server-agent-output-not-supported/339174/3 "2023-08-22T11:54:39Z")

</div>

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