News for hackers. Stuff that matters.
Re:Good Logging by cstuder on Friday July 24, 2020 @04:44AM (#23937193)
Any recommendations for simple centralized logging for small/hobbist/non-profit projects?

I'm basically looking for something self-hosted or cloud-based where I can easily POST some data from Python/PHP/JavaScript/Bash running on two or three servers and easily have a look at the logs streaming in.

Spinning up an entire Graylog seems overkill in order to log a couple of dozen lines per day.

Re:Good Logging by user5994461 on Friday July 24, 2020 @06:24AM (#23937772)
Suggest to try syslog-ng.

Have a syslog-ng running locally on all your hosts and forwarding logs to a central one. Applications can easily send logs to syslog, all languages/loggers support it.

The central syslog can listen for remote logs and save everything into /storage/hostname/year-month-date/file.log for example. This allows you to grep everything from that host.

It's simple and it uses very little resources.

Re:Good Logging by phaer on Friday July 24, 2020 @04:51AM (#23937241)
https://grafana.com/docs/loki/latest/

is pretty good for structured logging. But as always: depends on your needs especially with regards to indexing as loki stores only the raw log data and set labels.

But putting new data into it via POST is pretty simple https://grafana.com/docs/loki/latest/api/#post-lokiapiv1push

Re:Good Logging by whatl3y on Friday July 24, 2020 @05:16AM (#23937414)
AWS CloudWatch logs is cheap and very easy to 1. integrate with existing loggers, 2. send logs to your desired log stream (and to send to multiple streams depending on if your in dev, testing, prod etc.) and 3. fetch/review via CLI or their web interface.
Re:Good Logging by georgekin on Friday July 24, 2020 @06:23AM (#23937768)
Check out https://datalust.co/seq. Supports native ingestion over HTTP, as well as plugins for syslog/GELF. Can run locally as well as in docker, so it runs anywhere.
Re:Good Logging by wsargent on Saturday July 25, 2020 @02:16PM (#23951277)
Honeycomb has a free tier that is very generous:

https://www.honeycomb.io/pricing?

You can set up with one of their Beelines, or just send JSON to the REST endpoint.