Files
securityonion/salt/logstash
Josh Patterson 3fdb2fbad8 Require a unit on lsheap and esheap in SOC Configuration
Without forcedType or regex, SOC accepted a unitless heap such as 500.
AlignBestGuess stored it as a YAML integer, which rendered -Xms500
(bytes) and restart-looped the service. On the next save, AlignType
then tried ParseInt on the corrected 500m and rejected it.

forcedType: string makes SOC store the value as a string whatever the
stored type, so an existing integer can be corrected. The regex blocks
unitless values in the UI. k, m and g are allowed (either case), matching
what the bundled JDKs accept for -Xms/-Xmx; the Logstash JVM options
parser passes them through unchanged. Heaps too small to start fail in
the JVM whatever the unit, so the regex doesn't check size.
2026-12-03 13:47:42 -05:00
..
2023-05-10 11:16:03 -04:00
2023-05-10 11:16:03 -04:00
2026-01-20 09:30:32 -05:00