Graylog2 / Graylog2/graylog2-server

Search pattern has influence on ressources needed in elasticsearch

Open
#9,830 0 comments 0 reactions 1 assignee Claimed by @Emy-01 View on GitHub
feature triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

## Current Behavior

It makes a difference how you type in a query:

`eventid: ( 5827 OR 5828 OR 5829 OR 5830 OR 5831)`

is less expensive to elasticsearch than:

`eventid:5827 OR eventid:5828 OR eventid:5829 OR eventid:5830 OR eventid:5831`

## Context
It should not make a difference how you write the query as that is normalized by Graylog itself.

We have observed that in environments that have lots of data and are under load this can be a real problem. We need to look into that in details to check if we can improve this.

[z#844334]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.