From 07d59ad0e979675db9c8f3a9a4a90d373bf32ff9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 2 Dec 2025 16:02:56 +0000 Subject: [PATCH 1/7] Initial plan From d080f460410e0c8cae1ee1ec0ca98dbf29e8b3b8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 2 Dec 2025 16:06:57 +0000 Subject: [PATCH 2/7] Add Linux, Windows, DEB, and RPM standalone agent upgrade commands Co-authored-by: bmorelli25 <5618806+bmorelli25@users.noreply.github.com> --- reference/fleet/upgrade-standalone.md | 48 ++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/reference/fleet/upgrade-standalone.md b/reference/fleet/upgrade-standalone.md index d092ebdd16..af817dfdcc 100644 --- a/reference/fleet/upgrade-standalone.md +++ b/reference/fleet/upgrade-standalone.md @@ -13,13 +13,59 @@ To upgrade a standalone agent running on an edge node: 1. Make sure the `elastic-agent` service is running. 2. From the directory where {{agent}} is installed, run the `upgrade` command to upgrade to a new version. Not sure where the agent is installed? Refer to [Installation layout](/reference/fleet/installation-layout.md). - For example, on macOS, to upgrade the agent from version 8.8.0 to 8.8.1, you would run: + For example, to upgrade the agent from version 8.8.0 to 8.8.1, you would run: + + :::::{tab-set} + + ::::{tab-item} macOS ```shell cd /Library/Elastic/Agent/ sudo elastic-agent upgrade 8.8.1 ``` + :::: + + ::::{tab-item} Linux + + ```shell + cd /opt/Elastic/Agent/ + sudo elastic-agent upgrade 8.8.1 + ``` + + :::: + + ::::{tab-item} Windows + + Open a PowerShell prompt as an Administrator (right-click the PowerShell icon and select **Run As Administrator**). + + From the PowerShell prompt, change to the directory where you installed {{agent}}, and run: + + ```shell + cd "C:\Program Files\Elastic\Agent" + .\elastic-agent.exe upgrade 8.8.1 + ``` + + :::: + + ::::{tab-item} DEB + + ```shell + sudo elastic-agent upgrade 8.8.1 + ``` + + :::: + + ::::{tab-item} RPM + + ```shell + sudo elastic-agent upgrade 8.8.1 + ``` + + :::: + + ::::: + This command upgrades the binary. Your agent policy should continue to work, but you might need to upgrade it to use new features and capabilities. From cbc2cbbc7751cac760bda351331b91233635557f Mon Sep 17 00:00:00 2001 From: Brandon Morelli Date: Tue, 9 Dec 2025 15:56:26 -0800 Subject: [PATCH 3/7] Apply suggestions from code review --- reference/fleet/upgrade-standalone.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/fleet/upgrade-standalone.md b/reference/fleet/upgrade-standalone.md index af817dfdcc..e3bfb5d67d 100644 --- a/reference/fleet/upgrade-standalone.md +++ b/reference/fleet/upgrade-standalone.md @@ -37,7 +37,7 @@ To upgrade a standalone agent running on an edge node: ::::{tab-item} Windows - Open a PowerShell prompt as an Administrator (right-click the PowerShell icon and select **Run As Administrator**). + Open a PowerShell prompt as an Administrator. From the PowerShell prompt, change to the directory where you installed {{agent}}, and run: From 75854c4442346184d8082e4c601479bfa2ec2ede Mon Sep 17 00:00:00 2001 From: Brandon Morelli Date: Tue, 9 Dec 2025 16:00:12 -0800 Subject: [PATCH 4/7] Update upgrade instructions for Elastic Agent version --- reference/fleet/upgrade-standalone.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/reference/fleet/upgrade-standalone.md b/reference/fleet/upgrade-standalone.md index e3bfb5d67d..b9947beaa3 100644 --- a/reference/fleet/upgrade-standalone.md +++ b/reference/fleet/upgrade-standalone.md @@ -13,7 +13,7 @@ To upgrade a standalone agent running on an edge node: 1. Make sure the `elastic-agent` service is running. 2. From the directory where {{agent}} is installed, run the `upgrade` command to upgrade to a new version. Not sure where the agent is installed? Refer to [Installation layout](/reference/fleet/installation-layout.md). - For example, to upgrade the agent from version 8.8.0 to 8.8.1, you would run: + For example, to upgrade the agent from version 9.1.0 to 9.1.1, you would run: :::::{tab-set} @@ -21,7 +21,7 @@ To upgrade a standalone agent running on an edge node: ```shell cd /Library/Elastic/Agent/ - sudo elastic-agent upgrade 8.8.1 + sudo elastic-agent upgrade 9.1.1 ``` :::: @@ -30,20 +30,18 @@ To upgrade a standalone agent running on an edge node: ```shell cd /opt/Elastic/Agent/ - sudo elastic-agent upgrade 8.8.1 + sudo elastic-agent upgrade 9.1.1 ``` :::: ::::{tab-item} Windows - Open a PowerShell prompt as an Administrator. - - From the PowerShell prompt, change to the directory where you installed {{agent}}, and run: + Open a PowerShell prompt as an Administrator and run: ```shell cd "C:\Program Files\Elastic\Agent" - .\elastic-agent.exe upgrade 8.8.1 + .\elastic-agent.exe upgrade 9.1.1 ``` :::: @@ -51,7 +49,7 @@ To upgrade a standalone agent running on an edge node: ::::{tab-item} DEB ```shell - sudo elastic-agent upgrade 8.8.1 + sudo elastic-agent upgrade 9.1.1 ``` :::: @@ -59,7 +57,7 @@ To upgrade a standalone agent running on an edge node: ::::{tab-item} RPM ```shell - sudo elastic-agent upgrade 8.8.1 + sudo elastic-agent upgrade 9.1.1 ``` :::: @@ -99,7 +97,7 @@ In the event of a private GPG key rotation, you can use the following options wi Example: ```yaml - ./elastic-agent upgrade 8.8.0 --skip-verify + ./elastic-agent upgrade 9.1.0 --skip-verify ``` @@ -109,7 +107,7 @@ In the event of a private GPG key rotation, you can use the following options wi Example: ```yaml - ./elastic-agent upgrade 8.8.0 --pgp-path /home/elastic-agent/GPG-KEY-elasticsearch + ./elastic-agent upgrade 9.1.0 --pgp-path /home/elastic-agent/GPG-KEY-elasticsearch ``` From 7511cb745b8c068957127da56b10791e2f0508c9 Mon Sep 17 00:00:00 2001 From: Brandon Morelli Date: Tue, 9 Dec 2025 16:01:01 -0800 Subject: [PATCH 5/7] Simplify upgrade instructions for Elastic Agent Removed unnecessary 'cd' commands for upgrade instructions. --- reference/fleet/upgrade-standalone.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/reference/fleet/upgrade-standalone.md b/reference/fleet/upgrade-standalone.md index b9947beaa3..d3b097e822 100644 --- a/reference/fleet/upgrade-standalone.md +++ b/reference/fleet/upgrade-standalone.md @@ -20,7 +20,6 @@ To upgrade a standalone agent running on an edge node: ::::{tab-item} macOS ```shell - cd /Library/Elastic/Agent/ sudo elastic-agent upgrade 9.1.1 ``` @@ -29,7 +28,6 @@ To upgrade a standalone agent running on an edge node: ::::{tab-item} Linux ```shell - cd /opt/Elastic/Agent/ sudo elastic-agent upgrade 9.1.1 ``` @@ -40,7 +38,6 @@ To upgrade a standalone agent running on an edge node: Open a PowerShell prompt as an Administrator and run: ```shell - cd "C:\Program Files\Elastic\Agent" .\elastic-agent.exe upgrade 9.1.1 ``` From c60d7aa814affbf61302c3ccc0ff33e450f96369 Mon Sep 17 00:00:00 2001 From: Brandon Morelli Date: Tue, 9 Dec 2025 16:01:59 -0800 Subject: [PATCH 6/7] Fix typo in Windows upgrade instructions --- reference/fleet/upgrade-standalone.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/fleet/upgrade-standalone.md b/reference/fleet/upgrade-standalone.md index d3b097e822..4948233b38 100644 --- a/reference/fleet/upgrade-standalone.md +++ b/reference/fleet/upgrade-standalone.md @@ -35,7 +35,7 @@ To upgrade a standalone agent running on an edge node: ::::{tab-item} Windows - Open a PowerShell prompt as an Administrator and run: + As an Administrator and run: ```shell .\elastic-agent.exe upgrade 9.1.1 From 2995dcaa3d1a6cd322504815eacce6c159c1634b Mon Sep 17 00:00:00 2001 From: Brandon Morelli Date: Tue, 9 Dec 2025 16:02:15 -0800 Subject: [PATCH 7/7] Fix grammatical error in upgrade instructions --- reference/fleet/upgrade-standalone.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/fleet/upgrade-standalone.md b/reference/fleet/upgrade-standalone.md index 4948233b38..61ae1a6b97 100644 --- a/reference/fleet/upgrade-standalone.md +++ b/reference/fleet/upgrade-standalone.md @@ -35,7 +35,7 @@ To upgrade a standalone agent running on an edge node: ::::{tab-item} Windows - As an Administrator and run: + As an Administrator, run: ```shell .\elastic-agent.exe upgrade 9.1.1