[8.x] [Security solution] Update ebt fields script to new Vault policy (#194458) (#194468)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security solution] Update ebt fields script to new Vault policy
(#194458)](https://github.com/elastic/kibana/pull/194458)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Steph
Milovic","email":"stephanie.milovic@elastic.co"},"sourceCommit":{"committedDate":"2024-09-30T17:59:14Z","message":"[Security
solution] Update ebt fields script to new Vault policy
(#194458)","sha":"c362ab8b920a0c34582ab046e8a3925e7a2d42fb","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:
SecuritySolution","backport:prev-minor","v8.16.0"],"title":"[Security
solution] Update ebt fields script to new Vault
policy","number":194458,"url":"https://github.com/elastic/kibana/pull/194458","mergeCommit":{"message":"[Security
solution] Update ebt fields script to new Vault policy
(#194458)","sha":"c362ab8b920a0c34582ab046e8a3925e7a2d42fb"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194458","number":194458,"mergeCommit":{"message":"[Security
solution] Update ebt fields script to new Vault policy
(#194458)","sha":"c362ab8b920a0c34582ab046e8a3925e7a2d42fb"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
This commit is contained in:
Kibana Machine 2024-10-01 05:34:08 +10:00 committed by GitHub
parent 47a52a97df
commit 08d5c08021
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ If you have further events to be included in the data views, please update the s
### Usage
1. Login with Vault (`vault login -method github`), ensure you have siem-team access. If you have never accessed Vault before, follow [these instructions](https://github.com/elastic/infra/blob/master/docs/vault/README.md)
1. Login with Vault (`vault login -method oidc`), ensure you have siem-team access. If you have never accessed Vault before, follow [these instructions](https://github.com/elastic/infra/blob/master/docs/vault/README.md)
2. cd into this directory
3. Run the script with the appropriate arguments. By default, the script will run for the `security-solution-ebt-kibana-browser` data view in the `securitysolution` space. If you want to run the script for the server data view, pass the `--telemetry_type` argument with the value `server`.

View file

@ -11,7 +11,7 @@ import { events as genAiEvents } from '@kbn/elastic-assistant-plugin/server/lib/
import { events as securityEvents } from '../../server/lib/telemetry/event_based/events';
import { telemetryEvents } from '../../public/common/lib/telemetry/events/telemetry_events';
// uncomment and add to run script, but do not commit as creates cirular dependency
// uncomment and add to run script, but do not commit as creates circular dependency
// import { telemetryEvents as serverlessEvents } from '@kbn/security-solution-serverless/server/telemetry/event_based_telemetry';
const logger = new ToolingLog({