Skip to content

[8.x] [Streams] Replay loghub data with synthtrace (#212120)#214916

Merged
dgieselaar merged 3 commits intoelastic:8.xfrom
dgieselaar:backport/8.x/pr-212120
Mar 19, 2025
Merged

[8.x] [Streams] Replay loghub data with synthtrace (#212120)#214916
dgieselaar merged 3 commits intoelastic:8.xfrom
dgieselaar:backport/8.x/pr-212120

Conversation

@dgieselaar
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

Download, parse and replay loghub data with Synthtrace, for use in the
Streams project. In summary:

- adds a `@kbn/sample-log-parser` package which parses Loghub sample
data, creates valid parsers for extracting and replacing timestamps,
using the LLM
- add a `sample_logs` scenario which uses the parsed data sets to replay
Loghub data continuously as if it were live data
- refactor some parts of Synthtrace (follow-up work captured in
elastic#212179)

## Synthtrace changes

- Replace custom Logger object with Kibana-standard ToolingLog
- Report progress and estimated time to completion for long-running jobs
- Simplify scenarioOpts (allow comma-separated key-value pairs instead
of just JSON)
- Simplify client initialization
- When using workers, only bootstrap once (in the main thread)
- Allow workers to gracefully shutdown
- Downgrade some logging levels for less noise

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit ba13e86)

# Conflicts:
#	.github/CODEOWNERS
#	src/platform/packages/shared/kbn-apm-synthtrace/src/cli/utils/get_apm_es_client.ts
#	src/platform/packages/shared/kbn-apm-synthtrace/src/cli/utils/get_entities_es_client.ts
#	src/platform/packages/shared/kbn-apm-synthtrace/src/cli/utils/get_infra_es_client.ts
#	src/platform/packages/shared/kbn-apm-synthtrace/src/cli/utils/get_logs_es_client.ts
#	src/platform/packages/shared/kbn-apm-synthtrace/src/cli/utils/get_otel_es_client.ts
#	src/platform/packages/shared/kbn-apm-synthtrace/src/cli/utils/get_synthetics_es_client.ts
#	src/platform/packages/shared/kbn-apm-synthtrace/src/lib/apm/client/apm_synthtrace_kibana_client.ts
@dgieselaar dgieselaar added the backport This PR is a backport of another PR label Mar 18, 2025
@dgieselaar dgieselaar enabled auto-merge (squash) March 18, 2025 08:59
@botelastic botelastic bot added the Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation. label Mar 18, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@elasticmachine
Copy link
Contributor

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #3 / ES deprecations table search bar filters results by status

Metrics [docs]

‼️ ERROR: no builds found for mergeBase sha [9ad3f73]

@dgieselaar
Copy link
Contributor Author

@elasticmachine merge upstream

@dgieselaar dgieselaar merged commit ec8bdf0 into elastic:8.x Mar 19, 2025
8 checks passed
@dgieselaar dgieselaar deleted the backport/8.x/pr-212120 branch March 19, 2025 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants