I have java/logback feeding a template a la:
<pattern>
{
"environment" : "somecrazyenvironment",
"appname" : "somecrazyapplication",
"logger" : "%logger",
"level" : "%level",
"thread" : "%thread",
"method" : "%class",
"message" : "%message"
}
</pattern>
which the JSON filter properly handles (and placed into a target json container field "app")
However, the "message" often contains yet more nested JSON. This causes consternation and often field-type conflicts ('tried to parse field [FIELD] as object, but found a concrete value').
Is it possible to prevent descending into nested JSON? (preferred)
Or
Is it possible to do some mutate/drop using some sort of logic based on for [app][NOTsome_json_subfield_i_care_about] ? (seems ugly)
thanks!