
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
fluent-mixin-elapsed_time
Advanced tools
Fluentd mixin to measure elapsed time to process messages
Use RubyGems:
gem install fluent-mixin-elapsed_time
Run Fluentd with -r option to require this gem. This will automatically extends all input and output plugins (actually, Input and Output base class).
fluentd -c fluent.conf -r 'fluent/mixin/elapsed_time'
This mixin module extends arbitrary plugins so that it can use <elapsed></elapsed> directive to measure elapsed times.
Example:
<source>
type forward
port 24224
<elapsed>
tag elapsed
interval 60
hook on_message
</elapsed>
</source>
<match elapsed>
type stdout
</match>
This example hooks the on_message method of in_forward plugin, and measures how long it takes for processing.
And, this plugin emits the statistics of measured elapsed times in each specified interval like below:
elapsed: {"max":1.011,"avg":0.002","num":10}
where max and avg are the maximum and average elapsed times, and num is the number of being called in each interval.
interval
The time interval to emit measurement results. Default is 60.
tag
The output tag name. Default is elapsed
hook (required)
Specify the method to hook. You can also explicitly specify the class name like Fluent::ForwardOutput.on_message.
(EXCUSE: Fluentd treats strings after # as a comment, so the form like Fluent::ForwardInput#on_message could not be used)
See CHANGELOG.md for details.
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)Copyright (c) 2014 Naotoshi Seo. See LICENSE for details.
FAQs
Unknown package
We found that fluent-mixin-elapsed_time 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 discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.