-
Notifications
You must be signed in to change notification settings - Fork 505
METRON-155 Added query filtering capability for PCAP via Metron REST API #119
Conversation
| /* | ||
| * (non-Javadoc) | ||
| * | ||
| * @see |
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.
Could you change the javadocs here to reflect the method?
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.
Looks like older leftover auto-generated javadoc - I'll revise the packaging and make a proper javadoc for the methods in that class.
|
On the whole, this is great. Definitely a great feature and an impressive 2nd PR. Thanks for the contribution! Please make sure you didn't inadvertently regress the existing pcap functionality on the |
|
Ok, made a number of changes for review. Thanks for the feedback! Should have the remaining fixes/improvements avail soon and will also test per comments on full-dev-vagrant. |
|
For some reason, I cannot comment on the original JIRA, so I will comment here. I think using a custom created language for this purpose is going to be confusing for our users. Most network tools support what is called Berkely Packet Filter (BPF) syntax. The user community is going to be fairly familiar with this syntax. I would suggest that we use BPF syntax for this purpose. |
|
@nickwallen Agreed we should support BPF. This PR makes the filter pluggable and we already have the query language. We can have a follow-on PR for BPF support IMO. |
|
I think that makes sense, especially since this creates the 'hook' for later contributions of BPF. The only downside is that we don't want to confuse users by having 8 ways to do things. But I don't think that will be a problem as long as we eventually get the BPF functionality. |
…apper and enhance filtering to use short-circuit Stream function.
|
fyi, I was able to confirm no regressions in the existing PcapJob query via the instructions located here - #93 Note: I had to up map/reduce heap to 1GB and container mem to 1.2GB to avoid OOM errors. |
|
+1, got my vote. |
|
+1 worked in EC2. |
…API (mmiklavcic via cestella) closes #119
…API (mmiklavcic via cestella) closes #119
https://issues.apache.org/jira/browse/METRON-155
Have not run the Vagrant deploy yet, but this is big PR so i wanted to get this reviewed asap.