# Fleet Agent Upgrade

**URL:** <https://discuss.elastic.co/t/fleet-agent-upgrade/351053>\
**Category:** Kibana\
**Tags:** fleet\
**Created:** [January 15, 2024, 7:39am UTC](https://discuss.elastic.co/t/fleet-agent-upgrade/351053 "2024-01-15T07:39:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alphayeeeet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alphayeeeet/32/126382_2.png) [@Alphayeeeet](https://discuss.elastic.co/u/Alphayeeeet)\
**Post date:** [January 15, 2024, 7:39am UTC](https://discuss.elastic.co/t/fleet-agent-upgrade/351053/1 "2024-01-15T07:39:37Z")

</div>

When using Fleet to upgrade the Elastic Agent, Kibana and Elasticsearch needed to bu upgraded first, before the Agent Upgrade becomes available according to the docs.

If I upgrade Kibana/Elasticsearch from 8.11.1 to 8.11.3, the only available Agent upgrade is to version 8.11.2 instead it should be 8.11.3 right?

I appreciate any advice. Thank you

---

<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:** [January 15, 2024, 5:13pm UTC](https://discuss.elastic.co/t/fleet-agent-upgrade/351053/2 "2024-01-15T17:13:52Z")

</div>

Hi @Alphayeeeet

Take a look at this...

> **[Fleet and Elastic Agent 8.11.3 | Fleet and Elastic Agent Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/fleet/current/release-notes-8.11.3.html)**

Under the known issues there are instructions to address

> #### Known issues
> 
> Current stack version is not in the list of Elastic Agent versions in Kibana Fleet UI
> 
> **Details**
> 
> On the Fleet UI in Kibana:
> 
> - When adding a new Elastic Agent, the user interface shows a previous version instead of the current version.
> - When you attempt an upgrade, the modal window shows an earlier version as the latest version.  
> ...

---

<div class="post-metadata">

**Author:** ![Alphayeeeet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alphayeeeet/32/126382_2.png) [@Alphayeeeet](https://discuss.elastic.co/u/Alphayeeeet)\
**Post date:** [January 22, 2024, 12:47pm UTC](https://discuss.elastic.co/t/fleet-agent-upgrade/351053/3 "2024-01-22T12:47:48Z")

</div>

Hi @stephenb

unfortunately the provided link does not work.

---

<div class="post-metadata">

**Author:** ![Alphayeeeet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alphayeeeet/32/126382_2.png) [@Alphayeeeet](https://discuss.elastic.co/u/Alphayeeeet)\
**Post date:** [January 22, 2024, 1:09pm UTC](https://discuss.elastic.co/t/fleet-agent-upgrade/351053/4 "2024-01-22T13:09:52Z")

</div>

I found the mentioned site, but unfortunately the workaround does not work, because thh Upgrade Agent button is greyed out (Kibana is running 8.11.4; Agents are running 8.11.3). I assume, that this issue is fixed, when upgrading to the next minor version 8.12.0

---

<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:** [January 22, 2024, 1:27pm UTC](https://discuss.elastic.co/t/fleet-agent-upgrade/351053/5 "2024-01-22T13:27:53Z")

</div>

You can use the API to request a bulk upgrade as described in the same documenttion.

For example:

```auto
POST kbn:/api/fleet/agents/bulk_upgrade
{
  "agents": "fleet-agents.policy_id:uuid1-uuid2-uuid3-uuid4 and fleet-agents.agent.version<8.11.4",
  "version": "8.11.4"
}

```

---

<div class="post-metadata">

**Author:** ![Alphayeeeet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alphayeeeet/32/126382_2.png) [@Alphayeeeet](https://discuss.elastic.co/u/Alphayeeeet)\
**Post date:** [January 23, 2024, 7:49am UTC](https://discuss.elastic.co/t/fleet-agent-upgrade/351053/6 "2024-01-23T07:49:45Z")

</div>

This doesn't quite work, as Kibana wants me to upgrade fleetserver first. If i use a filter criteria fro fleetserver, the error says it cannot upgrade due to not upgraded fleetserver.

---

<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:** [January 23, 2024, 7:55am UTC](https://discuss.elastic.co/t/fleet-agent-upgrade/351053/7 "2024-01-23T07:55:32Z")

</div>

Agent version cannot be ahead of fleet version as far as I know.  
Yes if you want to run agent 8.11.4 you need fleet at that same release.

---

<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:** [January 23, 2024, 12:24pm UTC](https://discuss.elastic.co/t/fleet-agent-upgrade/351053/8 "2024-01-23T12:24:07Z")

</div>

> [@Alphayeeeet](#):
>
> This doesn't quite work, as Kibana wants me to upgrade fleetserver first.

What is your fleet server? You should keep it in the same version as Kibana.

You may need to upgrade it using the command line as well using `elastic-agent upgrade 8.11.4` on your server.

---

<div class="post-metadata">

**Author:** ![Alphayeeeet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alphayeeeet/32/126382_2.png) [@Alphayeeeet](https://discuss.elastic.co/u/Alphayeeeet)\
**Post date:** [January 30, 2024, 12:11pm UTC](https://discuss.elastic.co/t/fleet-agent-upgrade/351053/9 "2024-01-30T12:11:31Z")

</div>

I know I can upgrade using command line, but I will wait until we're upgrading to Elastic 8.12.x. The issue should then be fixed, I think.

---

<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:** [February 27, 2024, 12:12pm UTC](https://discuss.elastic.co/t/fleet-agent-upgrade/351053/10 "2024-02-27T12:12:20Z")

</div>

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