Skip to content

EQL: Add implicit ordering on timestamp #53004

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

Merged
merged 8 commits into from
Mar 2, 2020

Conversation

costin
Copy link
Member

@costin costin commented Mar 2, 2020

QL: Move Sort base class from SQL to QL

QL: Move Sort base class from SQL to QL
@costin costin added the :Analytics/EQL EQL querying label Mar 2, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/EQL)

Copy link
Contributor

@astefan astefan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Left two comments.

@@ -3,6 +3,9 @@
"event_type" : {
"type" : "keyword"
},
"timestamp" : {
"type" : "keyword"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keyword?

@@ -3,6 +3,9 @@
"event_type" : {
"type" : "keyword"
},
"timestamp" : {
"type" : "keyword"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keyword?

@@ -27,7 +27,7 @@ PUT sec_logs/_bulk?refresh
You can now use the EQL search API to search this index using an EQL query.

The following request searches the `sec_logs` index using the EQL query
specified in the `query` parameter. The EQL query matches events with an
specified in the `rule` parameter. The EQL query matches events with an
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something didn't merge right, should be query

@costin
Copy link
Member Author

costin commented Mar 2, 2020

@elasticmachine run elasticsearch-ci/2

@@ -74,7 +75,8 @@ The API returns the following response containing the matching event:
"name": "cmd.exe",
"path": "C:\\Windows\\System32\\cmd.exe"
}
}
},
"sort" : [1607339167000]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jrodewig Not sure whether there's a better way to match the document - essentially the score has been replaced by sort and I'd like to remove both from the result.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@costin No worries. As long as the CI tests pass, I would not consider this a blocker. I can work on the additional doc changes as a separate PR.

Copy link
Contributor

@jrodewig jrodewig Mar 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related PR: #53027

@costin costin merged commit 798015b into elastic:master Mar 2, 2020
@costin costin deleted the eql/implicit-sort branch March 2, 2020 20:40
costin added a commit that referenced this pull request Mar 2, 2020
QL: Move Sort base class from SQL to QL
(cherry picked from commit 798015b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/EQL EQL querying
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants