rb-secor is an extension of secor service, which you can find in this repo: https://github.com/pinterest/secor
- Rocky Linux 9.5
rb-secor provides two additional features in two new classes:
-
Support for classify messages in diferent folder depending of namespace (using namespace field in json messages).
-
Support for upload files to s3 using jets3t library. It is useful because allows secor to send data to AWS S3 and to other S3 services implementation like Riak CS.
It is autoinstalled by redborder-manager, but can also be installed manually:
dnf install rb-secor
To use this extension you have to add rb-secor classes to classpath when you launch the secor service and configure the following.
To use first feature, you have to configure secor.message.parser.class to use class com.redborder.secor.parser.MessageRbParser:
secor.message.parser.class=com.redborder.secor.parser.MessageRbParser
To use second feature, you have to configure secor.upload.manager.class to use class com.redborder.secor.uploader.JetS3tUploadManager:
secor.upload.manager.class=com.redborder.secor.uploader.JetS3tUploadManager
In addition you have to configure jets3t.properties, whose configuration file is like this:
s3service.s3-endpoint=s3.redborder.cluster
s3service.https-only=false
s3service.s3-endpoint-http-port=8088
s3service.disable-dns-buckets=true
- Fork the repository on Github
- Create a named feature branch (like add_component_x)
- Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github