On Mo, 06.05.19 12:09, Mantas Mikulėnas (graw...@gmail.com) wrote:
> > Am 03.05.19 um 13:29 schrieb Jérémy ROSEN:
> > > if you want the whole power of structured logs, you need to use the
> > journald API
> >
>
> On the other hand, JSON parsing might be a useful addition to journald, as
> apparent
On Mo, 06.05.19 09:12, Thomas Güttler (guettl...@thomas-guettler.de) wrote:
> Solution 1:
> My service (written Python) uses the journald API.
> Disadvantage: My script can't be run under a different environment
> (without journald)
Doesn't Python have an abstraction for that that does some ba
On Fr, 03.05.19 11:09, Thomas Güttler (guettl...@thomas-guettler.de) wrote:
> I have a systemd service which is of type "simple".
>
> I want my service to log key-value pairs.
>
> Is there a way to use structured logs with systemd?
Depend on your programming language.
In C, sd_journal_send()/sd_
Hi there,
I wrote my first response not to the list, so sry for the double.
> On the other hand, JSON parsing might be a useful addition to journald, as
> apparently "@cee: {}" is a quite common syslog format.
JSON is meant to be parsed by an application and I am not sure if
logging (specially for
On Mon, May 6, 2019 at 10:09 AM Thomas Güttler
wrote:
> Am 03.05.19 um 13:29 schrieb Jérémy ROSEN:
> > if you want the whole power of structured logs, you need to use the
> journald API
>
On the other hand, JSON parsing might be a useful addition to journald, as
apparently "@cee: {}" is a quite
you can have both your app and the wrapper launched by a shell, and have
systemd monitor the shell...
Le lun. 6 mai 2019 à 09:09, Thomas Güttler a
écrit :
> Am 03.05.19 um 13:29 schrieb Jérémy ROSEN:
> > if you want the whole power of structured logs, you need to use the
> journald API
> > I am
Am 03.05.19 um 13:29 schrieb Jérémy ROSEN:
if you want the whole power of structured logs, you need to use the journald API
I am not sure in what language your program is written, but if you are using C,
it's pretty trivial to do
(and i'm pretty sure most bindings are trivial to use too)
Yes,
if you want the whole power of structured logs, you need to use the
journald API
I am not sure in what language your program is written, but if you are
using C, it's pretty trivial to do
(and i'm pretty sure most bindings are trivial to use too)
Automated parsing of stdout is limited, you can
* ad
I have a systemd service which is of type "simple".
I want my service to log key-value pairs.
Is there a way to use structured logs with systemd?
For example my service writes this to stdout:
{"key1": "value1", "key2": 1234}
{"key1": "value2", "key2": 5678}
...
It would be great of systemd c