# Manual method for triggering logstash to process log4j2 properties?

**URL:** <https://discuss.elastic.co/t/manual-method-for-triggering-logstash-to-process-log4j2-properties/165093>\
**Category:** Logstash\
**Created:** [January 21, 2019, 4:59pm UTC](https://discuss.elastic.co/t/manual-method-for-triggering-logstash-to-process-log4j2-properties/165093 "2019-01-21T16:59:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![slmingol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/slmingol/32/12606_2.png) [@slmingol](https://discuss.elastic.co/u/slmingol)\
**Post date:** [January 21, 2019, 4:59pm UTC](https://discuss.elastic.co/t/manual-method-for-triggering-logstash-to-process-log4j2-properties/165093/1 "2019-01-21T16:59:32Z")

</div>

I'm in the process of making changes to our log4j2.properties file for logstash and was wondering if there was a way to trigger the running of the log4j2 rules via a Unix signal, perhaps `kill -3` or some such. It would be helpful to be able to manually trigger the running of these configurations when debugging changes to them to see if they're getting applied/picked up correct.

Specifically I'm adding some configurations which will delete rotated files from my `/usr/share/logstash/logs` directory based on either age or size.

```
appender.rolling.type = RollingFile
appender.rolling.name = plain_rolling
appender.rolling.fileName = ${sys:ls.logs}/logstash-${sys:ls.log.format}.log
appender.rolling.filePattern = ${sys:ls.logs}/logstash-${sys:ls.log.format}-%d{yyyy-MM-dd}-%i.log.gz
appender.rolling.policies.type = Policies
appender.rolling.policies.time.type = TimeBasedTriggeringPolicy
appender.rolling.policies.time.interval = 1
appender.rolling.policies.time.modulate = true
appender.rolling.layout.type = PatternLayout
appender.rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c] %-.10000m%n
appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
appender.rolling.policies.size.size = 100MB
appender.rolling.strategy.type = DefaultRolloverStrategy
appender.rolling.strategy.action.type = Delete
appender.rolling.strategy.action.basepath = ${sys:ls.logs}
appender.rolling.strategy.action.condition.type = IfFileName
appender.rolling.strategy.action.condition.glob = logstash-${sys:ls.log.format}-*
appender.rolling.strategy.action.condition.nested_condition.type = IfAny
appender.rolling.strategy.action.condition.nested_condition.lastMod.type = IfLastModified
appender.rolling.strategy.action.condition.nested_condition.lastMod.age = 7D
appender.rolling.strategy.action.condition.nested_condition.fileSize.type = IfAccumulatedFileSize
appender.rolling.strategy.action.condition.nested_condition.fileSize.exceeds = 5GB
```

---

<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:** [February 18, 2019, 4:59pm UTC](https://discuss.elastic.co/t/manual-method-for-triggering-logstash-to-process-log4j2-properties/165093/2 "2019-02-18T16:59:35Z")

</div>

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