Skip to content

Commit

Permalink
[Packetbeat] Add "network" to event.category (elastic#20392)
Browse files Browse the repository at this point in the history
Add "network" to event.category value.

Closes elastic#20364


(cherry picked from commit 7b47f1f)
  • Loading branch information
leehinman authored and andrewkroh committed Aug 11, 2020
1 parent 7904d7f commit b96d376
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ field. You can revert this change by configuring tags for the module and omittin

- Enable setting promiscuous mode automatically. {pull}11366[11366]
- Fix process monitoring when ipv6 is disabled under Linux. {issue}19941[19941] {pull}19945[19945]
- Add "network" to event.category {issue}20364[20364] {pull}20392[20392]

*Winlogbeat*

Expand Down
9 changes: 8 additions & 1 deletion packetbeat/_meta/sample_outputs/flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@
"end": "2018-11-30T01:16:45.645Z",
"duration": 3965826800,
"type": "flow",
"start": "2018-11-30T01:16:41.679Z"
"start": "2018-11-30T01:16:41.679Z",
"dataset": "flow",
"kind": "event",
"action": "network_flow",
"category": [
"network_traffic",
"network"
]
}
}
2 changes: 1 addition & 1 deletion packetbeat/flows/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func createEvent(
"duration": f.ts.Sub(f.createTS),
"dataset": "flow",
"kind": "event",
"category": "network_traffic",
"category": []string{"network_traffic", "network"},
"action": "network_flow",
}
flow := common.MapStr{
Expand Down
3 changes: 3 additions & 0 deletions packetbeat/flows/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ func TestCreateEvent(t *testing.T) {
"end": isdef.KeyPresent,
"duration": isdef.KeyPresent,
"dataset": "flow",
"kind": "event",
"category": []string{"network_traffic", "network"},
"action": "network_flow",
},
"type": "flow",
})
Expand Down

0 comments on commit b96d376

Please sign in to comment.