Hi all,
i've in a log file a series of JSON that i want to parse not to extarct all the fields but only some.
This is my log
{
"call_type": "Example",
"begin_time": "2020-04-15T15:05:32.982520+00:00",
"call_size": 30,
"caller_id": "123",
"end_time": "2020-04-15T15:05:32.982744+00:00",
"http_method": "POST",
"request_id": "444"
}
and what i want to have is inside a field of mine my_obj
i want to keep the whole json inside message
and extract some fields to go under my_obj.<field>
such as caller_id
{
"my_obj" :
{
"message" :
{
"call_type": "Example",
"begin_time": "2020-04-15T15:05:32.982520+00:00",
"call_size": 30,
"caller_id": "123",
"end_time": "2020-04-15T15:05:32.982744+00:00",
"http_method": "POST",
"request_id": "444"
},
"request_id": "444",
"caller_id": "123"
}
}
how can I do this? Is it feasible?