Kibana Build details:
VERSION: 8.14.0 BC3
BUILD: 73762
COMMIT: 2a492e1625f24336f3259b2b8df62b2b18127e81
Artifact Link: https://staging.elastic.co/8.14.0-7c638435/downloads/beats/elastic-agent/elastic-agent-8.14.0-darwin-aarch64.tar.gz
Preconditions:
- 8.14.0-BC3 Kibana cloud environment should be available.
Steps to reproduce:
- Run agent install command with
--base-path and --unprivileged.
- Observe agent is installed successfully.
- Run
sudo elastic-agent inspect command and observe an error.
Expected Result:
Inspect command shouldn't fail for mac agent installed at custom path using --base-path and --unprivileged flags.
Screenshot:



Working fine for agent installed without unprivileged flag and installed at same location:

Kibana Build details:
Artifact Link: https://staging.elastic.co/8.14.0-7c638435/downloads/beats/elastic-agent/elastic-agent-8.14.0-darwin-aarch64.tar.gz
Preconditions:
Steps to reproduce:
--base-pathand--unprivileged.sudo elastic-agent inspectcommand and observe an error.Expected Result:
Inspect command shouldn't fail for mac agent installed at custom path using
--base-pathand--unprivilegedflags.Screenshot:



Working fine for agent installed without unprivileged flag and installed at same location:
