@@ -35,7 +35,7 @@ module Environment
3535
3636 [
3737 Setting ::Boolean . new ( "allow_superuser" , false ) ,
38- Setting ::String . new ( "node.name" , Socket . gethostname ) ,
38+ Setting ::StringSetting . new ( "node.name" , Socket . gethostname ) ,
3939 Setting ::NullableString . new ( "path.config" , nil , false ) ,
4040 Setting ::WritableDirectory . new ( "path.data" , ::File . join ( LogStash ::Environment ::LOGSTASH_HOME , "data" ) ) ,
4141 Setting ::NullableString . new ( "config.string" , nil , false ) ,
@@ -52,7 +52,7 @@ module Environment
5252 Setting ::Boolean . new ( "config.support_escapes" , false ) ,
5353 Setting ::StringSetting . new ( "config.field_reference.escape_style" , "none" , true , %w( none percent ampersand ) ) ,
5454 Setting ::Boolean . new ( "metric.collect" , true ) ,
55- Setting ::String . new ( "pipeline.id" , "main" ) ,
55+ Setting ::StringSetting . new ( "pipeline.id" , "main" ) ,
5656 Setting ::Boolean . new ( "pipeline.system" , false ) ,
5757 Setting ::PositiveInteger . new ( "pipeline.workers" , LogStash ::Config ::CpuCoreStrategy . maximum ) ,
5858 Setting ::PositiveInteger . new ( "pipeline.batch.size" , 125 ) ,
@@ -73,9 +73,9 @@ module Environment
7373 Setting ::StringSetting . new ( "log.format" , "plain" , true , [ "json" , "plain" ] ) ,
7474 Setting ::Boolean . new ( "log.format.json.fix_duplicate_message_fields" , true ) ,
7575 Setting ::Boolean . new ( "api.enabled" , true ) ,
76- Setting ::String . new ( "api.http.host" , "127.0.0.1" ) ,
76+ Setting ::StringSetting . new ( "api.http.host" , "127.0.0.1" ) ,
7777 Setting ::PortRange . new ( "api.http.port" , 9600 ..9700 ) ,
78- Setting ::String . new ( "api.environment" , "production" ) ,
78+ Setting ::StringSetting . new ( "api.environment" , "production" ) ,
7979 Setting ::StringSetting . new ( "api.auth.type" , "none" , true , %w( none basic ) ) ,
8080 Setting ::String . new ( "api.auth.basic.username" , nil , false ) . nullable ,
8181 Setting ::Password . new ( "api.auth.basic.password" , nil , false ) . nullable ,
@@ -107,7 +107,7 @@ module Environment
107107 Setting ::TimeValue . new ( "slowlog.threshold.info" , "-1" ) ,
108108 Setting ::TimeValue . new ( "slowlog.threshold.debug" , "-1" ) ,
109109 Setting ::TimeValue . new ( "slowlog.threshold.trace" , "-1" ) ,
110- Setting ::String . new ( "keystore.classname" , "org.logstash.secret.store.backend.JavaKeyStore" ) ,
110+ Setting ::StringSetting . new ( "keystore.classname" , "org.logstash.secret.store.backend.JavaKeyStore" ) ,
111111 Setting ::String . new ( "keystore.file" , ::File . join ( ::File . join ( LogStash ::Environment ::LOGSTASH_HOME , "config" ) , "logstash.keystore" ) , false ) , # will be populated on
112112 Setting ::NullableString . new ( "monitoring.cluster_uuid" ) ,
113113 Setting ::StringSetting . new ( "pipeline.buffer.type" , "direct" , true , [ "direct" , "heap" ] )
0 commit comments