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

Add google-pubsub input type to Filebeat #12746

Merged
merged 4 commits into from
Jul 2, 2019

Conversation

andrewkroh
Copy link
Member

@andrewkroh andrewkroh commented Jul 2, 2019

Add new input type for consuming messages from Google Cloud Pub/Sub topic
subscriptions.

This input can, for example, be used to receive Stackdriver logs that have been exported to a Google Cloud Pub/Sub topic.

Example configuration:

filebeat.inputs:
- type: google-pubsub
  project_id: my-gcp-project-id
  topic: vpc-firewall-logs-topic
  subscription.name: filebeat-vpc-firewall-logs-sub
  credentials_file: ${path.config}/my-pubsub-subscriber-credentails.json

Most of the code is for the GCP SDK and its deps. So I recommend reviewing cadf25e, the Filebeat input code.

This adds v0.40.0 of the cloud.google.com/go/pubsub SDK along with its dependencies.
@andrewkroh andrewkroh force-pushed the feature/fb/pubsub-input-type branch 2 times, most recently from b9cea98 to fa1471b Compare July 2, 2019 03:21
Add new input type for consuming messages from Google Cloud Pub/Sub topic
subscriptions.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/secops

I think a botched govendor run might have caused this.
Copy link
Contributor

@adriansr adriansr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andrewkroh
Copy link
Member Author

jenkins, test this

1 similar comment
@andrewkroh
Copy link
Member Author

jenkins, test this

@andrewkroh andrewkroh merged commit 82ef39b into elastic:master Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants