Skip to main content
Version: Next

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 operator 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.

URI support & integration with from

The save_google_cloud_pubsub operator can also be used from the to operator. For this, the gcps:// scheme can be used. The URI is then translated:

to "gcps://my_project/my_topic"
save_google_cloud_pubsub project_id="my_project", topic_id="my_topic"

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"

See Also

load_google_cloud_pubsub