atlesn / blockdevlogger

Line logger which writes and reads directly to or from a block device (e.g. USB-memory) without using a filesystem
GNU General Public License v3.0
2 stars 0 forks source link

syslog integration? systemd journal? #1

Open cypa opened 5 years ago

cypa commented 5 years ago

very nice idea how to actually use it? any real cases?

atlesn commented 4 years ago

Sorry for the late reply.

It can be used to store for instance input from some sensor or log generating program. Using an external device is useful for diskless clients, like Raspberry Pi.

It was previously included as a module in my Read Route Record project to cache messages locally before sending them over network (and retry those who did not arrive). It unfortunately had to be removed as RRR-messages changed from static to dynamic length, which was difficult to implement with block device logger.

How would you integrate it with syslog or systemd? Run as a daemon?

cypa commented 4 years ago

interesting ... but I'm tired of problems storing logs in filesystems files so I'm searching for any way to store log record streams instead of files