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

API send_events entry for code reuse #118

Open
binarytrails opened this issue Feb 26, 2021 · 1 comment
Open

API send_events entry for code reuse #118

binarytrails opened this issue Feb 26, 2021 · 1 comment

Comments

@binarytrails
Copy link

Let's say I wanna reuse the lib code from another plugin.

Is there a way to have an API for an entry point like send_events(events) to call them from another plugin?

I really love the implementation of concurrency using atomics as well as the retry scheme and it would be interesting to be able to reuse this plugin code instead of re-implementing it.

However, I don't see public methods headers allowing this unless I'm missing something?

@andsel
Copy link

andsel commented Apr 6, 2021

Hi @binarytrails
instead of creating a new plugin to do HTTP output maybe you can contribute to this if you feel it's missing something.
If you want to reuse the code maybe you can include this gem in your other plugin and subclass or wrap the class LogStash::Outputs::Http

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