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] Outputs > Specify where agents will send data #150111

Open
joepa37 opened this issue Feb 1, 2023 · 4 comments
Open

[Fleet] Outputs > Specify where agents will send data #150111

joepa37 opened this issue Feb 1, 2023 · 4 comments
Labels
bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@joepa37
Copy link

joepa37 commented Feb 1, 2023

Kibana version: kibana:8.5.3

Elasticsearch version: elasticsearch:8.5.3

Original install method (e.g. download page, yum, from source, etc.): Elastic ECK 2.6

Describe the bug: Is posible to send data to an external elasticsearch deployment with fleet server?

I have tried with the Kibana Fleet UI settings but there is no username, password field for connection, if I specify those on Advanced YAML configuration give me these error: cannot set both api_key and username/password accessing 'elasticsearch'

I can see the Kibana Fleet Settings xpack.fleet.outputs > config described as Extra config for that output to set this manually but there is no example to set this config variable.

Screenshots (if relevant):
image (1)

@joepa37 joepa37 added the bug Fixes for quality problems that affect the customer experience label Feb 1, 2023
@botelastic botelastic bot added the needs-team Issues missing a team label label Feb 1, 2023
@bhavyarm bhavyarm added the Team:Fleet Team label for Observability Data Collection Fleet team label Feb 10, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@bhavyarm bhavyarm removed the needs-team Issues missing a team label label Feb 10, 2023
@kpollich
Copy link
Member

Hi @joepa37 - it looks like you might be trying to configure a remote Elasticsearch output here, which is not supported today. However, supporting remote Elasticsearch clusters is on our roadmap, and there's a tracking issue here with some context: #104986.

If this isn't a remote cluster, then you shouldn't need to provide a username/password as Fleet's "enrollment tokens" resource will provide the API key access each Agent needs to authenticate requests and ship data.

For some additional technical context, Fleet and Agent use Elasticsearch API keys for authentication. So, in order to support output to a remote Elasticsearch cluster, you'd need to have the same API key be valid for two separate clusters - which is not something plain API keys support. In order to fulfill this authentication need, remote clusters will need to provision a service account token that can be given to your Fleet Server instances.

cc @nimarezainia

@nimarezainia
Copy link
Contributor

Hello @kpollich - it's possible to achieve this using two fleet servers? I can see some done tasks related with "Proxies" feature here:

* [[REQUEST]: Support multiple Fleet Servers in Fleet UI observability-docs#2343](https://github.com/elastic/observability-docs/issues/2343)

* [[META]Allow specifying different and multiple fleet servers in agent policy fleet-server#903](https://github.com/elastic/fleet-server/issues/903)

* [[REQUEST]: Support multiple Fleet Servers in Fleet UI observability-docs#2343](https://github.com/elastic/observability-docs/issues/2343)

i believe the way you may want to achieve this is by writing to Logstash and then route from there to multiple ES clusters. As mentioned above agents don't support connections to a re mote S cluster at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

No branches or pull requests

5 participants