How to extract part of a string from a field in json format and put it into a self added field?

As the title, I successfully use json filter to extract the items from the data which is in json format, but i cannot extract part of a string from one of the field extracted and put it into another self added field.

I have been trying something like below

filter {
                grok {
                match => { "message" => "%{TIMESTAMP_ISO8601:timestamp}:json%{SPACE}:%{SPACE}%{GREEDYDATA:json_data}" }
                }
}


filter {
                json{
                        source => "json_data"
                        add_field => { "detailInstanceName" =>  "%{[json_data][ProcessPath]}" }
                }
}

the field of detailInstanceName can be show in kibana but its values is literally %{[json_data][ProcessPath]}. I want to put the value of ProcessPath field extracted from json data into this detailInstanceName and then I can extract part of if into another field.

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