-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Support multiple ES output in Kibana config file (aka preconfiguration) #108968
Comments
Pinging @elastic/fleet (Team:Fleet) |
I started to implement the preconfigure API and I think we will have the same issues that preconfigured agent policies has here (#110533) once we have the UI to edit outputs. I think we should agree on what behavior we should implement:
|
On my first read, this seems like the best option to me. Seems like this option leaves the least room for breakage and complexity, and keeps things as strict as possible. |
+1 to this. Let's keep it simple to make it really easy to understand. Ideally, we'd have a tooltip or similar indicating that this output must be configured via the I also think our first use case for this (the internal Cloud ES URL for the apm-server package) needs this output to not be editable anyways, so I think it makes sense to start with this behavior. I do wonder if we need the ability to 'hide' outputs like this one. Have we spoken with the Cloud team about whether or not this output should be hidden or obfuscated in any way? |
+1, it's similar to the
That's a fair question when we get to the UI part of this work, but I believe for 7.16 scope this output will definitely be hidden from the user as we're not building a UI. |
+1 users should not edit these settings in the UI or API. We should probably hide the service token in the UI too. I added a mockup for this use case in Whimsical and updated the google doc. |
The scope for 7.16.0 as been updated and only the same cluster is currently supported and this currently implemented in #111002 |
Why?
Related to #104980
Currently we can only configure one global default output in Fleet. We want to allow users to configure multiple Elasticsearch Output to send integration data or monitoring data.
to a remote Elasticsearch cluster(Not for 7.16)Output created using the preconfigure service and the kibana config will not be editable via API or in the UI.
Description
The same way we allow user to configure agent policy, we will allow users to configure outputs in the Kibana config file, and use these outputs in the preconfigured agent policies.
We will not expose outputs management in the UI for 7.16.
We will support output to the same ES cluster as Kibana with different settings or to remote Elasticsearch cluster in this case the user will have to provide a service account token.
Detailed
Data model Saved object
Our data model is already built to support multiple output, we will have to do some tweak:
data_output_id
on a agent policymonitoring_output_id
on a agent policyallow to specify a service account token on an outputfleet_server_service_token
(!We probably want to use encrypted saved object for that).Agent policy change
and to pass the service token for remote ES cluster, underfleet_server.service_token
Agent Policy example
Config
The text was updated successfully, but these errors were encountered: