Skip to content

Commit 02a5147

Browse files
graphaellisimitt
authored andcommitted
automate conflicting libbeat field removals (#1665)
1 parent 9024e3d commit 02a5147

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

script/update_beats.patch

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
diff --git libbeat/_meta/fields.common.yml libbeat/_meta/fields.common.yml
2+
index 4866b0462..d9401b8c1 100644
3+
--- libbeat/_meta/fields.common.yml
4+
+++ libbeat/_meta/fields.common.yml
5+
@@ -66,9 +66,6 @@
6+
Alias fields for compatibility with 7.x.
7+
fields:
8+
# Common Beats fields
9+
- - name: host.hostname
10+
- type: alias
11+
- path: beat.hostname
12+
- name: event.timezone
13+
type: alias
14+
path: beat.timezone
15+
diff --git libbeat/processors/add_host_metadata/_meta/fields.yml libbeat/processors/add_host_metadata/_meta/fields.yml
16+
index b579df3b2..770ca050f 100644
17+
--- libbeat/processors/add_host_metadata/_meta/fields.yml
18+
+++ libbeat/processors/add_host_metadata/_meta/fields.yml
19+
@@ -15,14 +15,6 @@
20+
type: keyword
21+
description: >
22+
Unique host id.
23+
- - name: architecture
24+
- type: keyword
25+
- description: >
26+
- Host architecture (e.g. x86_64, arm, ppc, mips).
27+
- - name: os.platform
28+
- type: keyword
29+
- description: >
30+
- OS platform (e.g. centos, ubuntu, windows).
31+
- name: os.version
32+
type: keyword
33+
description: >
34+
@@ -31,12 +23,7 @@
35+
type: keyword
36+
description: >
37+
OS family (e.g. redhat, debian, freebsd, windows).
38+
- - name: ip
39+
- type: ip
40+
- description: >
41+
- List of IP-addresses.
42+
- name: mac
43+
type: keyword
44+
description: >
45+
List of hardware-addresses, usually MAC-addresses.
46+
-

script/update_beats.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ mkdir -p $LICENSEDIR
6363
rsync -crpv --delete \
6464
${GIT_CLONE}/licenses/*.txt ./../licenses
6565

66+
# apply any patches to _beats files
67+
patch -s -F0 -p0 -i ../script/update_beats.patch
6668

6769
popd
6870

0 commit comments

Comments
 (0)