I use Grafana Loki for showing Logs of my Kubernetes Cluster. After creating a Query inside the Explore tab I see the log line, but it seems that all log lines a strings and not the expected JSON. My promtail collects the logs with docker mode. So Maybe someone have an idea what I do wrong or miss with my logs to show the result as JSON?
Sample Logline:
"{\"t\":{\"$date\":\"2022-08-23T10:04:09.950+00:00\"},\"s\":\"I\", \"c\":\"NETWORK\", \"id\":51800, \"ctx\":\"conn85878\",\"msg\":\"client metadata\",\"attr\":{\"remote\":\"127.0.0.1:57270\",\"client\":\"conn85878\",\"doc\":{\"application\":{\"name\":\"MongoDB Shell\"},\"driver\":{\"name\":\"MongoDB Internal Client\",\"version\":\"4.4.12\"},\"os\":{\"type\":\"Linux\",\"name\":\"PRETTY_NAME=\\\"Debian GNU/Linux 10 (buster)\\\"\",\"architecture\":\"x86_64\",\"version\":\"Kernel 4.19.0-21-amd64\"}}}}\n"