Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

good-broadcast

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

good-broadcast

broadcasting functions for good

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
3
Created
Source

good Logo

Build Status

Lead Maintainer: Lloyd Benson

broadcasting logs

good-broadcast includes a 'broadcast' script that is capable of broadcasting a log file externally via a POST request to the designated server. Below is the command to use to execute 'broadcast':

broadcast -c broadcast.json

Config File

A broadcast.json may look like:

{
    "url": "http://analytics.mysite.com",
    "interval": 1000,
    "log": "/fullpath/request_services.log",
    "newOnly": true,
    "resumePath": "/fullpath/temp/logindex.tmp",
    "wait": 1000,
    "attempts": 1,
    "maxEvents": 32,
    "maxSize": 65535
}

Configuration Object

  • url - (required) The complete URL to POST log information.
  • interval - The frequency to check the log file for changes. Defaults to 1000.
  • log - (required) Path to the log file.
  • newOnly - Only send new log entries. Defaults to false.
  • resumePath - Maintain a file to keep track of previous reads and start from that index on restarts or failures.
  • wait - Number of milliseconds to wait before trying a failed broadcast again. Defaults to 1000.
  • attempts - Number attempts to make before giving up on the current payload. Defaults to 1.
  • maxEvents - Maximum events per payload. Default to 32.
  • maxSize - Maximum payload size in bytes. Default to 65535.

Killing Process

Sending issuing kill -SIGUSR2 PID, where PID is the running broadcast script. You can get the PID with the following linux command ps auxww | grep node.

Keywords

process

FAQs

Package last updated on 14 Mar 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