Originally posted by liam
View Post
Announcement
Collapse
No announcement yet.
Fedora 20 Might No Longer Install Syslog
Collapse
X
-
Originally posted by Ericg View PostWiki's are more likely to have specific examples, which is useful for when the documentation is unclear
I feel like I'm gushing a bit, but I'm just used to really poorly written "blueprints" which don't even document all the features for the given utility.
Comment
-
Originally posted by liam View PostHey, I'm not against wikis, esp Arch/gentoo wikis, but the systemd man pages are just soooo good.
I feel like I'm gushing a bit, but I'm just used to really poorly written "blueprints" which don't even document all the features for the given utility.All opinions are my own not those of my employer if you know who they are.
Comment
-
So how can i backup journald logs?
How come that journal is 5.9M while it contains just 44 entries
[root@localhost journal]# du -h
5.9M ./fbb0c4896a9c0f680475c0a07edd2c5a
5.9M .
And btw reducing log size also removed a lot of logs but instead of keeping the newest logs im left garbage from 6 days
Comment
-
In my experience, if your log files are in a binary format then you are doing it wrong (TM).
Especially on Linux, you have just thrown all the traditional text processing tools (sed, grep etc) out the window.
There are ways to index text files for faster access etc. It's also easy to limit the size of the log file, or just create a new file whenever the size reaches a certain limit.
Now I will need a special tool just to read the log file? Microsoft went down that alley, and failed. Log files on Windows are horrible and inaccessible. Don't do that to Linux.
Comment
-
Originally posted by amehaye View PostIn my experience, if your log files are in a binary format then you are doing it wrong (TM).
The only question here is what Fedora does by default, and honestly, who cares? Nothing is stopping you from using a different system logger, all messages are forwarded to a socket at /run/systemd/journal/syslog. You can tell journalctl not to store logs and have your syslog daemon listen on that socket, or you can run both. If you're unable to make these changes, chances are that you're unable to actually make use of the text logs, too.
Comment
-
Originally posted by Ramiliez View PostSo how can i backup journald logs?
How come that journal is 5.9M while it contains just 44 entries
[root@localhost journal]# du -h
5.9M ./fbb0c4896a9c0f680475c0a07edd2c5a
5.9M .
And btw reducing log size also removed a lot of logs but instead of keeping the newest logs im left garbage from 6 days
Originally posted by amehaye View PostIn my experience, if your log files are in a binary format then you are doing it wrong (TM).
Comment
-
Originally posted by Ramiliez View PostSo how can i backup journald logs?
How come that journal is 5.9M while it contains just 44 entries
[root@localhost journal]# du -h
5.9M ./fbb0c4896a9c0f680475c0a07edd2c5a
5.9M .
And btw reducing log size also removed a lot of logs but instead of keeping the newest logs im left garbage from 6 days
MaxRetentionSec=
0 is the default (which turns it off) Journal entries older than the specified time limit (in seconds) will be automatically deleted. You may append "year" "month" "week" "day" "h" or "m" to over ride the default time unit of seconds.All opinions are my own not those of my employer if you know who they are.
Comment
-
Originally posted by johnc View PostYour log file directory is named with a list of a thousand random hex chars? Gee... where have we seen this before?
Exactly. I still remember leafing through MS's Log File Viewer just to find some half-helpful information. I'd prefer to forget about the experience altogether.
Comment
-
Originally posted by amehaye View PostIn my experience, if your log files are in a binary format then you are doing it wrong (TM).
Especially on Linux, you have just thrown all the traditional text processing tools (sed, grep etc) out the window.
There are ways to index text files for faster access etc. It's also easy to limit the size of the log file, or just create a new file whenever the size reaches a certain limit.
Now I will need a special tool just to read the log file? Microsoft went down that alley, and failed. Log files on Windows are horrible and inaccessible. Don't do that to Linux.
Anyway, this has been lengthily debated, and journal is here to stay, as the main logging mechanism for fedora (and some other distributions).
The current debate is not whether journal is good, nor whether it should be used by default, nor whether other logging systems should or could be made incompatible.
It is about making it the only one installed by default, as opposed to (previously) one of two mechanisms installed by default.
Comment
Comment