Filter with regex to select lines that contain a certain word type


I would like to know if it is possible to make a filter, in kibana, which contain the word "error".

Indeed, I have in a log field (named "message") lines similar to these :


ANS2832E Incremental snapshot difference failed
ANS2832E Incremental snapshot error

Now, I want to filter the "message" field to display only the lines that have the word "error".

thanks for you help :slight_smile:
best regards,

If the field message is a text field, you could use a simple DSL query filter. For example, to filter the documents where category contains Men's Shoe string:

  "query": {
    "match": {
      "category": "Men's Shoe"

Thanks for your answer :grinning_face_with_smiling_eyes:

In fact, I forgot a detail...

the word I'm looking for starts with "error" and continues with letters or numbers.

How can I make regex ^ANS.* in "message" field in my precedent example ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.