Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Backport This will backport the following commits from `main` to `8.x`: - [[Synthtrace] Adding Entities support (#196258)](#196258) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Cauê Marcondes","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-15T15:21:32Z","message":"[Synthtrace] Adding Entities support (#196258)\n\n## known issue\r\n```\r\n- Transforms are not started by synthtrace. \r\nBecause it duplicates data ingested by synthrace on signal indices. And it takes a long time to generate data.\r\n\r\n- We are not able to open the Inventory page because of 👆🏻.\r\n```\r\n---\r\n\r\n```\r\nnode scripts/synthtrace.js traces_logs_entities.ts --clean --live\r\n```\r\nor \r\n```\r\nnode scripts/synthtrace.js traces_logs_entities.ts --clean --from=2024-04-08T08:00:00.000Z --to=2024-04-08T08:15:00.000Z\r\n```\r\n\r\ndocs produces by the new scenario:\r\n```\r\n{\r\n \"took\": 1,\r\n \"timed_out\": false,\r\n \"_shards\": {\r\n \"total\": 1,\r\n \"successful\": 1,\r\n \"skipped\": 0,\r\n \"failed\": 0\r\n },\r\n \"hits\": {\r\n \"total\": {\r\n \"value\": 3,\r\n \"relation\": \"eq\"\r\n },\r\n \"max_score\": 1,\r\n \"hits\": [\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_services_from_ecs_data\",\r\n \"_id\": \"2846700000000001\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"service\": {\r\n \"name\": \"synth-node-trace-logs\",\r\n \"environment\": \"Synthtrace: traces_logs_entities\"\r\n },\r\n \"source_data_stream\": {\r\n \"type\": [\r\n \"traces\",\r\n \"logs\"\r\n ]\r\n },\r\n \"agent\": {\r\n \"name\": [\r\n \"nodejs\"\r\n ]\r\n },\r\n \"entity\": {\r\n \"id\": \"2846700000000001\",\r\n \"type\": \"service\",\r\n \"definitionId\": \"latest\",\r\n \"lastSeenTimestamp\": \"2024-10-15T08:56:20.562Z\"\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-15T08:56:20.562Z\"\r\n }\r\n }\r\n },\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_services_from_ecs_data\",\r\n \"_id\": \"2846700000000000\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"service\": {\r\n \"name\": \"synth-java-trace\",\r\n \"environment\": \"Synthtrace: traces_logs_entities\"\r\n },\r\n \"source_data_stream\": {\r\n \"type\": [\r\n \"traces\"\r\n ]\r\n },\r\n \"agent\": {\r\n \"name\": [\r\n \"java\"\r\n ]\r\n },\r\n \"entity\": {\r\n \"id\": \"2846700000000000\",\r\n \"type\": \"service\",\r\n \"definitionId\": \"latest\",\r\n \"lastSeenTimestamp\": \"2024-10-15T08:56:20.562Z\"\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-15T08:56:20.562Z\"\r\n }\r\n }\r\n },\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_services_from_ecs_data\",\r\n \"_id\": \"2846700000000002\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"service\": {\r\n \"name\": \"synth-go-logs\",\r\n \"environment\": \"Synthtrace: traces_logs_entities\"\r\n },\r\n \"source_data_stream\": {\r\n \"type\": [\r\n \"logs\"\r\n ]\r\n },\r\n \"agent\": {\r\n \"name\": [\r\n \"go\"\r\n ]\r\n },\r\n \"entity\": {\r\n \"id\": \"2846700000000002\",\r\n \"type\": \"service\",\r\n \"definitionId\": \"latest\",\r\n \"lastSeenTimestamp\": \"2024-10-15T08:56:20.562Z\"\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-15T08:56:20.562Z\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n}\r\n```","sha":"fe22ac99281c9750e9dd55b16fc3ca284ba7683c","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport missing","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","v8.17.0"],"number":196258,"url":"https://github.com/elastic/kibana/pull/196258","mergeCommit":{"message":"[Synthtrace] Adding Entities support (#196258)\n\n## known issue\r\n```\r\n- Transforms are not started by synthtrace. \r\nBecause it duplicates data ingested by synthrace on signal indices. And it takes a long time to generate data.\r\n\r\n- We are not able to open the Inventory page because of 👆🏻.\r\n```\r\n---\r\n\r\n```\r\nnode scripts/synthtrace.js traces_logs_entities.ts --clean --live\r\n```\r\nor \r\n```\r\nnode scripts/synthtrace.js traces_logs_entities.ts --clean --from=2024-04-08T08:00:00.000Z --to=2024-04-08T08:15:00.000Z\r\n```\r\n\r\ndocs produces by the new scenario:\r\n```\r\n{\r\n \"took\": 1,\r\n \"timed_out\": false,\r\n \"_shards\": {\r\n \"total\": 1,\r\n \"successful\": 1,\r\n \"skipped\": 0,\r\n \"failed\": 0\r\n },\r\n \"hits\": {\r\n \"total\": {\r\n \"value\": 3,\r\n \"relation\": \"eq\"\r\n },\r\n \"max_score\": 1,\r\n \"hits\": [\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_services_from_ecs_data\",\r\n \"_id\": \"2846700000000001\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"service\": {\r\n \"name\": \"synth-node-trace-logs\",\r\n \"environment\": \"Synthtrace: traces_logs_entities\"\r\n },\r\n \"source_data_stream\": {\r\n \"type\": [\r\n \"traces\",\r\n \"logs\"\r\n ]\r\n },\r\n \"agent\": {\r\n \"name\": [\r\n \"nodejs\"\r\n ]\r\n },\r\n \"entity\": {\r\n \"id\": \"2846700000000001\",\r\n \"type\": \"service\",\r\n \"definitionId\": \"latest\",\r\n \"lastSeenTimestamp\": \"2024-10-15T08:56:20.562Z\"\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-15T08:56:20.562Z\"\r\n }\r\n }\r\n },\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_services_from_ecs_data\",\r\n \"_id\": \"2846700000000000\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"service\": {\r\n \"name\": \"synth-java-trace\",\r\n \"environment\": \"Synthtrace: traces_logs_entities\"\r\n },\r\n \"source_data_stream\": {\r\n \"type\": [\r\n \"traces\"\r\n ]\r\n },\r\n \"agent\": {\r\n \"name\": [\r\n \"java\"\r\n ]\r\n },\r\n \"entity\": {\r\n \"id\": \"2846700000000000\",\r\n \"type\": \"service\",\r\n \"definitionId\": \"latest\",\r\n \"lastSeenTimestamp\": \"2024-10-15T08:56:20.562Z\"\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-15T08:56:20.562Z\"\r\n }\r\n }\r\n },\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_services_from_ecs_data\",\r\n \"_id\": \"2846700000000002\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"service\": {\r\n \"name\": \"synth-go-logs\",\r\n \"environment\": \"Synthtrace: traces_logs_entities\"\r\n },\r\n \"source_data_stream\": {\r\n \"type\": [\r\n \"logs\"\r\n ]\r\n },\r\n \"agent\": {\r\n \"name\": [\r\n \"go\"\r\n ]\r\n },\r\n \"entity\": {\r\n \"id\": \"2846700000000002\",\r\n \"type\": \"service\",\r\n \"definitionId\": \"latest\",\r\n \"lastSeenTimestamp\": \"2024-10-15T08:56:20.562Z\"\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-15T08:56:20.562Z\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n}\r\n```","sha":"fe22ac99281c9750e9dd55b16fc3ca284ba7683c"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196258","number":196258,"mergeCommit":{"message":"[Synthtrace] Adding Entities support (#196258)\n\n## known issue\r\n```\r\n- Transforms are not started by synthtrace. \r\nBecause it duplicates data ingested by synthrace on signal indices. And it takes a long time to generate data.\r\n\r\n- We are not able to open the Inventory page because of 👆🏻.\r\n```\r\n---\r\n\r\n```\r\nnode scripts/synthtrace.js traces_logs_entities.ts --clean --live\r\n```\r\nor \r\n```\r\nnode scripts/synthtrace.js traces_logs_entities.ts --clean --from=2024-04-08T08:00:00.000Z --to=2024-04-08T08:15:00.000Z\r\n```\r\n\r\ndocs produces by the new scenario:\r\n```\r\n{\r\n \"took\": 1,\r\n \"timed_out\": false,\r\n \"_shards\": {\r\n \"total\": 1,\r\n \"successful\": 1,\r\n \"skipped\": 0,\r\n \"failed\": 0\r\n },\r\n \"hits\": {\r\n \"total\": {\r\n \"value\": 3,\r\n \"relation\": \"eq\"\r\n },\r\n \"max_score\": 1,\r\n \"hits\": [\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_services_from_ecs_data\",\r\n \"_id\": \"2846700000000001\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"service\": {\r\n \"name\": \"synth-node-trace-logs\",\r\n \"environment\": \"Synthtrace: traces_logs_entities\"\r\n },\r\n \"source_data_stream\": {\r\n \"type\": [\r\n \"traces\",\r\n \"logs\"\r\n ]\r\n },\r\n \"agent\": {\r\n \"name\": [\r\n \"nodejs\"\r\n ]\r\n },\r\n \"entity\": {\r\n \"id\": \"2846700000000001\",\r\n \"type\": \"service\",\r\n \"definitionId\": \"latest\",\r\n \"lastSeenTimestamp\": \"2024-10-15T08:56:20.562Z\"\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-15T08:56:20.562Z\"\r\n }\r\n }\r\n },\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_services_from_ecs_data\",\r\n \"_id\": \"2846700000000000\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"service\": {\r\n \"name\": \"synth-java-trace\",\r\n \"environment\": \"Synthtrace: traces_logs_entities\"\r\n },\r\n \"source_data_stream\": {\r\n \"type\": [\r\n \"traces\"\r\n ]\r\n },\r\n \"agent\": {\r\n \"name\": [\r\n \"java\"\r\n ]\r\n },\r\n \"entity\": {\r\n \"id\": \"2846700000000000\",\r\n \"type\": \"service\",\r\n \"definitionId\": \"latest\",\r\n \"lastSeenTimestamp\": \"2024-10-15T08:56:20.562Z\"\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-15T08:56:20.562Z\"\r\n }\r\n }\r\n },\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_services_from_ecs_data\",\r\n \"_id\": \"2846700000000002\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"service\": {\r\n \"name\": \"synth-go-logs\",\r\n \"environment\": \"Synthtrace: traces_logs_entities\"\r\n },\r\n \"source_data_stream\": {\r\n \"type\": [\r\n \"logs\"\r\n ]\r\n },\r\n \"agent\": {\r\n \"name\": [\r\n \"go\"\r\n ]\r\n },\r\n \"entity\": {\r\n \"id\": \"2846700000000002\",\r\n \"type\": \"service\",\r\n \"definitionId\": \"latest\",\r\n \"lastSeenTimestamp\": \"2024-10-15T08:56:20.562Z\"\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-15T08:56:20.562Z\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n}\r\n```","sha":"fe22ac99281c9750e9dd55b16fc3ca284ba7683c"}},{"branch":"8.17","label":"v8.17.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
- Loading branch information