Skip to content

Conversation

@masterzen
Copy link

Hi Jordan,

I implemented the Stomp input and output plugins for logstash.
It would be great if you could merge this upstream.

Let me know if you need more information or code change.

Thank you!
Brice

@fetep
Copy link
Contributor

fetep commented Dec 5, 2010

Looks great!

Should we break out StompHandler into it's own file so we only have to define it once? It looks like mostly duplicated code between the input & output module.

@masterzen
Copy link
Author

Yes, sure, I can do that.
Where do you want me to put the resulting file?

@masterzen
Copy link
Author

OK, I refactored the code to share most of the handler. Let me know if that's better.

@fetep
Copy link
Contributor

fetep commented Dec 6, 2010

I don't see to get any kind of error message (at the normal logging level) if the stomp server is unreachable. I think we should at least @logger.warn() in that case.

@fetep
Copy link
Contributor

fetep commented Dec 6, 2010

It looks like we can define an "unbind" function that gets called and we can warn about stomp connectivity problems, but AFAICT there's not a way to log a better reason.

@masterzen
Copy link
Author

I'll look to this tonight. I think I need to override some callbacks from EM.
Do you know if other EM logstash inputs/outputs manage errors?

@masterzen
Copy link
Author

I pushed a new version with an unbind implementation.

@jordansissel
Copy link
Contributor

Commited, thanks!

cite added a commit to cite/logstash that referenced this pull request Jul 20, 2014
Change logic from using "chroot --userspec" (which doesn't work
with RHEL5) to using "sudo". Side effects:
1. It's no longer possible to explictely set the group that LS
   will use (LS_GROUP variable removed).
2. Related to #1, supplemental groups for logstash will now work.
3. Due to the way that sudo behaves, I had to shift logfile
   creation to the non-privileged part, so on upgrades, if one
   doesn't explicitely chown existing logfiles, it will break.

Regarding elastic#3: We could probably chown the logfiles to $LS_USER from
within the init script...
@cite cite mentioned this pull request Jul 20, 2014
@ghost ghost mentioned this pull request Jun 24, 2015
This pull request was closed.
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

Successfully merging this pull request may close these issues.

3 participants