How to append an existing filed to another existing filed

Hi there!

How to append an existing filed to an another existing filed?

In kibana, I have like this

deviceId : 1,002
level : INFO
sessionId : EC142
logmessage: Workflow has completed with bulkdata

So, now I want to append deviceId to logmessage field. It should appear like this:
(Example- logmessage: Workflow has completed with bulkdata 1,002)

I used merge plugin from mutate but it doesn't show up.
Can any one help with this?

Thanks!

mutate {
  replace => {
    "logmessage" => "%{logmessage} %{deviceId}"
  }
}
1 Like

Awesome! Its working now.

Thanks Magnus.

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