
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
**注意:**Travis-ci 的执行 path 好奇怪,大家用拉下来执行 `npm test` 吧
import JSON to mongodb, associate with sofish/log2json to manage nginx logs.
$ npm install log2mongo -g
It's a command line tool and should install with the -g
flag.
$ log2mongo config.js
The config.js
should be a node module like this:
module.exports = {
"db": "db-name",
"host": "127.0.0.1:27017",
"collection": "collection", // {function|string} collection to insert, or a function returns a string
"dir": "dir/contains/logs", // where to find logs
"skip": skip(filename) // {function} [optional] a function return Boolean, when True, file ignored
"separator": "•-•", // separator of your (nginx/apache/whatever) log fields
"map": [], // map with log fields that create by `split(separator)`
"username": "sofish", // [optional] db username
"password": "***" // [optional] db password
}
Simply run npm test
to see what happens.
FAQs
automatic log transform and import to mongodb
We found that log2mongo 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.