docs/index.asciidoc in logstash-input-s3-3.2.0 vs docs/index.asciidoc in logstash-input-s3-3.3.0

- old
+ new

@@ -32,21 +32,25 @@ [cols="<,<,<",options="header",] |======================================================================= |Setting |Input type|Required | <<plugins-{type}s-{plugin}-access_key_id>> |<<string,string>>|No +| <<plugins-{type}s-{plugin}-additional_settings>> |<<hash,hash>>|No | <<plugins-{type}s-{plugin}-aws_credentials_file>> |<<string,string>>|No | <<plugins-{type}s-{plugin}-backup_add_prefix>> |<<string,string>>|No | <<plugins-{type}s-{plugin}-backup_to_bucket>> |<<string,string>>|No | <<plugins-{type}s-{plugin}-backup_to_dir>> |<<string,string>>|No | <<plugins-{type}s-{plugin}-bucket>> |<<string,string>>|Yes | <<plugins-{type}s-{plugin}-delete>> |<<boolean,boolean>>|No +| <<plugins-{type}s-{plugin}-endpoint>> |<<string,string>>|No | <<plugins-{type}s-{plugin}-exclude_pattern>> |<<string,string>>|No | <<plugins-{type}s-{plugin}-interval>> |<<number,number>>|No | <<plugins-{type}s-{plugin}-prefix>> |<<string,string>>|No | <<plugins-{type}s-{plugin}-proxy_uri>> |<<string,string>>|No -| <<plugins-{type}s-{plugin}-region>> |<<string,string>>, one of `["us-east-1", "us-east-2", "us-west-1", "us-west-2", "eu-central-1", "eu-west-1", "eu-west-2", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2", "sa-east-1", "us-gov-west-1", "cn-north-1", "ap-south-1", "ca-central-1"]`|No +| <<plugins-{type}s-{plugin}-region>> |<<string,string>>|No +| <<plugins-{type}s-{plugin}-role_arn>> |<<string,string>>|No +| <<plugins-{type}s-{plugin}-role_session_name>> |<<string,string>>|No | <<plugins-{type}s-{plugin}-secret_access_key>> |<<string,string>>|No | <<plugins-{type}s-{plugin}-session_token>> |<<string,string>>|No | <<plugins-{type}s-{plugin}-sincedb_path>> |<<string,string>>|No | <<plugins-{type}s-{plugin}-temporary_directory>> |<<string,string>>|No |======================================================================= @@ -129,18 +133,50 @@ * Value type is <<boolean,boolean>> * Default value is `false` Whether to delete processed files from the original bucket. +[id="plugins-{type}s-{plugin}-endpoint"] +===== `endpoint` + + * Value type is <<string,string>> + * There is no default value for this setting. + +The endpoint to connect to. By default it is constructed using the value of `region`. +This is useful when connecting to S3 compatible services, but beware that these aren't +guaranteed to work correctly with the AWS SDK. + [id="plugins-{type}s-{plugin}-exclude_pattern"] ===== `exclude_pattern` * Value type is <<string,string>> * Default value is `nil` Ruby style regexp of keys to exclude from the bucket +[id="plugins-{type}s-{plugin}-additional_settings"] +===== `additional_settings` + + * Value type is <<hash,hash>> + * Default value is `{}` + +Key-value pairs of settings and corresponding values used to parametrize +the connection to s3. See full list in https://docs.aws.amazon.com/sdkforruby/api/Aws/S3/Client.html[the AWS SDK documentation]. Example: + +[source,ruby] + input { + s3 { + "access_key_id" => "1234", + "secret_access_key" => "secret", + "bucket" => "logstash-test", + "additional_settings" => { + "force_path_style => true, + "follow_redirects" => false + } + } + } + [id="plugins-{type}s-{plugin}-interval"] ===== `interval` * Value type is <<number,number>> * Default value is `60` @@ -165,15 +201,33 @@ URI to proxy server if required [id="plugins-{type}s-{plugin}-region"] ===== `region` - * Value can be any of: `us-east-1`, `us-east-2`, `us-west-1`, `us-west-2`, `eu-central-1`, `eu-west-1`, `eu-west-2`, `ap-southeast-1`, `ap-southeast-2`, `ap-northeast-1`, `ap-northeast-2`, `sa-east-1`, `us-gov-west-1`, `cn-north-1`, `ap-south-1`, `ca-central-1` + * Value type is <<string,string>> * Default value is `"us-east-1"` The AWS Region +[id="plugins-{type}s-{plugin}-role_arn"] +===== `role_arn` + + * Value type is <<string,string>> + * There is no default value for this setting. + +The AWS IAM Role to assume, if any. +This is used to generate temporary credentials, typically for cross-account access. +See the https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html[AssumeRole API documentation] for more information. + +[id="plugins-{type}s-{plugin}-role_session_name"] +===== `role_session_name` + + * Value type is <<string,string>> + * Default value is `"logstash"` + +Session name to use when assuming an IAM role. + [id="plugins-{type}s-{plugin}-secret_access_key"] ===== `secret_access_key` * Value type is <<string,string>> * There is no default value for this setting. @@ -205,10 +259,9 @@ * Value type is <<string,string>> * Default value is `"/tmp/logstash"` Set the directory where logstash will store the tmp files before processing them. -default to the current OS temporary directory in linux /tmp/logstash [id="plugins-{type}s-{plugin}-common-options"] include::{include_path}/{type}.asciidoc[]