Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We want to give the user the option of filtering / sampling their netflow / sflow logs. The data can be redundant, therefore it is not necessary to handle every entry.
Default behavior excludes sampling. When enabled, the user has their choice of 0-100% in 10% increments. A sample rate of 0% will filter nothing, and a sample rate of 90% will filter most entries.
In testing, a sample rate of 0.5 produced has as many logs, while a sample rate of 0.0 produced 100% of logs. Testing for short durations is hit and miss but 3 minutes or longer has nice results.
You can test netflow v5 like this
config.yaml (without sample rate)
config.yaml (with sample rate)
Start Stanza
Run a loadgen container.
10.99.1.24
is my ip address, you need to determine your ip address. I believe it will not work with localhost / 127.0.0.1