-
Notifications
You must be signed in to change notification settings - Fork 16
Logstashsupport #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Logstashsupport #128
Conversation
2db6777
to
6d2773e
Compare
6d2773e
to
b3b86fa
Compare
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #128 +/- ##
=========================================
Coverage ? 50.93%
=========================================
Files ? 23
Lines ? 1127
Branches ? 160
=========================================
Hits ? 574
Misses ? 541
Partials ? 12 ☔ View full report in Codecov by Sentry. |
@alexcos78 I think that we need some unit tests for caso/messenger/logstash.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexcos78 we need to fix the tests before merging, can you please have a look?
@@ -49,11 +50,24 @@ def __init__(self, host=CONF.logstash.host, port=CONF.logstash.port): | |||
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |||
|
|||
def push(self, records): | |||
"""Push records to logstash using tcp.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This docstring needs to be added again, as flake8 will complain
I'm taking care of the modifications |
Description
Fix to send record to logstash. It solves issue #127
Fixes #127
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Running caso-extract sending record to logstash
Checklist: