Replies: 5 comments 9 replies
-
Hi @johnhtodd Create a filters.json file such as: [
{"ip_cidr":"0.0.0.0/0", "action": "Accept"}
] You can use several rules there. Until I update the doc, you can look here for the available config; code won't lie :-) Then, simply export that: export FLOW_FILTER_RULES=$(cat filters.json) and run the agent, hopefully it should work |
Beta Was this translation helpful? Give feedback.
-
yes, you can do that. There's probably more optimization you can do, to filter at the earliest possible stage.. such as looking only for TCP traffic, to start with.
You can provide several ports, see https://github.com/netobserv/netobserv-ebpf-agent/blob/main/pkg/config/config.go#L52-L54 |
Beta Was this translation helpful? Give feedback.
-
Doc update PR: netobserv/netobserv-ebpf-agent#710 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the hints - digging in and trying to make this work now. |
Beta Was this translation helpful? Give feedback.
-
Thanks @jotak - got this to work for my next increment, but now on to the next step, which again may be my thickheadedness or a doc problem. I am now trying to make an aggregate (average) using the subnet of each entry. I have achieved a step where I have slow-stepped my way through things and have objects passing through the system that look like this:
So far, so good. Now, I try feeding it into an aggregate, using the example provided as my template. Here is my conversion:
But I get this error:
I have tried many different permutations of the lines, but I'll admit I'm cargo-culting this a bit with the YAML. I have the "pipeline:" statements correct; line 94 is the " - name: "Average by round trip time per subnet"" line. I've minimized this example all the way down to just a config file with the example text for "Aggregates" in it and running directly as a config file ("flowlogs-pipeline --config minimal.yaml") and it still fails with the unmarshal error. $ crapbot has also been entirely stumped as to the syntax issues I'm running into. Is this me, or the documentation, or a bug? A follow-up question: are aggregates available inside of netobserv-ebpf-agent or are they only available if I pipe the output to flowlogs-pipeline in some fashion? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry for n00b questions here, but I've just found netobserv and it's really interesting for some of our use cases. We're using Vector for some of our other telemetry flows, so this has a similar shape but I'm still not clear on some syntax issues. We'll probably aggregate/average
Any hints on what I'm doing incorrectly here? If I turn "ENABLE_FLOW_FILTER" to "false" then no error is produced, but no filter seems to be applied, either. What JSON input is this error referencing?
We are really interested in just the events with TCP round-trip data. I assume I can just strip that out in the flowlogs config via the "remove_entry_if_doesnt_exist" action looking for TimeFlowRttNs?
I'd like to trigger on traffic that is received on two non-sequential TCP ports. It doesn't appear that is possible, since FLOW_FILTER_DESTINATION_PORT seems to only be able to be defined once - do I need to run two instances of the Agent to get two ports? That is unexpected. Perhaps I am not understanding some really basic idea.
Beta Was this translation helpful? Give feedback.
All reactions