Export Asterisk logs to Syslog?

Is it possible for this log data to be sent to Syslog
I’m able to see monitor the log stream via asterisk -r
I’m assuming it’s being logged somewhere. It would useful if it could be sent to syslog so we can get automated alerts.

[2022-08-22 10:39:35] NOTICE[2753]: chan_dahdi.c:2777 my_handle_dchan_exception: Got DAHDI event: HDLC Abort (6) on D-channel of span 1

[2022-08-22 10:39:35] NOTICE[2753]: chan_dahdi.c:2777 my_handle_dchan_exception: Got DAHDI event: HDLC Abort (6) on D-channel of span 1

[2022-08-22 10:39:42] WARNING[2755]: chan_dahdi.c:7344 handle_alarms: Detected alarm on channel 1: Red Alarm

[2022-08-22 10:39:42] NOTICE[2753]: chan_dahdi.c:2777 my_handle_dchan_exception: Got DAHDI event: Alarm (4) on D-channel of span 1

[2022-08-22 10:39:42] WARNING[2755]: chan_dahdi.c:7344 handle_alarms: Detected alarm on channel 2: Red Alarm

[2022-08-22 10:39:42] WARNING[2755]: chan_dahdi.c:7344 handle_alarms: Detected alarm on channel 3: Red Alarm

It is being logged to various files in /var/log/asterisk, as configured using the logfile settings module:

https://wiki.freepbx.org/display/FPG/Asterisk+Logfile+Settings

Asterisk can use syslog as a log file, but as of the time FreePBX was documented, it didn’t seem to be supported by the GUI. You may find your settings module has more options.

Settings → Asterisk Logfile Settings

You can define a row in the format of syslog.facility; e.g., syslog.local0 .

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