
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
fluent-plugin-cwm-http
Advanced tools
Fluentd HTTP input plugin for CloudWebManage Logging Component.
This plugin:
+------------------+
| MinIO |
+------------------+
|
| JSON
| logs
v
+------------------+
| fluentd |
| |
| +--------------+ | +-----------------+
| | http_cwm | | [metrics] | Redis |
| | (input) |-------------------->| Server |
| +--------------+ | +-----------------+
| |
| +--------------+ | +-----------------+
| | s3 | | [raw logs] | S3 |
| | (output) |-------------------->| (log target) |
| +--------------+ | +-----------------+
| |
| +--------------+ | +-----------------+
| |elasticsearch | | [raw logs] | ElasticSearch |
| | (output) |-------------------->| (log target) |
| +--------------+ | +-----------------+
| |
+------------------+
The following metrics are aggregated:
metric | description |
---|---|
bytes_in | size of Request header and its Content-Length |
bytes_out | size of Response header and its Content-Length |
num_requests_in | count of APIs [WebUpload, PutObject, DeleteObject] |
num_requests_out | count of APIs [WebDownload, GetObject] |
num_requests_misc | count of APIs other than in and out |
gem install fluent-plugin-cwm-http
Add the following line to your Gemfile:
gem 'fluent-plugin-cwm-http'
And then execute:
bundle
host
(string) (optional): The address to bind to.
localhost
.port
(integer) (optional): The port to listen to.
8080
.tag
(string) (required): The tag for the event.<redis>
section (optional) (single)host
(string) (optional): The address of Redis server.
localhost
.port
(integer) (optional): The port of Redis server.
6379
.db
(integer) (optional): The db to use.
0
.grace_period
(time) (optional): The grace period for last action update.
300s
.flush_interval
(time) (optional): The flush interval to send metrics.
300s
.last_update_prefix
(string) (optional): The prefix for last update key.
deploymentid:last_action
.metrics_prefix
(string) (optional): The prefix for metrics key.
deploymentid:minio-metrics
.# Endpoint for incoming logs: http://host:port/<tag>
# HTTP Input
<source>
@type http_cwm
@id http_cwm_logs
host localhost
port 8080
tag logs
<redis>
host localhost
port 6379
db 0
grace_period 10s
flush_interval 10s
last_update_prefix deploymentid:last_action
metrics_prefix deploymentid:minio-metrics
</redis>
</source>
# Output e.g. ElasticSearch, S3, etc.
<match logs>
@type elasticsearch
# ...
</match>
The environment variables may also be used for the configuration.
Example:
<source>
@type http_cwm
@id http_cwm_logs
host "#{ENV['HTTP_HOST']}"
port "#{ENV['HTTP_PORT']}"
# ...
</source>
main
branch.main
.bundle exec rake test
.sudo bundle update
.The gem is published via the publish.yml
Workflow on tagging. The tag must be of the format v0.3.0
. This workflow
depends on the successful completion of the ci.yml
workflow and then it looks for the tag. So, make sure that all the CI issues are
resolved before creating a new tag. If there are issues while publishing the gem
i.e. publish workflow doesn't work properly, you can delete and then recreate
the tag to retrigger this workflow.
FAQs
Unknown package
We found that fluent-plugin-cwm-http demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.