s-fleck / lgrExtra

Extra Appenders for the lgr Package
https://s-fleck.github.io/lgrExtra/
Other
7 stars 2 forks source link

Appender for logDNA? #4

Open mbacou opened 4 years ago

mbacou commented 4 years ago

Hi, I'm just parking this feature request here in case others might be interested as well. Our shop is moving from Postgres to using LogDNA.com (https://logdna.com/) for distributed application logging. There's an existing Python client for LogDNA (https://github.com/logdna/python), but nothing equivalent on CRAN yet.

Would seem a good fit for either lgr or @daroczig's logger?

daroczig commented 4 years ago

I'm not sure about LogDNA's interface, but if they provide an API to push the log records, it should be trivial to add to either packages, I think. See eg the pushbullet, slack or kinesis appenders at https://github.com/daroczig/logger/blob/master/R/appenders.R

mbacou commented 4 years ago

Thx, yes realize it's a straightforward implementation. Also looks like LogDNA can ingest log events via TCP through an rsyslog template (https://docs.logdna.com/docs/rsyslog), probably even easier to distribute R logs that way. fyi

s-fleck commented 4 years ago

cool that this works via rsyslog, but it seems logDNA has a Web-API an appenders should be pretty easy to implement via HTTR (probably easier than configuring rsyslog for this). I might look into adding a more generic rest api appenders to lgrExtra.