diff --git a/salt/elasticsearch/soc_elasticsearch.yaml b/salt/elasticsearch/soc_elasticsearch.yaml index a885f15bc..6c320edc0 100644 --- a/salt/elasticsearch/soc_elasticsearch.yaml +++ b/salt/elasticsearch/soc_elasticsearch.yaml @@ -17,7 +17,10 @@ elasticsearch: global: True advanced: True esheap: - description: Specify the memory heap size in (m)egabytes for Elasticsearch. + description: Heap size to use for Elasticsearch, as a number followed by m (megabytes) or g (gigabytes), such as 600m. + forcedType: string + regex: ^[1-9][0-9]*[mMgG]$ + regexFailureMessage: Must be a number followed by 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. diff --git a/salt/logstash/soc_logstash.yaml b/salt/logstash/soc_logstash.yaml index edb2a0ee6..b96a07d35 100644 --- a/salt/logstash/soc_logstash.yaml +++ b/salt/logstash/soc_logstash.yaml @@ -403,8 +403,11 @@ logstash: custom8: *pipeline_settings custom9: *pipeline_settings settings: - lsheap: - description: Heap size to use for logstash + lsheap: + description: Heap size to use for Logstash, as a number followed by m (megabytes) or g (gigabytes), such as 500m. + forcedType: string + regex: ^[1-9][0-9]*[mMgG]$ + regexFailureMessage: Must be a number followed by m or g, such as 500m. helpLink: logstash global: False config: