-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command line option -T is not restricted to messages from remote hosts #93
Comments
Interesting observation about the effect of I've tried real hard to bring sysklogd in-line with the FreeBSD and NetBSD implementations of So at the very least we should update our documentation of |
Yeah, it surprised me too. I definitely agree with documentation update, something like
I rather meant changing the default behavior just in RFC 5424 case but that again leads to the last paragraph in #92 (comment). |
Mmm, we'll see. Must be succinct and easy to read. Adding this to the next milestone.
No, the output formats only control the RFC style in the output, not how to interpret the input. It would also be very confusing/inconsistent. The only thing we should change is the documentation. |
Think of a message always containing two types of timestamps: original and syslogd-received. Then you could choose which one to use in the output. But I guess I should rather finally decide which one to choose instead of trying to make syslogd rsyslog-ish? |
Sure, but that should not be implicitly changed by the RFCXXXX output format options. For that another action option should be used instead, e.g.,
The direction of the sysklogd project is quite clear, as I've stated previously, we aim to track our upstream brethren in FreeBSD and NetBSD land and we are not aiming to become an |
I guess that I finally understand. |
I've held off responding to this, but I really do not understand this comment. The link references a long thread, the link anchor points to a post from the rsyslogd maintainer. What in particular do you, @opty77, think is "worth a mention" here? Or do you mean this particular comment should be taken into consideration for this particular bug report? I honestly cannot guess what people mean, so please try to be more clear in your issue messages. |
I consider
interesting regarding original dilemma in the very first comment (together with #96) and
which I tried to find in rsyslogd source code but failed and rather saw |
Great reply, thank you, so much clearer now! 😃 |
With RFC 3164 (the default) syslogd can use messages' timestamp but it doesn't provide enough information/precision (year, TZ and subseconds). You can't reliably sort messages taken from several files, you would have to log them to a single file too.
RFC 5424 helps a bit but you still have to fake the subsecond part of glibc's
syslog(3)
messages which may lead to wrong order in sorted list. (Consider the edge of the consecutive seconds.)But... you can run
syslogd -T
(undocumented for local messages), let it always generate consistent timestamps (although different) and reliably sort messages from several files. IIRC rsyslog uses this approach by default and I wonder whether syslogd should behave the same. It would fix #92 which led me to these thoughts.The text was updated successfully, but these errors were encountered: