This input plugin enables Logstash to receive events from the QingCloud QingStor service.
The following example shows how to configure Logstash with a minimal configuration options to fetch files from QingStor and to output into a stdout:
input {
qingstor {
access_key_id => 'your_access_key_id' #required
secret_access_key => 'your_secret_access_key' #required
bucket => 'bucket_name' #required
}
}
output {
stdout { codec => rubydebug }
}
This plugin supports the following configuration options plus the [plugins-inputs-common-options] described later.
Setting | Input type | Required |
---|---|---|
Yes |
||
Yes |
||
No |
||
No |
||
Yes |
||
No |
||
No |
||
No |
||
No |
||
string: a valid filesystem path |
No |
|
No |
||
No |
||
No |
||
string: a valid filesystem path |
No |
|
No |
Also see [plugins-inputs-common-options] for a list of options supported by all input plugins.
-
This is a required setting.
-
Value type is string
-
There is no default value for this setting.
The key id to access your QingStor.
-
This is a required setting.
-
Value type is string
-
There is no default value for this setting.
The key to access your QingStor.
-
Value type is string
-
Default value is
nil
The QingStor service IP address if you want to redirect.
-
Value type is number
-
Default value is
443
.
The QingStor service IP address port which coordinate with host
.
-
This is a required setting.
-
Value type is string
-
There is no default value for this setting.
The name of the qingstor bucket.
-
Value type is string
-
There is no default value for this setting.
The region of the qingstor bucket.
-
Value type is string
-
Default value is
/tmp/qingstor2logstash
in Linux System.
Set the directory where logstash store the tmp files before sending it to logstash, default directory in linux is /tmp/qingstor2logstash.
-
Value type is boolean
-
Default value is
false
Whether delete remote files after downloading to the local disks.
-
Value type is path
-
Default value is
nil
If this set to a valid path, the file will be backup under a local path.
Please make sure you can access to this dir.
-
Value type is path
-
Default value is
nil
The sincedb path to record the last download time.
This path will be generate automatically when running if no specified.
-
Value type is number
-
Default value is
10
Set how frequently messages should be sent.
The default, 10
, means send a message every 10 seconds.