-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[DOCS] EQL: Use data streams in EQL docs #70822
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
Conversation
Pinging @elastic/es-ql (Team:QL) |
Pinging @elastic/es-docs (Team:Docs) |
searches across large data sets, <<data-tiers,cold>> or <<data-tiers,frozen>> | ||
data, or <<modules-cross-cluster-search,multiple clusters>>. |
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.
Technically, this would still apply to frozen indices too, but that functionality is outdated with frozen tiers. See #70192.
+ | ||
[source,sh] | ||
---- | ||
curl -H "Content-Type: application/json" -XPOST "localhost:9200/my-index-000001/_bulk?pretty&refresh" --data-binary "@normalized-T1117-AtomicRed-regsvr32.json" | ||
curl -H "Content-Type: application/json" -XPOST "localhost:9200/my-data-stream/_bulk?pretty&refresh" --data-binary "@normalized-T1117-AtomicRed-regsvr32.json" |
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.
Note for reviewers:
If testing this, be sure to use the updated normalized-T1117-AtomicRed-regsvr32.json file in this PR. The one in the preview will be outdated until this PR is merged.
//// | ||
[source,console] | ||
---- | ||
DELETE /_data_stream/* | ||
DELETE /_index_template/* | ||
---- | ||
// TEARDOWN | ||
//// |
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.
I'll replace this with a reusable teardown once #70831 is merged.
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.
The reusable teardowns don't play nicely with test responses. I'm going to leave this in for now.
DELETE /_data_stream/* | ||
DELETE /_index_template/* | ||
---- | ||
// TEARDOWN | ||
//// |
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.
I'll replace this with a reusable teardown once #70831 is merged.
DELETE /_data_stream/* | ||
DELETE /_index_template/* | ||
---- | ||
// TEARDOWN | ||
//// |
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.
I'll replace this with a reusable teardown once #70831 is merged.
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. Thanks for doing this & raising the idea of reusable teardowns for the tests.
Thanks @debadair! |
Data streams are now the preferred way to index time series data. This updates the EQL docs to use data streams in examples. This should be more inline with the typical user experience.
Changes:
sec_logs
andatomic_red_regsvr32
test setups and related snippets to use data streams.range
query example to use the@timestamp
field.Previews