Git Product home page Git Product logo

log-watchr's Introduction

log-watchr

log-watchr is a simple socket.io server that accepts post requests, saves inbound messages to a mongo DB instance, and emits the message out to other socket-io sockets. Messages are received from a script that monitors a log file and transmits each line written to the server.

Dependencies

The log-watchr server is written in Node and has dependencies on the following node modules

See links for full installation instructions

Usage

Server

Once the prerequisites are installed, the server can be starte like any other node module:

node log-watchr

If you are using the awesome forever module:

forever start log-watchr.js

Monitors

Because is was constructed to monitor Windows logs, where the avaialble natives options are very limited, Windows Powershell is used to monitor a given log file.

Note: For ease of use, the URL for the server is contained within log-watchr.ps1 located int he /public folder. You will want to change this value.

To start monitoring a file, from the powershell, assuming we are already in the directory containing log-watchr.ps1:

.\log-watchr.ps1 [path\to\file\to\watch] [name]

If you have not yet set your execution policy, you may get an error indicating that scripts are not allowed. If so, make sure you are running powershell as an administrator and use:

Set-ExecutionPolicy RemoteSigned

log-watchr's People

Contributors

trimeego avatar

Stargazers

 avatar

Watchers

 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.