A Graylog's Google Cloud Pub/Sub plugin allows you to pull logs from Google Cloud Stackdriver Logging via Cloud Pub/Sub service.
Currently, this plugin supports only subscription delivery type Pull. To setup the log exporting on Google Cloud Stackdriver, do the following steps
- Goto Cloud Pub/Sub menu.
- Create a new topic.
- Create a new subscription and choose delivery type Pull
More detail https://cloud.google.com/logging/docs/export/
- Goto System -> Input menu.
- Choose a *Google Cloud Pub/Sub Pull" from drop-down menu and click Launch new Input
- Enter Project ID, Subscription Name and Credential file location e.g.
/etc/graylog/google-credential.json
. The credential file must be located on every Graylog's nodes at the same location. The service account for this credential requiresPub/Sub Subscriber
Role.