Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
fluent-plugin-parse_cookie
Advanced tools
Fluentd plugin to parse cookie log.
Add this line to your application's Gemfile:
gem 'fluent-plugin-parse_cookie'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fluent-plugin-parse_cookie
fluent-plugin-parse_cookie | Fluentd | Ruby |
---|---|---|
>= 2.0.0 | >= v0.14.0 | >= 2.1 |
< 2.0.0 | >= v0.12.0 | >= 1.9 |
default usage
<match foo.**>
type parse_cookie
key cookie
</match>
input
"test" {
"cookie": "foo=baz; empty=; array=123; array=abc; array=1a2b"
}
output
"parsed_cookie.test" {
"cookie": "foo=baz; empty=; array=123; array=abc; array=1a2b"
"foo": ["baz"],
"empty": [],
"array": ["123", "abc", "1a2b"]
}
change tag prefix (default tag prefix is "parsed_cookie.")
<match foo.**>
type parse_cookie
key cookie
tag_prefix changed.
</match>
input
"test" {
"cookie": "foo=baz; empty=; array=123; array=abc; array=1a2b"
}
output
"changed.test" {
"cookie": "foo=baz; empty=; array=123; array=abc; array=1a2b"
"foo": ["baz"],
"empty": [],
"array": ["123", "abc", "1a2b"]
}
If you want to remove empty array.
<match foo.**>
type parse_cookie
key cookie
remove_empty_array true
</match>
input
"test" {
"cookie": "foo=baz; empty=; array=123; array=abc; array=1a2b"
}
output
"parsed_cookie.test" {
"cookie": "foo=baz; empty=; array=123; array=abc; array=1a2b"
"foo": ["baz"],
"array": ["123", "abc", "1a2b"]
}
If you want convert array that has only single object to string.
<match foo.**>
type parse_cookie
key cookie
single_value_to_string true
</match>
input
"test" {
"cookie": "foo=baz; empty=; array=123; array=abc; array=1a2b"
}
output
"parsed_cookie.test" {
"cookie": "foo=baz; empty=; array=123; array=abc; array=1a2b"
"foo": "baz",
"empty": [],
"array": ["123", "abc", "1a2b"]
}
If you want remove cookie from record.
<match foo.**>
type parse_cookie
key cookie
remove_cookie true
</match>
input
"test" {
"cookie": "foo=baz; empty=; array=123; array=abc; array=1a2b"
}
output
"parsed_cookie.test" {
"foo": ["baz"],
"empty": [],
"array": ["123", "abc", "1a2b"]
}
If you want create key with parsed data.
<match foo.**>
type parse_cookie
key cookie
sub_key cookie_parsed
</match>
input
"test" {
"cookie": "foo=baz; empty=; array=123; array=abc; array=1a2b"
}
output
"parsed_cookie.test" {
"cookie": "foo=baz; empty=; array=123; array=abc; array=1a2b",
"cookie_parsed": {
"foo": ["baz"],
"empty": [],
"array": ["123", "abc", "1a2b"]
}
}
key is used to point a key thad is cookie.
Added tag prefix. Default value is "parsed."
You want to remove empty array. You must be this option setting true. Default value is false.
You want to convert array that has only single object to string. You must be this option setting true. Default value is false.
You want to remove cookie. You must be this option setting true. Default value is false.
You want to put parsed data into separate key. Default value is false.
See CHANGELOG.md for details.
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-parse_cookie 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.