-
Notifications
You must be signed in to change notification settings - Fork 464
[AWS] Add new pattern to support all 29 vpcflow fields #2912
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ff49889
[AWS] Add new pattern to support all 29 vpcflow fields
legoguy1000 cfad3d6
update changelog
legoguy1000 ca00a35
update docs
legoguy1000 bbcdd4a
update readme
legoguy1000 31a6079
fix docs
legoguy1000 6b2b071
update docs
legoguy1000 cc7c548
Merge remote-tracking branch 'elastic/main' into aws-vpcflow-more-fields
andrewkroh 6f65c96
Update generated docs
andrewkroh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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: 1 addition & 0 deletions
1
packages/aws/data_stream/vpcflow/_dev/test/pipeline/test-v5-all-fields.log
This file contains hidden or 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 64111117617 eni-069xxxxxb7a490 89.160.20.156 10.200.0.0 50041 33004 17 52 1 164000066 1640000297 REJECT OK vpc-09676f97xxxxxb8a7 subnet-02d645xxxxxxxdbc0 i-0axxxxxx1ad77 1 IPv4 89.160.20.156 10.200.0.80 us-east-1 use1-az5 - - AMAZON CLOUDFRONT ingress 1 |
101 changes: 101 additions & 0 deletions
101
packages/aws/data_stream/vpcflow/_dev/test/pipeline/test-v5-all-fields.log-expected.json
This file contains hidden or 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,101 @@ | ||
{ | ||
"expected": [ | ||
{ | ||
"@timestamp": "2021-12-20T11:38:17.000Z", | ||
"aws": { | ||
"vpcflow": { | ||
"account_id": "64111117617", | ||
"action": "REJECT", | ||
"instance_id": "i-0axxxxxx1ad77", | ||
"interface_id": "eni-069xxxxxb7a490", | ||
"log_status": "OK", | ||
"pkt_dst_service": "CLOUDFRONT", | ||
"pkt_dstaddr": "10.200.0.80", | ||
"pkt_src_service": "AMAZON", | ||
"pkt_srcaddr": "89.160.20.156", | ||
"sublocation": {}, | ||
"subnet_id": "subnet-02d645xxxxxxxdbc0", | ||
"tcp_flags": "1", | ||
"tcp_flags_array": [ | ||
"fin" | ||
], | ||
"traffic_path": "1", | ||
"type": "IPv4", | ||
"version": "5", | ||
"vpc_id": "vpc-09676f97xxxxxb8a7" | ||
} | ||
}, | ||
"cloud": { | ||
"account": { | ||
"id": "64111117617" | ||
}, | ||
"availability_zone": "use1-az5", | ||
"instance": { | ||
"id": "i-0axxxxxx1ad77" | ||
}, | ||
"provider": "aws", | ||
"region": "us-east-1" | ||
}, | ||
"destination": { | ||
"address": "10.200.0.0", | ||
"ip": "10.200.0.0", | ||
"port": 33004 | ||
}, | ||
"ecs": { | ||
"version": "8.0.0" | ||
}, | ||
"event": { | ||
"category": "network_traffic", | ||
"end": "2021-12-20T11:38:17.000Z", | ||
"kind": "event", | ||
"original": "5 64111117617 eni-069xxxxxb7a490 89.160.20.156 10.200.0.0 50041 33004 17 52 1 164000066 1640000297 REJECT OK vpc-09676f97xxxxxb8a7 subnet-02d645xxxxxxxdbc0 i-0axxxxxx1ad77 1 IPv4 89.160.20.156 10.200.0.80 us-east-1 use1-az5 - - AMAZON CLOUDFRONT ingress 1", | ||
"outcome": "deny", | ||
"start": "1975-03-14T03:34:26.000Z", | ||
"type": "flow" | ||
}, | ||
"network": { | ||
"bytes": 1, | ||
"community_id": "1:+zLdyx7gcy2L5ERP4Je5AZMgl3A=", | ||
"direction": "ingress", | ||
"iana_number": "17", | ||
"packets": 52, | ||
"transport": "udp", | ||
"type": "ipv4" | ||
}, | ||
"related": { | ||
"ip": [ | ||
"89.160.20.156", | ||
"10.200.0.0" | ||
] | ||
}, | ||
"source": { | ||
"address": "89.160.20.156", | ||
"as": { | ||
"number": 29518, | ||
"organization": { | ||
"name": "Bredband2 AB" | ||
} | ||
}, | ||
"bytes": 1, | ||
"geo": { | ||
"city_name": "Linköping", | ||
"continent_name": "Europe", | ||
"country_iso_code": "SE", | ||
"country_name": "Sweden", | ||
"location": { | ||
"lat": 58.4167, | ||
"lon": 15.6167 | ||
}, | ||
"region_iso_code": "SE-E", | ||
"region_name": "Östergötland County" | ||
}, | ||
"ip": "89.160.20.156", | ||
"packets": 52, | ||
"port": 50041 | ||
}, | ||
"tags": [ | ||
"preserve_original_event" | ||
] | ||
} | ||
] | ||
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.