{
"time": "2024-09-19T08:03:02.234663252Z",
"json": {
"ts": "2024-09-19T15:03:02.234462341+07:00",
"logger": "<anonymized>",
"level": "WARN",
"class": "net.ttddyy.dsproxy.support.SLF4JLogUtils",
"method": "writeLog",
"file": "<anonymized>",
"line": 26,
"thread": "pool-1-thread-1",
"arguments": {},
"msg": "{\"name\":\"\", \"connection\":22234743, \"time\":20000, \"success\":false, \"type\":\"Prepared\", \"batch\":false, \"querySize\":1, \"batchSize\":0, \"query\":[\"select * from whatever.whatever w where w.whatever in (?,?,?) \"], \"params\":[[\"1\",\"2\",\"3\"]]}",
"scope": "APP"
},
"kubernetes": {
"pod_name": "<anonymized>",
"namespace_name": "<anonymized>",
"labels": {
"whatever": "whatever"
},
"container_image": "<anonymized>"
}
} to begin with, I'd like to do equivallent`jq '.json.msg|fromjson|.query[0]'`. After that, eventually, do the actual parameter substitutions, deduplication, counting, min/max time, but that's way beyond of scope of this question.
... View more