@@ -35,10 +35,10 @@ module Environment
3535
3636 [
3737 Setting ::Boolean . new ( "allow_superuser" , true ) ,
38- Setting ::String . new ( "node.name" , Socket . gethostname ) ,
39- Setting ::NullableString . new ( "path.config" , nil , false ) ,
38+ Setting ::SettingString . new ( "node.name" , Socket . gethostname ) ,
39+ Setting ::SettingNullableString . new ( "path.config" , nil , false ) ,
4040 Setting ::WritableDirectory . new ( "path.data" , ::File . join ( LogStash ::Environment ::LOGSTASH_HOME , "data" ) ) ,
41- Setting ::NullableString . new ( "config.string" , nil , false ) ,
41+ Setting ::SettingNullableString . new ( "config.string" , nil , false ) ,
4242 Setting ::Modules . new ( "modules.cli" , LogStash ::Util ::ModulesSettingArray , [ ] ) ,
4343 Setting ::Modules . new ( "modules" , LogStash ::Util ::ModulesSettingArray , [ ] ) ,
4444 Setting . new ( "modules_list" , Array , [ ] ) ,
@@ -50,10 +50,10 @@ module Environment
5050 Setting ::Boolean . new ( "config.reload.automatic" , false ) ,
5151 Setting ::TimeValue . new ( "config.reload.interval" , "3s" ) , # in seconds
5252 Setting ::Boolean . new ( "config.support_escapes" , false ) ,
53- Setting ::String . new ( "config.field_reference.escape_style" , "none" , true , %w( none percent ampersand ) ) ,
54- Setting ::String . new ( "event_api.tags.illegal" , "rename" , true , %w( rename warn ) ) ,
53+ Setting ::SettingString . new ( "config.field_reference.escape_style" , "none" , true , %w( none percent ampersand ) ) ,
54+ Setting ::SettingString . new ( "event_api.tags.illegal" , "rename" , true , %w( rename warn ) ) ,
5555 Setting ::Boolean . new ( "metric.collect" , true ) ,
56- Setting ::String . new ( "pipeline.id" , "main" ) ,
56+ Setting ::SettingString . new ( "pipeline.id" , "main" ) ,
5757 Setting ::Boolean . new ( "pipeline.system" , false ) ,
5858 Setting ::PositiveInteger . new ( "pipeline.workers" , LogStash ::Config ::CpuCoreStrategy . maximum ) ,
5959 Setting ::PositiveInteger . new ( "pipeline.batch.size" , 125 ) ,
@@ -65,32 +65,32 @@ module Environment
6565 Setting ::CoercibleString . new ( "pipeline.ordered" , "auto" , true , [ "auto" , "true" , "false" ] ) ,
6666 Setting ::CoercibleString . new ( "pipeline.ecs_compatibility" , "v8" , true , %w( disabled v1 v8 ) ) ,
6767 Setting . new ( "path.plugins" , Array , [ ] ) ,
68- Setting ::NullableString . new ( "interactive" , nil , false ) ,
68+ Setting ::SettingNullableString . new ( "interactive" , nil , false ) ,
6969 Setting ::Boolean . new ( "config.debug" , false ) ,
70- Setting ::String . new ( "log.level" , "info" , true , [ "fatal" , "error" , "warn" , "debug" , "info" , "trace" ] ) ,
70+ Setting ::SettingString . new ( "log.level" , "info" , true , [ "fatal" , "error" , "warn" , "debug" , "info" , "trace" ] ) ,
7171 Setting ::Boolean . new ( "version" , false ) ,
7272 Setting ::Boolean . new ( "help" , false ) ,
7373 Setting ::Boolean . new ( "enable-local-plugin-development" , false ) ,
74- Setting ::String . new ( "log.format" , "plain" , true , [ "json" , "plain" ] ) ,
74+ Setting ::SettingString . new ( "log.format" , "plain" , true , [ "json" , "plain" ] ) ,
7575 Setting ::Boolean . new ( "log.format.json.fix_duplicate_message_fields" , false ) ,
7676 Setting ::Boolean . new ( "api.enabled" , true ) . with_deprecated_alias ( "http.enabled" ) ,
77- Setting ::String . new ( "api.http.host" , "127.0.0.1" ) . with_deprecated_alias ( "http.host" ) ,
77+ Setting ::SettingString . new ( "api.http.host" , "127.0.0.1" ) . with_deprecated_alias ( "http.host" ) ,
7878 Setting ::PortRange . new ( "api.http.port" , 9600 ..9700 ) . with_deprecated_alias ( "http.port" ) ,
79- Setting ::String . new ( "api.environment" , "production" ) . with_deprecated_alias ( "http.environment" ) ,
80- Setting ::String . new ( "api.auth.type" , "none" , true , %w( none basic ) ) ,
81- Setting ::String . new ( "api.auth.basic.username" , nil , false ) . nullable ,
79+ Setting ::SettingString . new ( "api.environment" , "production" ) . with_deprecated_alias ( "http.environment" ) ,
80+ Setting ::SettingString . new ( "api.auth.type" , "none" , true , %w( none basic ) ) ,
81+ Setting ::SettingString . new ( "api.auth.basic.username" , nil , false ) . nullable ,
8282 Setting ::Password . new ( "api.auth.basic.password" , nil , false ) . nullable ,
83- Setting ::String . new ( "api.auth.basic.password_policy.mode" , "WARN" , true , %w[ WARN ERROR ] ) ,
83+ Setting ::SettingString . new ( "api.auth.basic.password_policy.mode" , "WARN" , true , %w[ WARN ERROR ] ) ,
8484 Setting ::Numeric . new ( "api.auth.basic.password_policy.length.minimum" , 8 ) ,
85- Setting ::String . new ( "api.auth.basic.password_policy.include.upper" , "REQUIRED" , true , %w[ REQUIRED OPTIONAL ] ) ,
86- Setting ::String . new ( "api.auth.basic.password_policy.include.lower" , "REQUIRED" , true , %w[ REQUIRED OPTIONAL ] ) ,
87- Setting ::String . new ( "api.auth.basic.password_policy.include.digit" , "REQUIRED" , true , %w[ REQUIRED OPTIONAL ] ) ,
88- Setting ::String . new ( "api.auth.basic.password_policy.include.symbol" , "OPTIONAL" , true , %w[ REQUIRED OPTIONAL ] ) ,
85+ Setting ::SettingString . new ( "api.auth.basic.password_policy.include.upper" , "REQUIRED" , true , %w[ REQUIRED OPTIONAL ] ) ,
86+ Setting ::SettingString . new ( "api.auth.basic.password_policy.include.lower" , "REQUIRED" , true , %w[ REQUIRED OPTIONAL ] ) ,
87+ Setting ::SettingString . new ( "api.auth.basic.password_policy.include.digit" , "REQUIRED" , true , %w[ REQUIRED OPTIONAL ] ) ,
88+ Setting ::SettingString . new ( "api.auth.basic.password_policy.include.symbol" , "OPTIONAL" , true , %w[ REQUIRED OPTIONAL ] ) ,
8989 Setting ::Boolean . new ( "api.ssl.enabled" , false ) ,
9090 Setting ::ExistingFilePath . new ( "api.ssl.keystore.path" , nil , false ) . nullable ,
9191 Setting ::Password . new ( "api.ssl.keystore.password" , nil , false ) . nullable ,
9292 Setting ::StringArray . new ( "api.ssl.supported_protocols" , nil , true , %w[ TLSv1 TLSv1.1 TLSv1.2 TLSv1.3 ] ) ,
93- Setting ::String . new ( "queue.type" , "memory" , true , [ "persisted" , "memory" ] ) ,
93+ Setting ::SettingString . new ( "queue.type" , "memory" , true , [ "persisted" , "memory" ] ) ,
9494 Setting ::Boolean . new ( "queue.drain" , false ) ,
9595 Setting ::Bytes . new ( "queue.page_capacity" , "64mb" ) ,
9696 Setting ::Bytes . new ( "queue.max_bytes" , "1024mb" ) ,
@@ -102,16 +102,16 @@ module Environment
102102 Setting ::Boolean . new ( "dead_letter_queue.enable" , false ) ,
103103 Setting ::Bytes . new ( "dead_letter_queue.max_bytes" , "1024mb" ) ,
104104 Setting ::Numeric . new ( "dead_letter_queue.flush_interval" , 5000 ) ,
105- Setting ::String . new ( "dead_letter_queue.storage_policy" , "drop_newer" , true , [ "drop_newer" , "drop_older" ] ) ,
106- Setting ::NullableString . new ( "dead_letter_queue.retain.age" ) , # example 5d
105+ Setting ::SettingString . new ( "dead_letter_queue.storage_policy" , "drop_newer" , true , [ "drop_newer" , "drop_older" ] ) ,
106+ Setting ::SettingNullableString . new ( "dead_letter_queue.retain.age" ) , # example 5d
107107 Setting ::TimeValue . new ( "slowlog.threshold.warn" , "-1" ) ,
108108 Setting ::TimeValue . new ( "slowlog.threshold.info" , "-1" ) ,
109109 Setting ::TimeValue . new ( "slowlog.threshold.debug" , "-1" ) ,
110110 Setting ::TimeValue . new ( "slowlog.threshold.trace" , "-1" ) ,
111- Setting ::String . new ( "keystore.classname" , "org.logstash.secret.store.backend.JavaKeyStore" ) ,
112- Setting ::String . new ( "keystore.file" , ::File . join ( ::File . join ( LogStash ::Environment ::LOGSTASH_HOME , "config" ) , "logstash.keystore" ) , false ) , # will be populated on
113- Setting ::NullableString . new ( "monitoring.cluster_uuid" ) ,
114- Setting ::String . new ( "pipeline.buffer.type" , nil , false , [ "direct" , "heap" ] )
111+ Setting ::SettingString . new ( "keystore.classname" , "org.logstash.secret.store.backend.JavaKeyStore" ) ,
112+ Setting ::SettingString . new ( "keystore.file" , ::File . join ( ::File . join ( LogStash ::Environment ::LOGSTASH_HOME , "config" ) , "logstash.keystore" ) , false ) , # will be populated on
113+ Setting ::SettingNullableString . new ( "monitoring.cluster_uuid" ) ,
114+ Setting ::SettingString . new ( "pipeline.buffer.type" , nil , false , [ "direct" , "heap" ] )
115115 # post_process
116116 ] . each { |setting | SETTINGS . register ( setting ) }
117117
0 commit comments