Skip to main content
Version: Next

save_google_cloud_pubsub

Publishes to a Google Cloud Pub/Sub topic.

save_google_cloud_pubsub project_id=str, topic_id=str
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 = str

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

topic_id = str

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"