tmds / Tmds.Systemd

.NET Core library for interacting with systemd
Other
128 stars 17 forks source link

Proposal: read from journal #47

Open stefano-v opened 4 years ago

stefano-v commented 4 years ago

Hi, thanks for the great job. I was hoping to use this library to also read from journal. Is it possible? I would like to monitor journal logs to trigger further events.

ygoe commented 4 years ago

That would be cool! For now, I call the journalctl --output json command. But I'm not sure whether that's a good approach for monitoring.

stefano-v commented 4 years ago

That's because I have an elasticsearch+kibana system that pushes alerts in the kibana journal log. I want to capture that alerts from the kibana log and send warning emails. The elasticsearch+kibana email alert plugin is only for premium accounts 💲. I can't purchase it because it's available only for system with 3 or more server (I have one). That't why I'm looking for this 'ugly' alternative.