
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.