pygelf icon indicating copy to clipboard operation
pygelf copied to clipboard

GelfKafkaHandler

Open cejus opened this issue 7 years ago • 2 comments

Hi guys,

what I needed is the feature that logs created in my pyhton code (e.g. "logger.info("whatever")") are converted into the GELF format and then sent via a Kafka bus to graylog (Gelf Kafka Input). I found this module here and it provided nearly exactly what I needed - except the "GelfKafkaHandler".

I was thinking of a additional Handler and were glad to see that such an additional handler was very easy to implement. I wrote some additional lines of code and tested it on a local setup - it works !

So now - please let me know what you are thinking! Is this a sensible feature?

Looking forward to get your feedback.

cejus avatar Jan 09 '19 09:01 cejus

Hey @cejus!

Sounds pretty good. If you have a working solution for this, could you please prepare a PR? I'm sure this functionality would be useful for other people out there.

Thank you!

keeprocking avatar Jan 10 '19 09:01 keeprocking

Hey @keeprocking,

sorry for my late response! I was very busy the last days. Created the PR #36.

What is still to do at first is an enhancement of your testing infrastructure to test the additional feature. I tested it on my local machine but I think such an enhancement is still required.

Best regards

cejus avatar Jan 13 '19 12:01 cejus