chiehwen / pylogstash Goto Github PK
View Code? Open in Web Editor NEWThis project forked from turtlebender/pylogstash
Logging handler to push into logstash via zmq
This project forked from turtlebender/pylogstash
Logging handler to push into logstash via zmq
This is a simple Python log handler which ships logs to a logstash node via zeromq. In order fo this to work, you must have a logstash node for zeromq messages. This sends parsed messages in json form. To specify fields to be added to the event, set the field list in the handler initializer. Each of these fields from the LogRecord will be included in the @fields section of the event. to configure: handler = LogstashHandler(connect_strings=['tcp://127.0.0.1:2120'], fields=["thread"]) This will configure the handler to publish to 127.0.0.1 port 2120. Multiple hosts can be specified. Every field listed in the fields parameter will be added to the @fields dictionary. This should eliminate the need for grokking these entries in the logstash process (unless the log message itself needs to be grokked). These fields must be present in the LogRecord. The timestamp field is set via datetime.datetime.isoformat(). A fair amount of this code either came from or was inspired by: https://github.com/mozilla-services/metlog-py. A major goal was to split this out from the metlog framework
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.