Parse json with strings

Hello!
I have json like
{ "some_int": int_value "some_other": { "some_string": string_value } }

is it possible with telegraf inputs.http with json parser to get both values from some_int and some_string fields?

now its looks like, when i want to use json_string_fields they need to be on 1st level of json or i need to do some json_query to it
but if I do query, I loose infromation ahead of it, cos it cut all top levels of json

is there some solution?

Hi @1115,

You can use _ to fetch fields futher down the JSON structure, as such:

some_other_some_string should hopefully work for you.

 tag_keys = ["some_int"]
 json_string_fields = ["some_other_some_string"]