Skip to content
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

EQL: Support returning of runtime fields #68115

Closed
costin opened this issue Jan 28, 2021 · 2 comments
Closed

EQL: Support returning of runtime fields #68115

costin opened this issue Jan 28, 2021 · 2 comments
Labels
:Analytics/EQL EQL querying >enhancement Team:QL (Deprecated) Meta label for query languages team

Comments

@costin
Copy link
Member

costin commented Jan 28, 2021

Currently EQL returns only _source and thus ignores any runtime fields defined in the mapping. This can be addressed, by potentially supporting the fields API option just like on Elasticsearch requests.

@elasticmachine elasticmachine added the Team:QL (Deprecated) Meta label for query languages team label Jan 28, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-ql (Team:QL)

@astefan
Copy link
Contributor

astefan commented Jan 28, 2021

There is a difference, and an unnecessary complication imo, to mimic the support offered by fields API in EQL search request, if everything that's needed is only the runtime fields: fields accepts any kind of input and retrieves those fields, if they exist.

An EQL output that shows both the original, indexing time, _source and potentially the same fields as in those from _source means duplicating the output. We could look into adding this request body parameter but limit its functionality to runtime fields only, not name it fields but runtime_fields or similar and define it as an array of string values representing runtime field names. We can also allow * (wildcard) to return all runtime fields (which should be possible in future if #68117 is implemented).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/EQL EQL querying >enhancement Team:QL (Deprecated) Meta label for query languages team
Projects
None yet
Development

No branches or pull requests

3 participants