# Logstash proposal

**URL:** <https://discuss.elastic.co/t/logstash-proposal/93794>\
**Category:** Logstash\
**Created:** [July 19, 2017, 3:02pm UTC](https://discuss.elastic.co/t/logstash-proposal/93794 "2017-07-19T15:02:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![R-Ali](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@R-Ali](https://discuss.elastic.co/u/R-Ali)\
**Post date:** [July 19, 2017, 3:02pm UTC](https://discuss.elastic.co/t/logstash-proposal/93794/1 "2017-07-19T15:02:36Z")

</div>

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](http://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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 16, 2017, 3:02pm UTC](https://discuss.elastic.co/t/logstash-proposal/93794/2 "2017-08-16T15:02:58Z")

</div>

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