# How to configure Beat to log to a specific Syslog facility

**URL:** <https://discuss.elastic.co/t/how-to-configure-beat-to-log-to-a-specific-syslog-facility/184458>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [June 5, 2019, 9:25pm UTC](https://discuss.elastic.co/t/how-to-configure-beat-to-log-to-a-specific-syslog-facility/184458 "2019-06-05T21:25:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stoth](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@stoth](https://discuss.elastic.co/u/stoth)\
**Post date:** [June 5, 2019, 9:25pm UTC](https://discuss.elastic.co/t/how-to-configure-beat-to-log-to-a-specific-syslog-facility/184458/1 "2019-06-05T21:25:06Z")

</div>

Hello, I've written a custom beat that I want to log to a specific Syslog facility. I'm aware of [the configuration to enable logging to Syslog](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html#_literal_logging_to_syslog_literal), but I can't figure out how to log to a specific Syslog facility (ex. LOCAL6)

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![martinr\_ubi](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@martinr\_ubi](https://discuss.elastic.co/u/martinr_ubi)\
**Post date:** [June 6, 2019, 2:43am UTC](https://discuss.elastic.co/t/how-to-configure-beat-to-log-to-a-specific-syslog-facility/184458/2 "2019-06-06T02:43:37Z")

</div>

It’s hardcoded here:

> <https://github.com/elastic/beats/blob/10dca3e78f83b77769f566ce0f2fd0130e074531/libbeat/logp/syslog_unix.go#L41>

Useful ref:  
[https://golang.org/pkg/log/syslog/](https://golang.org/pkg/log/syslog/)

---

<div class="post-metadata">

**Author:** ![stoth](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@stoth](https://discuss.elastic.co/u/stoth)\
**Post date:** [June 6, 2019, 3:16pm UTC](https://discuss.elastic.co/t/how-to-configure-beat-to-log-to-a-specific-syslog-facility/184458/3 "2019-06-06T15:16:39Z")

</div>

Thank you. I'll open a feature request to allow it be configured.

---

<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:** [July 4, 2019, 3:16pm UTC](https://discuss.elastic.co/t/how-to-configure-beat-to-log-to-a-specific-syslog-facility/184458/4 "2019-07-04T15:16:40Z")

</div>

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