Adding run_id
to JSON logs
When using a JSON formatter, the
run_id
isn’t specified in the resulting logs. Here’s an example line in
meltano.log
⤵️
{
"consumer": true,
"producer": false,
"string_id": "target-snowflake",
"cmd_type": "elb",
"stdio": "stderr",
"name": "target-snowflake",
"event": "time=2024-03-14 16:41:30 name=target_snowflake level=INFO message=Loading into REDACTED.\"REDACTED\": {\"inserts\": 315600, \"updates\": 0, \"size_bytes\": 13682350}",
"level": "info",
"timestamp": "2024-03-14T16:41:30.459033Z"
}
Therefore, when exporting to Datadog, I can’t distinguish my different jobs. Is there a way to fix that?
I put my logging.yaml
file in the thread 🧵