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

Commit ec3236d

Browse files
author
Chris Wiechmann
committed
Making Version-Check API more robust
1 parent b143fcf commit ec3236d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

apibuilder4elastic/endpoints/versionLookup.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,16 @@
3939
"operationId": "Check version",
4040
"parameters": [
4141
{
42-
"type": "number",
42+
"type": "string",
4343
"in": "query",
4444
"name": "filebeatVersion",
45-
"description": "The filebeat version",
46-
"required": true
45+
"description": "The filebeat version"
4746
},
4847
{
49-
"type": "number",
48+
"type": "string",
5049
"in": "query",
5150
"name": "logstashVersion",
52-
"description": "The logstash version",
53-
"required": true
51+
"description": "The logstash version"
5452
}
5553
],
5654
"description": "Checks the version of Filebeat and Logstash if they are contain the expected version shipped with the API-Builder Docker-Image currently used.",

logstash/pipelines/BeatsInputPipeline.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ filter {
3838
set => { "[versionChecked]" => "versionCheck" }
3939
}
4040
# Check if there is a configuration/version mismatch
41-
if([versionStatus][versionStatus]=="error") {
41+
if([versionStatus][versionStatus]!="ok") {
4242
ruby {
4343
code => "
4444
logger.info('Exit Logstash as version of Filebeat or Logstash does not match to API-Builder version. Check API-Builder logs for more details');

0 commit comments

Comments
 (0)