Logstash proposal

Hello,

@Elastic Team :
Can you please add this parameter in the new version of logstash.
log.filename This parameter will be used to dynamize the names of log files.

in ../logstash-5.5.0/logstash-core/lib/logstash/environnement.rb To add Setting::String.new("log.filename","logstash-"),

in ../logstash-5.5.0/logstash-core/lib/logstash/runner.rb To add

Log Filename Settings

option ["--log.filename"], "NAME",
I18n.t("logstash.runner.flag.name"),
:attribute_name => "log.filename",
:default => LogStash::SETTINGS.get_default("log.filename")

java.lang.System.setProperty("ls.log.filename", setting("log.filename"))

THEN
in ../logstash-5.5.0/conf/log4j2.properties To modify
appender.rolling.fileName = ${sys:ls.logs}/${sys:ls.log.filename}
appender.rolling.filePattern = ${sys:ls.logs}/${sys:ls.log.filename}-%d{yyyy-MM-dd}.log

Thanks & Regards
Ali

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.