-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always add
api_key
to Elasticsearch output
This fixes a few issues: - When the hash on the permission and the hash on the agent were the same the key were not added to the output. This was causing the agent to not be able to connect to Elasticsearch. If you changes an integration policy field, like the host, and the data stream are the same the permission hash will stay the same. - Fix a possible issue when the new key was not saved on the Agent model, the key was only saved when we were targetting a default agent policy. Currently we only support a single ES output so this should always be saved. - Reorganize the test to ensure that all the scenario from the case statement are tested. Fix: elastic/elastic-agent#285
- Loading branch information
Showing
2 changed files
with
132 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters