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

Transpile EQL stateless expressions into ES Search DSL #49589

Closed
colings86 opened this issue Nov 26, 2019 · 2 comments
Closed

Transpile EQL stateless expressions into ES Search DSL #49589

colings86 opened this issue Nov 26, 2019 · 2 comments
Labels
:Analytics/EQL EQL querying

Comments

@colings86
Copy link
Contributor

colings86 commented Nov 26, 2019

The EQL plugin needs to transpile EQL expressions which do not require state into ES Search DSL.

The expressions that need to be transpiled to ES Search DSL are those of the form event_type WHERE criteria. Pipes are not in scope for this issues and will be addressed later. Additionally sequence and join expressions will not be able to be converted to ES Search DSL since they require special processing by the EQL plugin. However, the elements of the sequence or join can be transpiled to ES Search DSL.

Example

Given the following EQL expression:

process where process name = "evil.exe"

We would generate a ES Search request similar to the following (for illustrative purposes, the actual request may be different):

GET index/_search
{
  size: 1000,
  query: {
    bool: {
      must: [
        {
          match: {
            event.type: process
          }
        },
        {
          match: {
            process_name: evil.exe
          }
        }
      ]
    }
  },
  sort: [{ pid: asc }, { timestamp: asc }, { _seq_no: asc}]
}
@colings86 colings86 added the :Analytics/EQL EQL querying label Nov 26, 2019
@elasticmachine
Copy link
Collaborator

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

@colings86
Copy link
Contributor Author

Closing as this work is done

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

No branches or pull requests

2 participants