Skip to content

Instantly share code, notes, and snippets.

@FrankHassanabad
Created August 29, 2019 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrankHassanabad/1f7eb510ba6de10d0ca2bf898260d817 to your computer and use it in GitHub Desktop.
Save FrankHassanabad/1f7eb510ba6de10d0ca2bf898260d817 to your computer and use it in GitHub Desktop.
Processors For Beats Example
processors:
- add_host_metadata:
netinfo.enabled: true
- add_cloud_metadata: ~
- add_fields:
when.network.source.ip: 10.128.0.21/32
fields:
source.geo.location:
lat: 42
lon: -93
source.geo.continent_name: North America
source.geo.region_iso_code: US-IA
source.geo.country_iso_code: US
source.geo.region_name: Iowa
target: ''
- add_fields:
when.network.destination.ip: 10.128.0.21/32
fields:
destination.geo.location:
lat: 42
lon: -93
destination.geo.continent_name: North America
destination.geo.region_iso_code: US-IA
destination.geo.country_iso_code: US
destination.geo.region_name: Iowa
target: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment