Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 02d576d

Browse files
author
Chris Wiechmann
committed
Stop Logstash if version missmatch.
1 parent 0f0e200 commit 02d576d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

logstash/pipelines/BeatsInputPipeline.conf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ filter {
4242
ruby {
4343
code => "
4444
logger.error('Filebeat or Logstash does not match to API-Builder version. Check API-Builder logs for more details');
45+
ruby { code => 'Process.kill(15, Process.pid)' };
4546
"
4647
}
4748
}
48-
# Remove fields not used any further
49-
mutate {
50-
remove_field => [ "versionStatus", "filebeatVersion" ]
51-
}
49+
}
50+
# Remove fields not used any further
51+
mutate {
52+
remove_field => [ "versionStatus", "filebeatVersion" ]
5253
}
5354

5455
# If no region is given, set it to an empty string

0 commit comments

Comments
 (0)