Logstash - How can i get the data from a key-value pair?

I have a field which is like "host":{"name":"abcdef"}, How can i get the value "abcdef" alone from the host field? gsub is not allowing me to remove the {} or "name":

I tried to get the value by referencing as %{host}{name}. That does not work too.

1 Like

Maybe %{[host][name]}

2 Likes

Thank you very much. It worked.