
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
fluent-plugin-script-filter
Advanced tools
Fluent filter plugin to external ruby script.
gem install fluent-plugin-filter-script
<filter foo.bar.*>
type script
path /etc/fluentd/example.rb
</filter>
def start
super
# This is the first method to be called when it starts running
# Use it to allocate resources, etc.
end
def shutdown
super
# This method is called when Fluentd is shutting down.
# Use it to free up resources, etc.
end
def filter(tag, time, record)
# This method implements the filtering logic for individual filters
record
end
ref. http://docs.fluentd.org/articles/plugin-development#filter-plugins
def filter(tag, time, record)
case tag
when /.+\.code$/
code(record)
when /.+\.msg$/
message(record)
end
end
def code(record)
if record.has_key?("key1")
record["code"] = record["key1"].to_i
record.delete("key1")
end
record
end
def message(record)
case record["key2"].to_i
when 100..200
level = "INFO"
when 201..300
level = "WARN"
else
level = "ERROR"
end
record.delete("key2")
record["message"] = level + ":" + record["key3"]
record.delete("key3")
record
end
foo.bar.code: {"key1": "200"}
foo.bar.code: {"code":200}
foo.bar.msg: {"key2":280,"key3":"Something happend."}
foo.bar.msg: {"message":"WARN:Something happend."}
FAQs
Unknown package
We found that fluent-plugin-script-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
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.