
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
fluent-plugin-sampling-filter
Advanced tools
This is a Fluentd plugin to sample matching messages to analyse and report messages behavior and emit sampled messages with modified tag.
fluent-plugin-sampling-filter | fluentd | ruby |
---|---|---|
>= 1.0.0 | >= v0.14.0 | >= 2.1 |
< 1.0.0 | < v0.14.0 | >= 1.9 |
This filter passes a specified part of whole events to following filter/output plugins:
<source>
@type any_great_input
@label @mydata
</source>
<label @mydata>
<filter **>
@type sampling
sample_unit all
interval 10 # pass 1/10 events to following plugins
</filter>
<match **>
@type ...
</match>
</label>
Sampling is done for all events, but we can do it per matched tags:
<source>
@type any_great_input
@label @mydata
</source>
<label @mydata>
<filter **>
@type sampling
interval 10
sample_unit tag # 1/10 events for each tags
</filter>
<match **>
@type ...
</match>
</label>
We can also sample based on a value in the message
<source>
@type any_great_input
@label @mydata
</source>
<label @mydata>
<filter **>
@type sampling
interval 10
# pass 1/10 events per user given events like: { user: { name: "Bob" }, ... }
sample_unit $.user.name
</filter>
<match **>
@type ...
</match>
</label>
minimum_rate_per_min
option(integer) configures this plugin to pass events with the specified rate even how small is the total number of whole events.
sample_unit
option(string) configures this plugin to sample data based on tag(default), 'all', or by field value
using the record accessor syntax.
NOTE: This plugin is deprecated. Use filter plugin instead.
Pickup 1/10 messages about each tags(default: sample_unit tag
), and add tag prefix sampled
.
<match **>
@type sampling_filter
interval 10
add_prefix sampled
</match>
<match sampled.**>
# output configurations where to send sampled messages
</match>
Pickup 1/100 messages of all matched messages, and modify tags from input.**
to output.**
<match input.**>
@type sampling_filter
interval 100
sample_unit all
remove_prefix input
add_prefix output
</match>
<match sampled.**>
# output configurations where to send sampled messages
</match>
FAQs
Unknown package
We found that fluent-plugin-sampling-filter 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.