-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: add an example of system integration
- Loading branch information
1 parent
b0239d6
commit 70205a8
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
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. |
9 changes: 9 additions & 0 deletions
9
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,9 @@ | ||
system: | ||
enabled: true | ||
authLogs: | ||
vars: | ||
paths: | ||
- /var/log/custom_auth.log | ||
|
||
agent: | ||
unprivileged: true |