-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Synthtrace] Support Non-ECS Logs #191086
[Synthtrace] Support Non-ECS Logs #191086
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
/ci |
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
packages/kbn-apm-synthtrace/src/lib/logs/logs_synthtrace_es_client.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -53,6 +53,17 @@ export class SynthtraceEsClient<TFields extends Fields> { | |||
)}"` | |||
); | |||
|
|||
const resolvedIndices = this.indices.length | |||
? ( | |||
await this.client.indices.resolveIndex({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for that, I was doing the same thing on another PR that hasn't been merged yet 😆
await this.client.indices.resolveIndex({ | ||
name: this.indices.join(','), | ||
expand_wildcards: ['open', 'hidden'], | ||
// @ts-expect-error ignore_unavailable is not in the type definition, but it is accepted by es |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: If you want you can create a PR to fix this type issue like i did once upon a time - elastic/elasticsearch-specification#2653
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: |
closes 3759
📝 Summary
This PR creates a new scenario with different non ECS fields as below :
The above fields are applied with different variances as below :
🎥 Demo
node scripts/synthtrace simple_non_ecs_logs.ts
nonEcs.mov