Add full text search to pod logs

Merged Adrien Kohlbecker requested to merge ak/logs-search-4 into master

What does this MR do?

As per #39166 (closed) and #36342 (closed), adds a search bar to the logs UI.

You need Feature.enable(:enable_cluster_application_elastic_stack)

The search is passed on to ElasticSearch using the simple_query_string function:

The simple_query_string query supports the following operators:

+ signifies AND operation
| signifies OR operation
- negates a single token
" wraps a number of tokens to signify a phrase for searching
* at the end of a term signifies a prefix query
( and ) signify precedence
~N after a word signifies edit distance (fuzziness)
~N after a phrase signifies slop amount


Example of searching for GET in logs, showing disabled behavior when test-instance is selected (doesn't have Elasticsearch)


Does this MR meet the acceptance criteria?


Availability and Testing


If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖