Skip to content

Commit

Permalink
packetbeat add "network" to event.category
Browse files Browse the repository at this point in the history
Closes #20364
  • Loading branch information
leehinman committed Jul 31, 2020
1 parent 43bbf51 commit 07a14e9
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 @@ -307,6 +307,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d

- 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 07a14e9

Please sign in to comment.