Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Ginx is a fast Nginx log parser written in Javascript; It can persist cursors of each file, to continue where it left off in case of a shutdown, unexpected exception or Ctrl+D, all that with the option of parsing a directory of files instead of one file.
var Ginx = require("ginx");
var ginx = new Ginx();
//example read from file
ginx.parseFile("nginx_prod.log",
function(err, row){
if (err) throw err;
console.log("this will print each parsed line:" + JSON.stringify(row));
},
function(err, file){
if (err) throw err;
console.log(file + " parsing complete");
}
);
##Ginx(format, options={})##
Construct a 'new Ginx();
##ginx.parseLine(line, rowCallback, options={})##
Parse one line string
##ginx.parseFile(path, rowCallback, fileCallback, options={})##
Parse a file
##ginx.parseDir(directory, rowCallback, fileCallback, dirCallback)##
Parse all files in the first level of a directory (they have to all have the same format)
##ginx.pause([readFile], [callback])##
Pauses all ReadStreams in Ginx Memory, or a single file's stream if passed.
##ginx.resume([readFile], [callback])##
Resumes all ReadStreams in Ginx Memory, or a single file's stream if passed.
##ginx.stop([callback])##
Stops all ReadStreams in Ginx Memory, then persists all cursors in memory
npm install ginx
or manually git clone https://github.com/akhoury/ginx.git # cp the ginx dir into your program's node_modules npm install # to install dependencies
you can 'node demo.js' to try it out quick, but please open demo.js and read the comments quickly.
##TODO##
FAQs
A Nginx log parser for node.js written in Javascript.
The npm package ginx receives a total of 0 weekly downloads. As such, ginx popularity was classified as not popular.
We found that ginx 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.