-
Notifications
You must be signed in to change notification settings - Fork 40
METRON-2357: Extends example 4 with a dynamic version #47
base: master
Are you sure you want to change the base?
Conversation
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.
Hi @vikgmdev, thanks for the contribution! Please take a look at my feedback and we can work through the final few things there before getting this in.
I have also linked this PR in the JIRA you opened and put it in progress - if you email the metron dev mailing list someone should be able to set your permissions so I can reassign the issue to you.
README.md
Outdated
# replace `_` by `-` for compatibility with acceptable Kafka topic naes | ||
const topic_name: string = sub(topic_name_under, /_/, "-"); | ||
|
||
if (|Kafka::logs_to_send| == 0 || stream_id in Kafka::logs_to_send) |
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.
What is the goal of the |Kafka::logs_to_send| == 0 ||
portion of this? My read of this is this could get confusing because this example ignores our logs_to_exclude
and send_all_active_logs
options, if they also get set in an environment following this example config. Is there a way we can refactor this, potentially leveraging send_to_kafka
to make it more robust?
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.
Hey, @JonZeolla I just improve this part of the example by removing the condition, it still works the same. I also had some confusions about that line |Kafka::logs_to_send| == 0 ||
but now is all clear so it isn't need at all.
I have added Victor to the jira contributors role and assigned the jira to him |
Hi @vikgmdev any update on this? Thanks! |
Hi @vikgmdev thanks again for the contribution. Do you have an update? If not we will unfortunately need to mark this as abandoned |
Hi @JonZeolla hadn't the chance to push the updates. Let me retake the issue and I'll push the updates soon. Thanks a lot for your patience. |
Hey, @JonZeolla just noticed I had the changes since a few months ago but haven't pushed them before. We'll wait for you re-review. Thanks. |
Thanks @vikgmdev looking good. Have you tested with the end to end |
Hey, @JonZeolla I encountered two issues when running the end to end The link to download the nitroba.pcap is no longer available:
I commented that line to unblock me and keep with the test. But after that, the script is crashing and throwing this error:
so not sure if it's an actual bug on the test or if it's just a step I missed from my setup. |
Hi @vikgmdev yeah unfortunately those are known issues. If you manually download nitroba and put it in the pcap directory, and change the zeek version to |
Contributor Comments
It will demonstrate how to automatically send each zeek log to a topic with the same name.
For instance the
CONN::LOG
log to be sent to theconn
topic orKnown::CERTS_LOG
to theknown-certs
topic without defining aLog::Filter
for each of those.Pull Request Checklist
Thank you for submitting a contribution to Apache Metron's Bro kafka writer plugin.
In order to streamline the review of the contribution we ask you follow these guidelines and ask you to double check the following:
For all changes:
For code changes: