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

Bug in "fields" - EQL #72864

Closed
srikwit opened this issue May 9, 2021 · 2 comments
Closed

Bug in "fields" - EQL #72864

srikwit opened this issue May 9, 2021 · 2 comments
Labels
:Analytics/EQL EQL querying Team:QL (Deprecated) Meta label for query languages team

Comments

@srikwit
Copy link

srikwit commented May 9, 2021

Dear Team,

From the documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/eql.html#retrieve-selected-fields

I am trying to use the fields option in EQL but I am getting an error as follows, I have followed the documentation and I am providing the differences against regular search for your reference:

  1. Regular fields - works
GET winlogbeat-7.12.0/_search
{
  "fields": []
}
  1. EQL fields - Does not work
GET winlogbeat-7.12.0/_eql/search
{
  "fields": []
}

{
  "error" : {
    "root_cause" : [
      {
        "type" : "x_content_parse_exception",
        "reason" : "[2:3] [eql/search] unknown field [fields]"
      }
    ],
    "type" : "x_content_parse_exception",
    "reason" : "[2:3] [eql/search] unknown field [fields]"
  },
  "status" : 400
}

I have simplified the example from the documentation and the issue I find is with the following description:
You can also use the fields parameter to retrieve and format specific fields in the response. This field is identical to the search API’s fields parameter.

I would also like to point out that the fields option is never populated from the console when we type the name in the standard search as well as EQL search which I have uploaded for your reference.

image

@srikwit srikwit added >bug needs:triage Requires assignment of a team area label labels May 9, 2021
@jtibshirani jtibshirani added :Analytics/EQL EQL querying and removed needs:triage Requires assignment of a team area label labels May 11, 2021
@elasticmachine elasticmachine added the Team:QL (Deprecated) Meta label for query languages team label May 11, 2021
@elasticmachine
Copy link
Collaborator

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

@matriv
Copy link
Contributor

matriv commented May 12, 2021

Hi @srikwit This is a feature that has been added with: #68962 and is available in 7.13.0 and not 7.12.x. Please check the documentation for the relevant version you're using, for example: https://www.elastic.co/guide/en/elasticsearch/reference/7.12/eql.html#retrieve-selected-fields

@matriv matriv closed this as completed May 12, 2021
@matriv matriv removed the >bug label May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/EQL EQL querying Team:QL (Deprecated) Meta label for query languages team
Projects
None yet
Development

No branches or pull requests

4 participants