-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
common.yml
37 lines (36 loc) · 908 Bytes
/
common.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
description: Pipeline for parsing google_workspace logs
processors:
- uri_parts:
field: url.full
ignore_failure: true
if: ctx?.url?.full != null
- geoip:
field: source.ip
target_field: source.geo
ignore_missing: true
- geoip:
database_file: GeoLite2-ASN.mmdb
field: source.ip
target_field: source.as
properties:
- asn
- organization_name
ignore_missing: true
- rename:
field: source.as.asn
target_field: source.as.number
ignore_missing: true
- rename:
field: source.as.organization_name
target_field: source.as.organization.name
ignore_missing: true
- remove:
field: json
ignore_missing: true
- set:
field: event.ingested
value: "{{ _ingest.timestamp }}"
on_failure:
- set:
field: error.message
value: "{{ _ingest.on_failure_message }}"