# Logstash logging

**URL:** <https://discuss.elastic.co/t/logstash-logging/256655>\
**Category:** Logstash\
**Created:** [November 25, 2020, 12:10pm UTC](https://discuss.elastic.co/t/logstash-logging/256655 "2020-11-25T12:10:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hzarrabi](https://avatars.discourse-cdn.com/v4/letter/h/f9ae1b/32.png) [@hzarrabi](https://discuss.elastic.co/u/hzarrabi)\
**Post date:** [November 25, 2020, 12:10pm UTC](https://discuss.elastic.co/t/logstash-logging/256655/1 "2020-11-25T12:10:26Z")

</div>

Hi Guys,

I would like to configure logstash **log4j2.properties** in order to fix the log size to 10M and to delete those older then 7 days.  
Could you please tell me which parameters to set log4j2.properties.

Thanks,  
Best Regards

---

<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:** [December 23, 2020, 12:10pm UTC](https://discuss.elastic.co/t/logstash-logging/256655/2 "2020-12-23T12:10:28Z")

</div>

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