From 6e97c9d3ada4fa6df99cb82d5733bd73122bb846 Mon Sep 17 00:00:00 2001
From: Marco Pfatschbacher <marco@graylog.com>
Date: Mon, 7 Aug 2023 17:39:13 +0200
Subject: [PATCH] Bump included beats versions (#476)

* bump beat versions to 8.8.2

* Keep win32 beats at version 7.17.12

Those were the last ones released for win32

We might consider removing win32 support for the sidecar as well.

* Bump to latest version 8.9.0

* Add changelog

---------

Co-authored-by: Jamie Murphy <jamiemurphyit@gmail.com>
---
 changelog/unreleased/pr-476.toml |  6 ++++++
 dist/fetch_collectors.sh         | 15 +++++++++++----
 2 files changed, 17 insertions(+), 4 deletions(-)
 create mode 100644 changelog/unreleased/pr-476.toml

diff --git a/changelog/unreleased/pr-476.toml b/changelog/unreleased/pr-476.toml
new file mode 100644
index 0000000..b3382b6
--- /dev/null
+++ b/changelog/unreleased/pr-476.toml
@@ -0,0 +1,6 @@
+type = "c"
+message = "Update shipped beats collectors to verion 8.9.0"
+
+issues = ["426", "437"]
+pulls = ["476"]
+
diff --git a/dist/fetch_collectors.sh b/dist/fetch_collectors.sh
index 7c55921..f6bcfef 100755
--- a/dist/fetch_collectors.sh
+++ b/dist/fetch_collectors.sh
@@ -1,8 +1,10 @@
 #!/bin/bash
 
 ARCHS=( x86 x86_64 )
-FILEBEAT_VERSION=7.11.1
-WINLOGBEAT_VERSION=7.11.1
+FILEBEAT_VERSION=8.9.0
+FILEBEAT_VERSION_32=7.17.12
+WINLOGBEAT_VERSION=8.9.0
+WINLOGBEAT_VERSION_32=7.17.12
 
 # $1: beat name
 # $2: beat operating system
@@ -40,7 +42,12 @@ download_beat()
 
 for ARCH in "${ARCHS[@]}"
 do
-  download_beat "filebeat" "windows" ${FILEBEAT_VERSION} ${ARCH}
-  download_beat "winlogbeat" "windows" ${WINLOGBEAT_VERSION} ${ARCH}
+  #download_beat "filebeat" "linux" ${FILEBEAT_VERSION} ${ARCH}
+  :
 done
 
+download_beat "filebeat" "windows" ${FILEBEAT_VERSION} x86_64
+download_beat "filebeat" "windows" ${FILEBEAT_VERSION_32} x86
+
+download_beat "winlogbeat" "windows" ${WINLOGBEAT_VERSION} x86_64
+download_beat "winlogbeat" "windows" ${WINLOGBEAT_VERSION_32} x86