
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-eval-filter
Advanced tools
Add this line to your application's Gemfile:
gem 'fluent-plugin-eval-filter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fluent-plugin-eval-filter
<match raw.apache.access>
type eval_filter
remove_tag_prefix raw
add_tag_prefix filtered
config1 @hostname = `hostname -s`.chomp
filter1 [[tag, @hostname].join('.'), time, record] if record['method'] == 'GET'
</match>
<match raw.apache.access>
type eval_filter
remove_tag_prefix raw
add_tag_prefix filtered
requires yaml # comma separated values
config1 @hostname = YAML.load({'hostname' => 'web01'})['hostname']
filter1 [[tag, @hostname].join('.'), time, record] if record['method'] == 'GET'
</match>
Note that this filter version does not have rewrite tag functionality. Should return [time, record].
<filter **>
type eval
filter1 "[time, record] if record['status'] == '404'"
filter2 "[time, record] if record['status'] == 'POST'"
</filter>
<filter **>
type eval
filter1 "record['status'] = record['status'].to_i; [time, record]"
</filter>
<filter **>
type eval
filter1 "record['user_id'] = record['message'].split(':').last.to_i; [time, record]"
</filter>
{'status' => '301', 'message' => 'user_id:1'}
{'status' => '302', 'message' => 'user_id:2'}
{'status' => '404', 'message' => 'user_id:3'}
{'status' => '503', 'message' => 'user_id:4'}
{'status' => '401', 'message' => 'user_id:5'}
{'status' => '301', 'message' => 'user_id:1', 'user_id' => 1}
{'status' => '302', 'message' => 'user_id:2', 'user_id' => 2}
{'status' => '404', 'message' => 'user_id:3', 'user_id' => 3}
{'status' => '503', 'message' => 'user_id:4', 'user_id' => 4}
{'status' => '401', 'message' => 'user_id:5', 'user_id' => 5}
Can not be used expression substitution.
<match raw.apache.access>
filter1 "#{tag}"
</match>
'#' Is interpreted as the beginning of a comment.
filter1 #=> "\""
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that fluent-plugin-eval-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.