# Is it possible to export FreePBX logs to syslog?

**URL:** <https://community.freepbx.org/t/is-it-possible-to-export-freepbx-logs-to-syslog/51676>\
**Category:** Distro Discussion & Help\
**Created:** [August 2, 2018, 3:28pm UTC](https://community.freepbx.org/t/is-it-possible-to-export-freepbx-logs-to-syslog/51676 "2018-08-02T15:28:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![wzkds](https://community.freepbx.org/letter_avatar_proxy/v4/letter/w/73ab20/32.png) [@wzkds](https://community.freepbx.org/u/wzkds)\
**Post date:** [March 9, 2019, 12:58am UTC](https://community.freepbx.org/t/is-it-possible-to-export-freepbx-logs-to-syslog/51676/4 "2019-03-09T00:58:57Z")

</div>

That helped me, too, thought I’d add my 2cents.

(the part that I’m assuming, but adding for posterity):

edit /etc/rsyslog.conf

`vi /etc/rsyslog.conf`

Search for remote, uncoment the _._@remotehost and change _remotehost_ to the ip or fqdn of your syslog server.

If your syslog server is listening on udp/514:

```
 # remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional    
 *.* @syslogd.domain.com:514 

```

If your syslog serber is listening on tcp/514

```
 # remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional    
 *.* @@syslogd.domain.com:514 

```

Note that @@ will use tcp, while @ will use udp.

Add full to syslog:

edit the file:

`vi /etc/logrotate.d/syslog`

add:

`/var/log/asterisk/full`

Restart syslog service:

`service rsyslog restart`

Reload logger:

`asterisk -rx "logger reload"`

---

_[View the full topic](https://community.freepbx.org/t/is-it-possible-to-export-freepbx-logs-to-syslog/51676)._
