GithubHelp home page GithubHelp logo

geek / good-broadcast Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nvcexploder/good-broadcast

0.0 3.0 0.0 225 KB

Broadcast to subscribers with an external process that were logged with Good

License: Other

good-broadcast's Introduction

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

broadcast can be pass either a configuration file or traditional command line arguments. A configuration file will trump any command line arguments.

Config File

A broadcast.json may look like:

{
    "url": "http://analytics.mysite.com",
    "path": "/fullpath/request_services.log",
    "interval": 1000,
    "useLastIndex": false,
    "onlySendNew": true,
    "resume": false
}

Command Line

good-broadcast supports the following command line options

  • -u,--url - full URL to the external server to transmit good logs.
  • l, --path - location of a good log file.
  • i, --interval - sampling frequency of the log file.
  • n, --onlySendNew - sets the "start reading" index to the end of the file when the command is started. Then only new events will be transmitted.
  • r, --resume - during log file processing a ".lastindex" file is created to keep track of the previous transmission. If the process is restarted, transmission will resume from the location indicated in the ".lastIndex" file. -r trumps -n and should not be used together.

good-broadcast's People

Contributors

arb avatar geek avatar lloydbenson avatar nvcexploder avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.