-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[helm]: implement system integration as chart built-in (#5855)
* feat: implement system integration as chart built-in * feat: restructure logs streams in system integration to allow passing user-supplied vars * doc: add an example of system integration * feat: add missing rendered file for system integration example
- Loading branch information
1 parent
460f44e
commit e6f281a
Showing
12 changed files
with
788 additions
and
19 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
25 changes: 25 additions & 0 deletions
25
deploy/helm/elastic-agent/examples/system-custom-auth-paths/README.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Example: System Integration with custom auth log paths | ||
|
||
In this example we install the built-in `system` integration and specify custom paths for the auth logs stream (see [agent-system-values.yaml](agent-system-values.yaml)). | ||
|
||
## Prerequisites: | ||
1. A k8s secret that contains the connection details to an Elasticsearch cluster such as the URL and the API key ([Kibana - Creating API Keys](https://www.elastic.co/guide/en/kibana/current/api-keys.html)): | ||
```console | ||
kubectl create secret generic es-api-secret \ | ||
--from-literal=api_key=... \ | ||
--from-literal=url=... | ||
``` | ||
|
||
2. `system` integration assets installed through Kibana ([Kibana - Install and uninstall Elastic Agent integration assets](https://www.elastic.co/guide/en/fleet/current/install-uninstall-integration-assets.html)) | ||
|
||
## Run: | ||
```console | ||
helm install elastic-agent ../../ \ | ||
-f ./agent-system-values.yaml \ | ||
--set outputs.default.type=ESSecretAuthAPI \ | ||
--set outputs.default.secretName=es-api-secret | ||
``` | ||
|
||
## Validate: | ||
|
||
1. The Kibana `system`-related dashboards should start showing up the respective info. |
13 changes: 13 additions & 0 deletions
13
deploy/helm/elastic-agent/examples/system-custom-auth-paths/agent-system-values.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
system: | ||
enabled: true | ||
authLogs: | ||
vars: | ||
paths: | ||
- /var/log/custom_auth.log | ||
syslog: | ||
vars: | ||
paths: | ||
- /var/log/custom_syslog.log | ||
|
||
agent: | ||
unprivileged: true |
Oops, something went wrong.