Nested json field mutate string to number

Hello, I'm trying to convert a nested json field from a string to an integer. But i am not getting field into Integer.

field Name:

events.data.custom_attributes.txn_total_time_to_complete_in_sec

Code:

    mutate {convert => { "events.data.custom_attributes.txn_total_time_to_complete_in_sec" => "integer" }}

OR

 mutate {convert => { "[events][data[custom_attributes][txn_total_time_to_complete_in_sec]" => "integer" }}

Can you please help on this.

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