Skip to main content
Version: v4.24

save_google_cloud_pubsub

Publishes to a Google Cloud Pub/Sub topic.

save_google_cloud_pubsub project_id=string, topic_id=string
Authentication

The connector tries to retrieve the appropriate credentials using Google's Application Default Credentials.

Description

The google_cloud_pubsub saver publishes bytes to a Google Cloud Pub/Sub topic.

project_id = string

The project to connect to. Note that this is the project_id, not the display name.

topic_id = string

The topic to publish to.

Examples

Publish alerts to a given topic

Publish suricata.alert events as JSON to alerts-topic:

export
where @name = "suricata.alert"
write_json
save_google_cloud_pubsub project_id="amazing-project-123456", topic_id="alerts-topic"