forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop pkt_dstaddr and pkt_srcaddr when equals to "-" (elastic#22721)
* Add painless script to remove all empty fields
- Loading branch information
1 parent
3a1d1ae
commit 24a4da8
Showing
6 changed files
with
90 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
x-pack/filebeat/module/aws/vpcflow/test/custom-nat-gateway.log-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
x-pack/filebeat/module/aws/vpcflow/test/tcp-flag-sequence-skip-data.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
version vpc-id subnet-id instance-id interface-id account-id type srcaddr dstaddr srcport dstport pkt-srcaddr pkt-dstaddr protocol bytes packets start end action tcp-flags log-status | ||
3 vpc-abcdefab012345678 subnet-aaaaaaaa012345678 i-01234567890123456 eni-1235b8ca123456789 123456789010 - - - - - - - - - - 1566848875 1566848933 - - SKIPDATA | ||
|
||
version vpc-id subnet-id instance-id interface-id account-id type srcaddr dstaddr srcport dstport pkt-srcaddr pkt-dstaddr protocol bytes packets start end action tcp-flags log-status | ||
3 vpc-abcdefab012345678 subnet-aaaaaaaa012345678 i-01234567890123456 eni-1235b8ca123456789 123456789010 - - - - - - - - - - 1566848875 1566848933 - - NODATA |
58 changes: 58 additions & 0 deletions
58
x-pack/filebeat/module/aws/vpcflow/test/tcp-flag-sequence-skip-data.log-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
[ | ||
{ | ||
"@timestamp": "2019-08-26T19:48:53.000Z", | ||
"aws.vpcflow.account_id": "123456789010", | ||
"aws.vpcflow.instance_id": "i-01234567890123456", | ||
"aws.vpcflow.interface_id": "eni-1235b8ca123456789", | ||
"aws.vpcflow.log_status": "SKIPDATA", | ||
"aws.vpcflow.subnet_id": "subnet-aaaaaaaa012345678", | ||
"aws.vpcflow.version": "3", | ||
"aws.vpcflow.vpc_id": "vpc-abcdefab012345678", | ||
"cloud.account.id": "123456789010", | ||
"cloud.instance.id": "i-01234567890123456", | ||
"cloud.provider": "aws", | ||
"event.category": "network_traffic", | ||
"event.dataset": "aws.vpcflow", | ||
"event.end": "2019-08-26T19:48:53.000Z", | ||
"event.kind": "event", | ||
"event.module": "aws", | ||
"event.original": "3 vpc-abcdefab012345678 subnet-aaaaaaaa012345678 i-01234567890123456 eni-1235b8ca123456789 123456789010 - - - - - - - - - - 1566848875 1566848933 - - SKIPDATA", | ||
"event.start": "2019-08-26T19:47:55.000Z", | ||
"event.type": "flow", | ||
"fileset.name": "vpcflow", | ||
"input.type": "log", | ||
"log.offset": 183, | ||
"service.type": "aws", | ||
"tags": [ | ||
"forwarded" | ||
] | ||
}, | ||
{ | ||
"@timestamp": "2019-08-26T19:48:53.000Z", | ||
"aws.vpcflow.account_id": "123456789010", | ||
"aws.vpcflow.instance_id": "i-01234567890123456", | ||
"aws.vpcflow.interface_id": "eni-1235b8ca123456789", | ||
"aws.vpcflow.log_status": "NODATA", | ||
"aws.vpcflow.subnet_id": "subnet-aaaaaaaa012345678", | ||
"aws.vpcflow.version": "3", | ||
"aws.vpcflow.vpc_id": "vpc-abcdefab012345678", | ||
"cloud.account.id": "123456789010", | ||
"cloud.instance.id": "i-01234567890123456", | ||
"cloud.provider": "aws", | ||
"event.category": "network_traffic", | ||
"event.dataset": "aws.vpcflow", | ||
"event.end": "2019-08-26T19:48:53.000Z", | ||
"event.kind": "event", | ||
"event.module": "aws", | ||
"event.original": "3 vpc-abcdefab012345678 subnet-aaaaaaaa012345678 i-01234567890123456 eni-1235b8ca123456789 123456789010 - - - - - - - - - - 1566848875 1566848933 - - NODATA", | ||
"event.start": "2019-08-26T19:47:55.000Z", | ||
"event.type": "flow", | ||
"fileset.name": "vpcflow", | ||
"input.type": "log", | ||
"log.offset": 526, | ||
"service.type": "aws", | ||
"tags": [ | ||
"forwarded" | ||
] | ||
} | ||
] |