Open 6A61736F6E206E61646572 opened 11 months ago
I would like to have the journalctl logs shown in logDNA to be in JSON format.
Would it be possible to add an env var to enable journald to output logs in JSON format?
Such that when enabled it would change 'export' in the code below to 'json-pretty':
https://github.com/logdna/logdna-agent-v2/blob/d71e6f12af2b77d3922bc138bc2fa8a0d7a2aca1/common/journald/src/journalctl/mod.rs#L253-L263
Or otherwise if there is another method that can achieve it at the moment?
I would like to have the journalctl logs shown in logDNA to be in JSON format.
Would it be possible to add an env var to enable journald to output logs in JSON format?
Such that when enabled it would change 'export' in the code below to 'json-pretty':
https://github.com/logdna/logdna-agent-v2/blob/d71e6f12af2b77d3922bc138bc2fa8a0d7a2aca1/common/journald/src/journalctl/mod.rs#L253-L263
Or otherwise if there is another method that can achieve it at the moment?