elastic / elastic/kibana-load-testing
[load data] add support for create data stream api
- Dominant language
- Scala
- Stars
- 6
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
Some of journeys, e.g. [cloud_security_dashboard](https://github.com/elastic/kibana/blob/main/x-pack/performance/journeys/cloud_security_dashboard.ts), require index to be created using create data stream api;
[ESArchiver.scala ](https://github.com/elastic/kibana-load-testing/blob/main/src/test/scala/org/kibanaLoadTest/helpers/ESArchiver.scala) is to be extended with create data stream api call for indexes matches `logs-*` pattern
```
Caused by: java.lang.RuntimeException: co.elastic.clients.elasticsearch._types.ElasticsearchException: [es/indices.create]
failed: [illegal_argument_exception] cannot create index with name [logs-cloud_security_posture.findings_latest-default],
because it matches with template [logs] that creates data streams only, use create data stream api instead
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in src/test/scala/org/kibanaLoadTest/helpers/ESArchiver.scala and trace the existing index-creation flow. Add the create data stream API path for index names matching logs-*, while preserving the current behavior for other indexes; done means the cloud_security_dashboard journey can create its logs-* data stream without the shown Elasticsearch error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elasticsearch, scala
- Domain
- databases, testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100