-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add an option to report deltas during a flow period instead of cumulative stats #38223
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform) |
@@ -116,7 +116,7 @@ func TestCreateEvent(t *testing.T) { | |||
|
|||
// Write the event to disk if -data is used. | |||
if *dataFlag { | |||
event.Fields.Put("@timestamp", common.Time(end)) //nolint:errcheck // Never fails. |
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.
why was this removed?
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.
It was failing the lint check saying this is not used.
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.
overall, looks good to me.
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.
The typo on cummlative
as pointed out, other that LGTM!
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
💔 Build Failed
Failed CI StepsHistory
|
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
@haesbaert any idea why the filebeat tests are failing, they don't seem to be related to my changes . |
No idea, I'll ping some people, I don't think it should block this PR though. |
Proposed commit message
Currently intermediate flows and final flows report cumulative stats for
network.bytes
andnetwork.packets
. Adding a config optionenable_delta_flow_reports
that will result in intermediate flows and final flows reportingnetwork.bytes
andnetwork.packets
for only that corresponding period instead of cumulative.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Use cases
Having delta stats in intermediate flows helps calculating things like total bytes for a specific time window easier without having to look at flows for other time periods to arrive at an accurate answer.