Skip to content
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

XMPP input module timestamp annoyance #2064

Closed
eroteme opened this issue Nov 12, 2014 · 1 comment
Closed

XMPP input module timestamp annoyance #2064

eroteme opened this issue Nov 12, 2014 · 1 comment

Comments

@eroteme
Copy link

eroteme commented Nov 12, 2014

I've changed my local copy of xmpp.rb input in logstash version 1.4.2 due to an annoyance with openfire XMPP server (and probably other XMPP servers).

Basically some XMPP servers resend old messages when logging into a conference chat. This can be disabled in the server but for various reasons this could not be done in my setup. This would have not been a problem if the older messages had the old timestamp from the XMPP xml. however they where all send with the current timestamp so I could not tell if these where old messages within logstash.

I add added the following line in xmpp.rb at line 60:

event["msgtimestamp"] = time

This has more strange behaviour that the old timestamp is now set in msgtimestamp but for any new (current) messages this event attribute is . However this "fix" is enough so I can filter out historical messages within logstash.

I think this is a bug and the xmpp timestamp from the xml should be used in @timestamp or at least in another event attribute like msgtimestamp.

Thanks

@jordansissel
Copy link
Contributor

For Logstash 1.5.0, we've moved all plugins to individual repositories, so I have moved this issue to logstash-plugins/logstash-input-xmpp#1. Let's continue the discussion there! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants