https://slingdata.io logo
I think I may have misunderstood how
# sling-help
m
I think I may have misunderstood how that worked. We are running sling inside kubernetes cronjobs and using
Loki
to get the pod logs. Is there a way to get the console logs in JSON format?
f
yes, set env var
SLING_LOGGING=JSON
m
I have the following set in my replication.yaml
Copy code
...
        select: [-password]
    env:
      SLING_THREADS: 1
      SLING_LOGGING: JSON
This does not seem to have taken effect.
f
Yeah, it's because the logger inits before the replication is loaded. Can you try setting at shell level?
m
Yepp, that fixed it
Thank you <3
2 Views