Help to create new field from message

Hello every body,

I m looking for a way (maybe with grok, probably with grok :smiley: ), to create new field by extracting some specifique pattern but with keeping the field message without modification after operation

Example:
2022-03-02 13:16:49.199 DEBUG --- [ool-2-thread-34] c.i.c.b.u.s.CommonSlackService : SR-MODIFY-DISK:jjcb SRID:631221 ServiceTask_1gqecng:e25 [SLACK] Sending message: FATAL Error! Processing of SR-MODIFY-DISK for businessKey SRID:631221 For more details, follow this lin

Need to create new field SRID with value 631221

thx a lot for help

Try

grok { match => { "message" => "SRID:%{NUMBER:SRID}" } }
1 Like

Thx you it works

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