this post was submitted on 29 Jul 2023
2 points (100.0% liked)

Linux

47369 readers
878 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I'm pretty new to selfhosting, but one thing that I know to take seriously is log collection. Since there are a lot of different type of logs (kernel log, application logs, etc) and logs come in many different formats (binary, json, strings) - it's no easy task to collect them centrally and look through them whenever neccessarly.

I've looked at grafana and tried the agent briefly, but it wasn't as easy as I thought (and it might be a too big tool for my needs). So I thought to ask the linuxlemmy community to get some inspiration.

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago

Make sure that you have logrotate installed and working, to prevent them from piling up.

[–] [email protected] 0 points 1 year ago (1 children)

Systemd does all that for you. Just set a limit in journal.conf

[–] [email protected] 0 points 1 year ago (1 children)

So does syslog; and really well. Logging is just another thing Lennart tried to take over from a working system, that he and Kay half-delivered, and wandered off. See also: nfsroot, fast boots, easy init config, nfs mounts in general, and cron.

[–] [email protected] -1 points 1 year ago
[–] [email protected] -1 points 1 year ago

Honestly? I just ignore them. Something seems to be happening to them, as they're not growing infinitely, but no idea why.

It was a bit complicated to set this up, but it took me almost no time at all.