Skip to content

Separate enroll and run Elastic agent into two steps #65749

@kaiyan-sheng

Description

@kaiyan-sheng

When trying to enroll a new agent, the third step shown in the screenshot below actually includes two separate parts: enroll the agent and start the agent.
Screen Shot 2020-05-07 at 11 03 01 AM

With the current "Copy command" button, both commands are copied at the same time. But these two commands are not able to run together because enroll has the prompt about overwriting old setting: This will replace your current settings. Do you want to continue? [Y/n]:.

Several potential solutions I can see:

  1. use --force to bypass the [Y/n] when enrolling the agent as @jfsiii mentioned in slack.
  2. separate enroll and run agent into two steps
  3. keep them in one step but make two "Copy command" button.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:FleetTeam label for Observability Data Collection Fleet team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions