Giter Site home page Giter Site logo

logfs-c-prototype's Introduction

built to capture everything send to 'logserv' via zmq. Needs an 'upstream' zmq connections which it writes to.

example usage:
-------------'

	mkdir -p /tmp/logs
	./logserv /tmp/logs/
	UPSTREAM="tcp://127.0.0.1:1010" PREFIX="localhost" ./logfs -o intr -o nonempty -o allow_other /var/log
	pkill -HUP -f syslog


testing logserv:
---------------'

./test-logserv


building:
--------'

make


running "in production":
-----------------------'

UPSTREAM=tcp://localhost:1010 ./logfs -o allow_other -o nonempty -o auto_unmount -o intr /tmp/logfs


environment variables:
---------------------'

UPSTREAM=

	specifies the 'upstream zmq connection' which logs are sent to

	example: UPSTREAM="tcp://IP_OF_LOGSERV:1010"

PREFIX=

	specifies the prefix to use for each log message. This can be a host identifier etc.

	example: PREFIX="local-web"



concept:
-------'

	creates a mapping in which you can intercept everything written to /var/log (or some other directory you specify). None of the writes will persist to disk. Instead, they will quickly pass to an upstream zmq connection. If 'logserv' goes down, 1000 messages will be queued up. After 1000 are reached, messages are dropped. Once the zmq connection is re-established, all queue'd messages will be sent to logserv.

logfs-c-prototype's People

Contributors

adarqui 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.