English | 中文
As an output plugin, it can collect the outputs from logstash, and store them in QingStor, which is a remarkable object storage service provided by QingCloud.
Current logstash release(5.5.x) has compatibility issues with this plugin, some unknown errors may cause the uploading failing. Please use the previous releases of logstash, such as version 5.4.3.
For now, We've submitted this plugin to rubygems.org. Use the following command to install.
$ bin/logstash-plugin install logstash-output-qingstor
If you have installed a previous release, please use the folliwing command to update.
$ bin/logstash-plugin update logstash-output-qingstor
If want to install the local code, please refer to the following guide to install it manually.
output {
qingstor {
access_key_id => 'your_access_key_id' #required
secret_access_key => 'your_secret_access_key' #required
bucket => 'bucket_name' #required
# region => "pek3a" #optional, default value "pek3a"
}
}
More configuration details please refer to common options.
- Edit Logstash
Gemfile
and add the local plugin path, for example:
$ gem "logstash-output-qingstor", :path => "/your/local/logstash-output-qingstor"
- Install plugin
$ bin/logstash-plugin install --no-verify
- Run Logstash with your plugin
$ bin/logstash -e "output { \
qingstor { \
access_key_id => 'your_access_key_id' \
secret_access_key => 'your_secret_access_key' \
bucket => 'bucket_name' \
} \
}"
At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
You can use the same 2.1 method to run your plugin in an installed Logstash by editing its Gemfile
and pointing the :path
to your local plugin development directory or you can build the gem and install it using:
- Build your plugin gem
$ gem build logstash-output-qingstor.gemspec
- Install the plugin from the Logstash home
$ bin/logstash-plugin install /your/local/plugin/logstash-output-qingstor.gem
- Start Logstash and proceed to test the plugin
Please see Contributing Guidelines of this project before submitting patches.
The Apache License (Version 2.0, January 2004).