New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

access-watch-express-logger

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

access-watch-express-logger

Express.js middleware to log HTTP requests to Access Watch.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Access Watch Express Logger

An Express.js middleware to log HTTP requests to Access Watch.

Install

npm install --save access-watch-express-logger

Usage

Using the Syslog protocol

On Access Watch side, make sure you have a Syslog input that parse logs in the JSON standard format.

Then:

const express = require('express')
const accessWatchExpressLogger = require('access-watch-express-logger')

const app = express()

app.use(accessWatchExpressLogger('syslog', '0.0.0.0', 1516)

Using the HTTP protocol

On Access Watch side, make sure you have an HTTP input that parse logs in the JSON standard format.

Then:

const express = require('express')
const accessWatchExpressLogger = require('access-watch-express-logger')

const app = express()

app.use(accessWatchExpressLogger('http', 'http://0.0.0.0:3000/input/log'))

Using the WebSocket protocol

On Access Watch side, make sure you have a WebSocket input that parse logs in the JSON standard format.

const express = require('express')
const accessWatchExpressLogger = require('access-watch-express-logger')

const app = express()

app.use(accessWatchExpressLogger('websocket', 'ws://0.0.0.0:3000/input/log'))

License

MIT

FAQs

Package last updated on 24 Nov 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc