# Howto configure log4j2.properties to log to /dev/log

**URL:** <https://discuss.elastic.co/t/howto-configure-log4j2-properties-to-log-to-dev-log/279566>\
**Category:** Elasticsearch\
**Created:** [July 25, 2021, 2:01pm UTC](https://discuss.elastic.co/t/howto-configure-log4j2-properties-to-log-to-dev-log/279566 "2021-07-25T14:01:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![f1outsourcing](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/f1outsourcing/32/92096_2.png) [@f1outsourcing](https://discuss.elastic.co/u/f1outsourcing)\
**Post date:** [July 25, 2021, 2:01pm UTC](https://discuss.elastic.co/t/howto-configure-log4j2-properties-to-log-to-dev-log/279566/1 "2021-07-25T14:01:30Z")

</div>

I can get this to work, but I prefer to log to /dev/log

appender.syslog.type = Syslog  
appender.syslog.name = syslog  
appender.syslog.host = xxxxxxxx.local  
appender.syslog.port = 514  
appender.syslog.protocol = UDP  
appender.syslog.facility = LOCAL0  
appender.syslog.layout.type = PatternLayout  
appender.syslog.layout.pattern = [%node\_name] %m%n

---

<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 22, 2021, 2:01pm UTC](https://discuss.elastic.co/t/howto-configure-log4j2-properties-to-log-to-dev-log/279566/2 "2021-08-22T14:01:58Z")

</div>

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