Say whole number in the lsheap and esheap validation message

The regex only accepts whole numbers, so 1.5g is rejected; the message
now says so.
This commit is contained in:
Josh Patterson committed 2026-12-04 08:04:04 -05:00
1 parent 9152e6fce0
commit 248fa193db
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ elasticsearch:
description: Heap size to use for Elasticsearch, as a number followed by k (kilobytes), m (megabytes) or g (gigabytes), such as 600m.
forcedType: string
regex: ^[1-9][0-9]*[kKmMgG]$
regexFailureMessage: Must be a number followed by k, m or g, such as 600m.
regexFailureMessage: Must be a whole number followed by k, m or g, such as 600m.
helpLink: elasticsearch
index_clean:
description: Determines if indices should be considered for deletion by available disk space in the cluster. Otherwise, data is retained by the configured lifecycle settings. This setting only applies to EVAL, STANDALONE, and HEAVY NODE installations. Other installations use lifecycle settings only.
+1 -1
View File
@@ -407,7 +407,7 @@ logstash:
description: Heap size to use for Logstash, as a number followed by k (kilobytes), m (megabytes) or g (gigabytes), such as 500m.
forcedType: string
regex: ^[1-9][0-9]*[kKmMgG]$
regexFailureMessage: Must be a number followed by k, m or g, such as 500m.
regexFailureMessage: Must be a whole number followed by k, m or g, such as 500m.
helpLink: logstash
global: False
config: