pubsuboutput

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

README

pubsub output plugin for filebeat

This repo provides an output plugin for filebeat that publishes messages to GCP PubSub

Usage

Add the following to your filebeat configuration

output.pubsub:
  project_id: my-gcp-project-name
  topic: my-pubsub-topic-name

Configuration options:

  • project_id: Google Cloud project ID. Required.
  • topic: Google Cloud Pub/Sub topic name. Required.
  • credentials_file: Path to a JSON file containing the credentials and key used to subscribe. As an alternative you can use the credentials_json config option or rely on Google Application Default Credentials.
  • credentials_json: JSON blob containing the credentials and key used to subscribe. This can be as an alternative to credentials_file if you want to embed the credential data within your config file or put the information into a keystore. You may also use Google Application Default Credentials.

Events are published in gzip compressed json lines format.

Acknowledgements

Loosely based on https://bionic.fullstory.com/writing-a-filebeat-output-plugin/

LICENSE

See LICENSE

Documentation

Overview

Package pubsuboutput provides a GCP PubSub output for filebeat

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL