Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fleet Agent Policy Export Import #128314

Open
anmironov opened this issue Mar 16, 2022 · 5 comments
Open

Fleet Agent Policy Export Import #128314

anmironov opened this issue Mar 16, 2022 · 5 comments
Labels
Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@anmironov
Copy link

Describe the enhancement:
Make possible to export Fleet Agent Policy with Integration or only the integrations and import to another cluster.

Describe a specific use case for the enhancement or feature:
existing Cluster A copy settings to existing Cluster B.
Indices cannot be copied because Cluster B has already some settings there.

@kaiyan-sheng kaiyan-sheng added the Team:Fleet Team label for Observability Data Collection Fleet team label Mar 17, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@ph ph transferred this issue from elastic/beats Mar 22, 2022
@ph
Copy link
Contributor

ph commented Mar 22, 2022

@jen-huang fyi

@GeorgeGkinis
Copy link

GeorgeGkinis commented Jun 19, 2023

We also need this.

We use ECK and defining a policy under xpack.fleet.agentPolicies is really a pain.
It would be awesome to be able to define and trounleshoot our policies in kibana and then be able to export the policy in the format expected by xpack.fleet.agentPolicies.

The output of the "view policy" action is not compatible.

@GeorgeGkinis
Copy link

GeorgeGkinis commented Jun 19, 2023

Also by trying out the Fleet API I see that the output of GET /agent_policies/{agentPolicyId}/full is not even compatible with the input of PUT /agent_policies/{agentPolicyId} or POST /agent_policies/{agentPolicyId}

It would be great if the GET /agent_policies/{agentPolicyId}/full could accept additional query parameters besides "download","standalone" and "kubernettes":

  • "kibana" : Format compatible with the xpack.fleet.agentPolicies setting
  • "export" : Format compatible with the PUT /agent_policies/{agentPolicyId} and POST /agent_policies/{agentPolicyId} endpoints.

@GeorgeGkinis
Copy link

GeorgeGkinis commented Jun 19, 2023

If I am not mistaken Elastic is working on this: #155044 and this: #140961

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

No branches or pull requests

5 participants