GCP PubSub Sink
The Vector gcp_pubsub sink batches log events to Google Cloud Platform's Pubsub service via the REST Interface.
Configuration
- Common
- Advanced
[sinks.my_sink_id]type = "gcp_pubsub" # example, must be: "gcp_pubsub"inputs = ["my-source-id"] # exampleproject = "vector-123456" # exampletopic = "this-is-a-topic" # example
Options
api_key
A Google Cloud API key used to authenticate access the pubsub project and topic. Either this or credentials_path must be set.
batch_size
The maximum size of a batch before it is flushed.
10485760batch_timeout
The maximum age of a batch before it is flushed.
1buffer
Configures the sink specific buffer.
max_size
The maximum size of the buffer on the disk.
type
The buffer's type / location. disk buffers are persistent and will be retained between restarts.
"memory""memory" "disk" when_full
The behavior when the buffer becomes full.
"block""block" "drop_newest" credentials_path
The filename for a Google Cloud service account credentials JSON file used to authenticate access to the pubsub project and topic. Either this or api_key must be set.
healthcheck
Enables/disables the sink healthcheck upon start.
trueproject
The project name to which to publish logs.
request_in_flight_limit
The maximum number of in-flight requests allowed at any given time.
5request_rate_limit_duration_secs
The window used for the request_rate_limit_num option
1request_rate_limit_num
The maximum number of requests allowed within the request_rate_limit_duration_secs window.
100request_retry_attempts
The maximum number of retries to make for failed requests.
9223372036854776000request_retry_backoff_secs
The amount of time to wait before attempting a failed request again.
1request_timeout_secs
The maximum time a request can take before being aborted. It is highly recommended that you do not lower value below the service's internal timeout, as this could create orphaned requests, pile on retries, and result in deuplicate data downstream.
60tls
Configures the TLS options for connections from this sink.
ca_path
Absolute path to an additional CA certificate file, in DER or PEM format (X.509).
crt_path
Absolute path to a certificate file used to identify this connection, in DER or PEM format (X.509) or PKCS#12. If this is set and is not a PKCS#12 archive, key_path must also be set.
key_pass
Pass phrase used to unlock the encrypted key file. This has no effect unless key_pass above is set.
key_path
Absolute path to a certificate key file used to identify this connection, in DER or PEM format (PKCS#8). If this is set, crt_path must also be set.
verify_certificate
If true (the default), Vector will validate the TLS certificate of the remote host. Do NOT set this to false unless you understand the risks of not verifying the remote certificate.
trueverify_hostname
If true (the default), Vector will validate the configured remote host name against the remote host's TLS certificate. Do NOT set this to false unless you understand the risks of not verifying the remote hostname.
truetopic
The topic within the project to which to publish logs.