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

Feature request: Push to pubsub topic #6866

Closed
mari0d opened this issue Apr 14, 2018 · 6 comments
Closed

Feature request: Push to pubsub topic #6866

mari0d opened this issue Apr 14, 2018 · 6 comments
Labels
enhancement libbeat needs_team Indicates that the issue/PR needs a Team:* label :Outputs Stalled

Comments

@mari0d
Copy link

mari0d commented Apr 14, 2018

Would it be possible to add support for pushing log lines to a Google Pub/Sub topic?

@ruflin
Copy link
Contributor

ruflin commented Apr 16, 2018

We are currently not planning to add more outputs (see discussion #581). For now you have to put Logstash in the middle.

@mari0d
Copy link
Author

mari0d commented Apr 18, 2018

Ah, that is unfortunate - logstash doesn't write to pubsub. Will we need to fork libbeat if we add in pubsub support?

@urso
Copy link

urso commented Apr 19, 2018

There is no need to fork beats or libbeat for adding an output. Internally outputs/processors/... are plugins. One has two options for adding an output without forking:

  1. use go plugins support. go is somewhat 'restrictive' on plugin loading. Best is to compile beats and the plugin from same workspace. The plugin can be loaded via CLI flags when the beat starts.
    See beats-sample-plugins by me. These still use the 5.x API, but for 6.x there is no big difference. The interface of an output has changed, but the 'symbol' exporting hasn't changed.

  2. The single beats act mostly as framework. You can create your own beat based on the original beat and import your own output. The trick is to copy/adapt the original main.go and add an import statement to your own output like: _ "github.com/my/output/pubsub.

@jsvd
Copy link
Member

jsvd commented Apr 19, 2018

Logstash doesn't currently have any supported plugin to write to pubsub, but there's a community made plugin https://github.com/NirKamara/logstash-output-google-cloud-pubsub

@botelastic
Copy link

botelastic bot commented Jul 9, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added Stalled needs_team Indicates that the issue/PR needs a Team:* label labels Jul 9, 2020
@botelastic
Copy link

botelastic bot commented Jul 9, 2020

This issue doesn't have a Team:<team> label.

@botelastic botelastic bot closed this as completed Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement libbeat needs_team Indicates that the issue/PR needs a Team:* label :Outputs Stalled
Projects
None yet
Development

No branches or pull requests

4 participants