lsjostro / flumelogger Goto Github PK
View Code? Open in Web Editor NEWPython log handler for sending log events to flume
Python log handler for sending log events to flume
It seems that you are using "eval" to parse json here
https://github.com/lsjostro/flumelogger/blob/master/flumelogger/handler.py#L55-L59
This is a security risk, potentially user inputted data can be logged. Its possible that code could be injected here. Also there is no reason not use the json library. I would be happy to create a pull request if anyone wanted.
It's a bad one and I have a fix waiting for it when #16 is merged.
Using version 0.4.1:
Traceback (most recent call last):
3/14/2016 1:44:33 PM File "/usr/lib/python2.7/site-packages/flumelogger/handler.py", line 102, in emit_one
3/14/2016 1:44:33 PM self.eventserver.append(tevent, client)
3/14/2016 1:44:33 PM File "/usr/lib/python2.7/site-packages/flumelogger/eventserver.py", line 170, in append
3/14/2016 1:44:33 PM raise OperationFailure(e)
3/14/2016 1:44:33 PM OperationFailure: object of type 'NoneType' has no len()
Maybe this has been addressed since the 0.4.1 release?
I'm looking into it, see if I can spot what it can be...
Hi,
I'm not sure if I've misconfigured something.. but I'm having issues getting my logs through at a comfortable speed.
Looking at the code, I see that each individual log record triggers a new connect/disconnect operation. I would expect performance to improve radically if the log records where to be sent in some sort of batch mode..
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.