# API for configuring Fleet Server settings?

**URL:** <https://discuss.elastic.co/t/api-for-configuring-fleet-server-settings/318879>\
**Category:** Elastic Agent\
**Created:** [November 14, 2022, 3:12pm UTC](https://discuss.elastic.co/t/api-for-configuring-fleet-server-settings/318879 "2022-11-14T15:12:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![learningelastic](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@learningelastic](https://discuss.elastic.co/u/learningelastic)\
**Post date:** [November 14, 2022, 3:12pm UTC](https://discuss.elastic.co/t/api-for-configuring-fleet-server-settings/318879/1 "2022-11-14T15:12:50Z")

</div>

Is there a programmatic way to set the values for Fleet Server as shown in this image here?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/7/27333496a3aa1a6bf29282cb39041ef618936247.png)

I'm ok with command line tools, restful api, or some other automated service. There's a lot of elastic documentation, but I wasn't sure which is most relevant to my situation. Can someone point me in the right direction?

---

<div class="post-metadata">

**Author:** ![AgentWong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/agentwong/32/114378_2.png) [@AgentWong](https://discuss.elastic.co/u/AgentWong)\
**Post date:** [December 8, 2022, 3:40am UTC](https://discuss.elastic.co/t/api-for-configuring-fleet-server-settings/318879/2 "2022-12-08T03:40:38Z")

</div>

For Fleet servers:  
[Swagger UI](https://petstore.swagger.io/?url=https://raw.githubusercontent.com/elastic/kibana/8.5/x-pack/plugins/fleet/common/openapi/bundled.json#/default/update-settings)  
Not sure if the API is accurate, I use "PUT" method and supply "fleet\_server\_hosts" as a list of strings.

I use this one for outputs:  
[Swagger UI](https://petstore.swagger.io/?url=https://raw.githubusercontent.com/elastic/kibana/8.5/x-pack/plugins/fleet/common/openapi/bundled.json#/default/post-outputs)

One note for outputs:  
The API and documentation is not updated. You can set Logstash servers as an output, but neither the API or documentation reflects that.

There are open issues and PRs for that:  
[[Fleet] Update doc for preconfiguration · Issue #146397 · elastic/kibana (github.com)](https://github.com/elastic/kibana/issues/146397)  
[[Fleet] Fix open API for output to support logstash by nchaulet · Pull Request #146396 · elastic/kibana (github.com)](https://github.com/elastic/kibana/pull/146396/files)

The PR should contain enough information on how to format the request if you feel adventurous. From my experience, outputting to elasticsearch directly is less complicated. I still sent mine to Logstash though.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [December 8, 2022, 4:18am UTC](https://discuss.elastic.co/t/api-for-configuring-fleet-server-settings/318879/3 "2022-12-08T04:18:23Z")

</div>

Hi @learningelastic and Welcome to the community @AgentWong

Turns Out Fleet API is just getting started and the the Initial Technical Preview is available in 8.5

> This functionality is in technical preview and may be changed or removed in a future release. Elastic will apply best effort to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.

> **[Kibana Fleet APIs | Fleet and Elastic Agent Guide \[8.5\] | Elastic](https://www.elastic.co/guide/en/fleet/8.5/fleet-api-docs.html)**

---

<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:** [January 5, 2023, 4:18am UTC](https://discuss.elastic.co/t/api-for-configuring-fleet-server-settings/318879/4 "2023-01-05T04:18:26Z")

</div>

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