| 1 |
#This is the same parser as the one in the hub, but with links to test databases. |
| 2 |
#If the actual parser is updated, this file also needs to be updated |
| 3 |
filter: "'source_ip' in evt.Meta" |
| 4 |
name: crowdsecurity/geoip-enrich |
| 5 |
description: "Populate event with geoloc info : as, country, coords, source range." |
| 6 |
data: |
| 7 |
- source_url: https://crowdsec-statics-assets.s3.eu-west-1.amazonaws.com/GeoLite2-Test-City.mmdb |
| 8 |
dest_file: GeoLite2-City.mmdb |
| 9 |
- source_url: https://crowdsec-statics-assets.s3.eu-west-1.amazonaws.com/GeoLite2-Test-ASN.mmdb |
| 10 |
dest_file: GeoLite2-ASN.mmdb |
| 11 |
statics: |
| 12 |
- method: GeoIpCity |
| 13 |
expression: evt.Meta.source_ip |
| 14 |
- meta: IsoCode |
| 15 |
expression: evt.Enriched.IsoCode |
| 16 |
- meta: IsInEU |
| 17 |
expression: evt.Enriched.IsInEU |
| 18 |
- meta: GeoCoords |
| 19 |
expression: evt.Enriched.GeoCoords |
| 20 |
- method: GeoIpASN |
| 21 |
expression: evt.Meta.source_ip |
| 22 |
- meta: ASNNumber |
| 23 |
expression: evt.Enriched.ASNNumber |
| 24 |
- meta: ASNOrg |
| 25 |
expression: evt.Enriched.ASNOrg |
| 26 |
- method: IpToRange |
| 27 |
expression: evt.Meta.source_ip |
| 28 |
- meta: SourceRange |
| 29 |
expression: evt.Enriched.SourceRange |