[asterisk-bugs] [JIRA] (ASTERISK-25407) Asterisk fails to log to multiple syslog destinations

Asterisk Team (JIRA) noreply at issues.asterisk.org
Sun Sep 20 23:10:33 CDT 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=227626#comment-227626 ] 

Asterisk Team commented on ASTERISK-25407:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

> Asterisk fails to log to multiple syslog destinations
> -----------------------------------------------------
>
>                 Key: ASTERISK-25407
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25407
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Logging
>    Affects Versions: SVN
>         Environment: Slackware Linux x86-64
>            Reporter: Elazar Broad
>            Severity: Minor
>
> When configuring more than one syslog destinations in logger.conf, Asterisk will only log to the last one in the configuration. For example:
> syslog.local1 => error, warning, notice
> syslog.local2 => security
> Everything is logged to local2.
> This is due to the fact that the final call to openlog() in make_log_channel() supersedes the previous calls. My humble suggestion would be to eliminate the openlog() call, as the syslog() call in ast_log_vsyslog() will open the log as needed; pass the channel facility to ast_log_vsyslog() and use the LOG_MAKEPRI macro to ensure the message is sent to the correct facility. I have tested this successfully on my system and will post a patch to reviewboard in the morning.
> Thanks,
>  Elazar



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list