docs/index.asciidoc in logstash-input-google_pubsub-1.1.0 vs docs/index.asciidoc in logstash-input-google_pubsub-1.2.0
- old
+ new
@@ -131,10 +131,15 @@
# Application Default Credentials and use GCE's metadata
# service to fetch tokens. However, if you are running logstash
# outside of GCE, you will need to specify the service account's
# JSON key file below.
#json_key_file => "/home/erjohnso/pkey.json"
+
+ # Should the plugin attempt to create the subscription on startup?
+ # This is not recommended for security reasons but may be useful in
+ # some cases.
+ #create_subscription => false
}
}
output { stdout { codec => rubydebug } }
----------------------------------
@@ -183,10 +188,11 @@
| <<plugins-{type}s-{plugin}-max_messages>> |<<number,number>>|Yes
| <<plugins-{type}s-{plugin}-project_id>> |<<string,string>>|Yes
| <<plugins-{type}s-{plugin}-subscription>> |<<string,string>>|Yes
| <<plugins-{type}s-{plugin}-topic>> |<<string,string>>|Yes
| <<plugins-{type}s-{plugin}-include_metadata>> |<<boolean,boolean>>|No
+| <<plugins-{type}s-{plugin}-create_subscription>> |<<boolean,boolean>>|No
|=======================================================================
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
input plugins.
@@ -247,9 +253,21 @@
* Value type is <<boolean,boolean>>
* Default value is `false`.
If set true, will include the full message data in the `[@metadata][pubsub_message]` field.
+
+[id="plugins-{type}s-{plugin}-create_subscription"]
+===== `create_subscription`
+
+added[1.2.0]
+
+ * Value type is <<boolean,boolean>>
+ * Default value is `false`.
+
+If true, the plugin will try to create the subscription before publishing.
+Note: this requires additional permissions to be granted to the client and is _not_
+recommended for most use-cases.
[id="plugins-{type}s-{plugin}-common-options"]
include::{include_path}/{type}.asciidoc[]
:default_codec!: