Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Logs onboarding] Getting elastic-agent state in a more reliably way (e…
…lastic#165205) Closes elastic#163163. We were getting `elastic-agent` status using `human` [output](https://www.elastic.co/guide/en/fleet/current/elastic-agent-cmd-options.html#_options_7), this way of obtaining the state is very unreliable since human format it's more likeable to vary from one version to other. e.g - v8.0.0 <img width="1021" alt="image" src="https://github.com/elastic/kibana/assets/1313018/7c8102a4-0785-4ab1-b690-ab62ec67644d"> - v8.9.0 <img width="1026" alt="image" src="https://github.com/elastic/kibana/assets/1313018/b6acdfbd-6efa-4518-8855-0aba3662f07b"> ### Changes - Get `elastic-agent` status from json output. #### Demo ##### v8.0.0 https://github.com/elastic/kibana/assets/1313018/6c507269-65d5-4c8a-9e9f-420698ca995d ##### v8.9.0 https://github.com/elastic/kibana/assets/1313018/acdab744-0bd7-43c8-9eb8-024e5a2eeae5
- Loading branch information