rgerhards wrote:Thanks for the great post, for now just one answerdlang wrote:it seems as if you need the timestamp at the time that you recieve the message, but can't you just store that time in the Msg structure and everything after that uses the one of the two timestamps in the message (either the time provided by the sending system or the time that rsyslog recieved the message), I'm missing why you would need any other timestamps
In regard to the message, this is done. But there is more than the message. The output, for example, needs to know when it has last *processed* a message, so that it can apply the various "last processed" time related comparisons. Note that due to the queue, the time a message is processed may greatly differ from the time the message was received. This drives logic like "process only when there are n messages within m seconds" and things like this.
what I'm missing is why anyone would care when the message was stored. I can see all sorts of reasons to do logic based on time+quantity for messages using the time that the messages were generated (or recieved if you don't trust the clocks on the sending servers), but I can't think of what logic someone would want to apply based on when the messages were processed/stored.
the only thing that I can think of that would have even a scrap of validity would be to try and surpress alerts if the message was too old, but even that is very questionable.
David Lang


