Basic runtime fields to pull data from message field

Hello all,

I am trying to create a series of runtime fields to extract additional data fields from the message field. If it makes any difference this is a EFK stack running in K8s.

For example I want to create level field for our incoming logs (info,warn,error etc) and then aggregate each level

This is our log format

2024-03-13 07:36:59.195 [123] INFO  blablabla: (unauthorized) 200 /api/blablatook 00:00:00.0001609

If anyone could recommend the correct expression that would be greatly appreciated.

I have read through the documentation but when I tried to reference the message.keyword field it appears as though its not found?

Thanks in advance

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

Hi @randomnamegenerator,

The expected format to access a field value inside a runtime field script is doc["message.keyword"].value Manage data views | Kibana Guide [master] | Elastic

There are also other ways to parse logs. I would recommend to check these docs: