VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
TPeters at mcts.org Guest
|
Posted: Fri Jun 26, 2015 11:51 am Post subject: [asterisk-users] Asterisk 13 logging to two places |
|
|
Switched from Asterisk 1.8 to 13.3.2. Now it logs to /var/log/asterisk/full (good) as well as /var/log/messages (not good). Anyone know why?
# grep -v "^;" logger.conf
[general]
[logfiles]
console => notice,warning,error
messages => error
full => notice,warning,error,debug,verbose,dtmf,fax
Thankfully, the .../full logs are rotating properly now (thanks Dale) but we don't need both files cluttered up. We use /var/log/asterisk/full pretty extensively for troubleshooting, but I want /var/log/messages for other stuff. Didn't do this under the old version.
Any other files you want to see?
Running on CentOS release 7.1.1503
Thomas M. Peters | Systems Administrator | tpeters@mcts.org
Desk: 414.343.1720 | Helpdesk: x3400 or helpdesk@mcts.org
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
tiago.geada at gmail.com Guest
|
Posted: Fri Jun 26, 2015 12:07 pm Post subject: [asterisk-users] Asterisk 13 logging to two places |
|
|
messages => error
states to log error messages to 'messages' log file
On 26 June 2015 at 17:50, Tom Peters <TPeters@mcts.org (TPeters@mcts.org)> wrote:
Quote: | Switched from Asterisk 1.8 to 13.3.2. Now it logs to /var/log/asterisk/full (good) as well as /var/log/messages (not good). Anyone know why?
# grep -v "^;" logger.conf
[general]
[logfiles]
console => notice,warning,error
messages => error
full => notice,warning,error,debug,verbose,dtmf,fax
Thankfully, the .../full logs are rotating properly now (thanks Dale) but we don't need both files cluttered up. We use /var/log/asterisk/full pretty extensively for troubleshooting, but I want /var/log/messages for other stuff. Didn't do this under the old version.
Any other files you want to see?
Running on CentOS release 7.1.1503
Thomas M. Peters | Systems Administrator | tpeters@mcts.org (tpeters@mcts.org)
Desk: 414.343.1720 | Helpdesk: x3400 or helpdesk@mcts.org (helpdesk@mcts.org)
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
|
|
Back to top |
|
|
TPeters at mcts.org Guest
|
Posted: Fri Jun 26, 2015 12:15 pm Post subject: [asterisk-users] Asterisk 13 logging to two places |
|
|
Ok, commented out that line. It's still doing it. Reloaded dialplan. Please don't tell me I have to restart asterisk.
Thomas M. Peters | Systems Administrator | tpeters@mcts.org
Desk: 414.343.1720 | Helpdesk: x3400 or helpdesk@mcts.org
Quote: | Quote: | Quote: | Tiago Geada <tiago.geada@gmail.com> 6/26/2015 12:07 PM >>>
|
|
| messages => error
states to log error messages to 'messages' log file
On 26 June 2015 at 17:50, Tom Peters <TPeters@mcts.org> wrote:
Quote: | Switched from Asterisk 1.8 to 13.3.2. Now it logs to
/var/log/asterisk/full (good) as well as /var/log/messages (not good).
Anyone know why?
# grep -v "^;" logger.conf
[general]
[logfiles]
console => notice,warning,error
messages => error
full => notice,warning,error,debug,verbose,dtmf,fax
Thankfully, the .../full logs are rotating properly now (thanks Dale) but
we don't need both files cluttered up. We use /var/log/asterisk/full pretty
extensively for troubleshooting, but I want /var/log/messages for other
stuff. Didn't do this under the old version.
Any other files you want to see?
Running on CentOS release 7.1.1503
Thomas M. Peters | Systems Administrator | tpeters@mcts.org
Desk: 414.343.1720 | Helpdesk: x3400 or helpdesk@mcts.org
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
cursor at telecomabmex... Guest
|
Posted: Fri Jun 26, 2015 12:58 pm Post subject: [asterisk-users] Asterisk 13 logging to two places |
|
|
On 2015-06-26 12:14, Tom Peters wrote:
Quote: | Ok, commented out that line. It's still doing it. Reloaded dialplan.
Please don't tell me I have to restart asterisk.
|
asterisk -rx "logger reload"
--
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
dCAP #1349
+52 (55)9116-91161
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
TPeters at mcts.org Guest
|
Posted: Fri Jun 26, 2015 1:15 pm Post subject: [asterisk-users] Asterisk 13 logging to two places |
|
|
Still doing it. And the messages in there (/var/log/messages) are not
just errors. They look a lot like the verbose log entries I'm seeing in
/var/log/asterisk/full
Recall that my original logger.conf had
messages => error
in it.
Jun 22 03:23:39 deneb asterisk: [Jun 22 03:23:39] -- Called
IAX2/incoming2fdapbx:sgsdfgsdgsdfg@xd-apbx.mcts.org/5263
Jun 22 03:23:39 deneb asterisk: [Jun 22 03:23:39] -- Call accepted
by 192.168.2.210:4569 (format ulaw)
Jun 22 03:23:39 deneb asterisk: [Jun 22 03:23:39] -- Format for
call is (ulaw)
Jun 22 03:23:39 deneb asterisk: [Jun 22 03:23:39] --
IAX2/192.168.2.210:4569-14947 is ringing
Jun 22 03:23:46 deneb asterisk: [Jun 22 03:23:46] --
IAX2/192.168.2.210:4569-14947 answered DAHDI/i1/4148034154-fde
Jun 22 03:23:46 deneb asterisk: [Jun 22 03:23:46] -- Channel
DAHDI/i1/4148034154-fde joined 'simple_bridge' basic-bridge
<afdasfsgsdfsdf>
Jun 22 03:23:46 deneb asterisk: [Jun 22 03:23:46] -- Channel
IAX2/192.168.2.210:4569-14947 joined 'simple_bridge' basic-bridge
<sdfsfsdfsdfsdf>
Jun 22 03:24:22 deneb asterisk: [Jun 22 03:24:22] -- Span 1:
Channel 0/1 got hangup request, cause 16
Jun 22 03:24:22 deneb asterisk: [Jun 22 03:24:22] -- Channel
DAHDI/i1/4148034154-fde left 'simple_bridge' basic-bridge
<sdfsdfsdfsdfsdf>
Jun 22 03:24:22 deneb asterisk: [Jun 22 03:24:22] -- Channel
IAX2/192.168.2.210:4569-14947 left 'simple_bridge' basic-bridge
<sddsdfsdfsdfsd>
Jun 22 03:24:22 deneb asterisk: [Jun 22 03:24:22] == Spawn extension
(to-internal, 5263, 5) exited non-zero on 'DAHDI/i1/4148034154-fde'
Jun 22 03:24:22 deneb asterisk: [Jun 22 03:24:22] -- Executing
[h@to-internal:1] NoOp("DAHDI/i1/4148034154-fde", "Hangup") in new
stack
Jun 22 03:24:22 deneb asterisk: [Jun 22 03:24:22] -- Hungup
'IAX2/192.168.2.210:4569-14947'
Jun 22 03:24:22 deneb asterisk: [Jun 22 03:24:22] -- Hungup
'DAHDI/i1/4148034154-fde'
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Accepting call
from '4472977992' to '3446711' on channel 0/4, span 2
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Executing
[3446711@from-pstn:1] NoOp("DAHDI/i2/8472977992-5f4c", "Seven digits:
3446711") in new stack
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Executing
[3446711@from-pstn:2] GotoIf("DAHDI/i2/8472977992-5f4c",
"0?local-overrides,4143446711,1") in new stack
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Executing
[3446711@from-pstn:3] Goto("DAHDI/i2/8472977992-5f4c", "4143446711,1")
in new stack
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Goto
(from-pstn,4143446711,1)
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Executing
[4143446711@from-pstn:1] NoOp("DAHDI/i2/8472977992-5f4c", "IVR call") in
new stack
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Executing
[4143446711@from-pstn:2] Set("DAHDI/i2/8472977992-5f4c",
"GROUP()=INBOUND") in new stack
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Executing
[4143446711@from-pstn:3] Answer("DAHDI/i2/8472977992-5f4c", "") in new
stack
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Executing
[4143446711@from-pstn:4] Wait("DAHDI/i2/8472977992-5f4c", "") in new
stack
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Executing
[4143446711@from-pstn:5] Set("DAHDI/i2/8472977992-5f4c", "IVRTrunk=") in
new stack
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Executing
[4143446711@from-pstn:6] GotoIf("DAHDI/i2/8472977992-5f4c",
"1?secondary") in new stack
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Goto
(from-pstn,4143446711,
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Executing
[4143446711@from-pstn:8] Set("DAHDI/i2/8472977992-5f4c",
"IVRTrunk=SIP/sipivr:1NA6oZjTg1rjhZN8lArDgzLI7z8V2fxV@desann-voip.mcts.org")
in new stack
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Executing
[4143446711@from-pstn:9] GotoIf("DAHDI/i2/8472977992-5f4c",
"0?tertiary") in new
stack
Jun 22 03:29:26 deneb asterisk: [Jun 22 03:29:26] -- Executing
[4143446711@from-pstn:10] Dial("DAHDI/i2/8472977992-5f4c", "
Thomas M. Peters | Systems Administrator | tpeters@mcts.org
Desk: 414.343.1720 | Helpdesk: x3400 or helpdesk@mcts.org
Quote: | Quote: | Quote: | Carlos Chavez <cursor@telecomabmex.com> 6/26/2015 12:58 PM >>>
|
|
| On 2015-06-26 12:14, Tom Peters wrote:
Quote: | Ok, commented out that line. It's still doing it. Reloaded dialplan.
Please don't tell me I have to restart asterisk.
|
asterisk -rx "logger reload"
--
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
dCAP #1349
+52 (55)9116-91161
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
dnoll at wi.rr.com Guest
|
Posted: Fri Jun 26, 2015 1:19 pm Post subject: [asterisk-users] Asterisk 13 logging to two places |
|
|
The line you commented out was writing errors to /var/log/asterisk/messages
The problem you are having is the logging to /var/log/messages via syslog. It appears that Asterisk is sending verbose logging out to syslog even though logger.conf does not have syslog configured. I am not sure why Asterisk is doing that, and I do not want to play on a production system.
I added a filter to the /etc/rsyslog.conf file
:syslogtag, contains, "asterisk" stop
Syslog is still receiving the messages, but is discarding them.
Dale
On Fri, Jun 26, 2015 at 12:14 PM, Tom Peters <TPeters@mcts.org (TPeters@mcts.org)> wrote:
Quote: | Ok, commented out that line. It's still doing it. Reloaded dialplan. Please don't tell me I have to restart asterisk.
Thomas M. Peters | Systems Administrator | tpeters@mcts.org (tpeters@mcts.org)
Desk: helpdesk@mcts.org (helpdesk@mcts.org)
messages => error
states to log error messages to 'messages' log file
On 26 June 2015 at 17:50, Tom Peters <TPeters@mcts.org (TPeters@mcts.org)> wrote:
Quote: | Switched from Asterisk 1.8 to 13.3.2. Now it logs to
/var/log/asterisk/full (good) as well as /var/log/messages (not good).
Anyone know why?
# grep -v "^;" logger.conf
[general]
[logfiles]
console => notice,warning,error
messages => error
full => notice,warning,error,debug,verbose,dtmf,fax
Thankfully, the .../full logs are rotating properly now (thanks Dale) but
we don't need both files cluttered up. We use /var/log/asterisk/full pretty
extensively for troubleshooting, but I want /var/log/messages for other
stuff. Didn't do this under the old version.
Any other files you want to see?
Running on CentOS release 7.1.1503
Thomas M. Peters | Systems Administrator | tpeters@mcts.org (tpeters@mcts.org)
Desk: helpdesk@mcts.org (helpdesk@mcts.org)
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
|
|
Back to top |
|
|
asterisk.org at sedwar... Guest
|
Posted: Fri Jun 26, 2015 1:43 pm Post subject: [asterisk-users] Asterisk 13 logging to two places |
|
|
On Fri, 26 Jun 2015, Dale Noll wrote:
Quote: | I added a filter to the /etc/rsyslog.conf file
:syslogtag, contains, "asterisk" stop
Syslog is still receiving the messages, but is discarding them.
|
Nice to learn a new (to me) feature of rsyslog.
What does 'logger show channels' show?
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
dnoll at wi.rr.com Guest
|
Posted: Fri Jun 26, 2015 1:52 pm Post subject: [asterisk-users] Asterisk 13 logging to two places |
|
|
I turned on the messages that he had in the file again, all the logs were in /var/log/asterisk and it does not show anything for syslog.
asterisk -rx 'logger show channels'
Channel Type Status Configuration
------- ---- ------ -------------
/var/log/asterisk/full File Enabled - DEBUG NOTICE WARNING ERROR VERBOSE DTMF FAX
/var/log/asterisk/messages File Enabled - NOTICE WARNING ERROR
I wonder if there is a weird parsing error in the logger.conf file that is causing it to verbose log, but I will need to do more testing.
It may also be related to the verbose=3 in the asterisk.conf file.
I want to try to replicate it on a test system.
On Fri, Jun 26, 2015 at 1:42 PM, Steve Edwards <asterisk.org@sedwards.com (asterisk.org@sedwards.com)> wrote:
Quote: | On Fri, 26 Jun 2015, Dale Noll wrote:
Quote: | I added a filter to the /etc/rsyslog.conf file
:syslogtag, contains, "asterisk" stop
Syslog is still receiving the messages, but is discarding them.
|
Nice to learn a new (to me) feature of rsyslog.
What does 'logger show channels' show?
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com (sedwards@sedwards.com) Voice: [url=tel:%2B1-760-468-3867]+1-760-468-3867[/url] PST
Newline Fax: [url=tel:%2B1-760-731-3000]+1-760-731-3000[/url]
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
|
|
Back to top |
|
|
asterisk.org at sedwar... Guest
|
Posted: Fri Jun 26, 2015 2:14 pm Post subject: [asterisk-users] Asterisk 13 logging to two places |
|
|
Please don't top-post.
On Fri, 26 Jun 2015, Dale Noll wrote:
Quote: | I turned on the messages that he had in the file again, all the logs were in /var/log/asterisk and it does not show anything for syslog.
asterisk -rx 'logger show channels'
Channel Type Status Configuration
------- ---- ------ -------------
/var/log/asterisk/full File Enabled - DEBUG NOTICE WARNING ERROR VERBOSE DTMF FAX
/var/log/asterisk/messages File Enabled - NOTICE WARNING ERROR
I wonder if there is a weird parsing error in the logger.conf file that is causing it to verbose log, but I will need to do more testing.
It may also be related to the verbose=3 in the asterisk.conf file.
I want to try to replicate it on a test system.
|
Weird. I was expecting something like:
Channel Type Status Configuration
------- ---- ------ -------------
syslog.local0 Syslog Enabled - WARNING ERROR VERBOSE
This may be a bit off the wall, but any chance the script that starts
Asterisk is piping to logger?
Does 'pidof logger' show anything?
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
dnoll at wi.rr.com Guest
|
Posted: Fri Jun 26, 2015 2:37 pm Post subject: [asterisk-users] Asterisk 13 logging to two places |
|
|
On Fri, Jun 26, 2015 at 2:13 PM, Steve Edwards <asterisk.org@sedwards.com (asterisk.org@sedwards.com)> wrote:
Quote: | Please don't top-post.
|
Sorry, Gmail got me there.
Quote: | On Fri, 26 Jun 2015, Dale Noll wrote:
Quote: | I turned on the messages that he had in the file again, all the logs were in /var/log/asterisk and it does not show anything for syslog.
asterisk -rx 'logger show channels'
Channel Type Status Configuration
------- ---- ------ -------------
/var/log/asterisk/full File Enabled - DEBUG NOTICE WARNING ERROR VERBOSE DTMF FAX
/var/log/asterisk/messages File Enabled - NOTICE WARNING ERROR
I wonder if there is a weird parsing error in the logger.conf file that is causing it to verbose log, but I will need to do more testing.
It may also be related to the verbose=3 in the asterisk.conf file.
I want to try to replicate it on a test system.
|
Weird. I was expecting something like:
Channel Type Status Configuration
------- ---- ------ -------------
syslog.local0 Syslog Enabled - WARNING ERROR VERBOSE
This may be a bit off the wall, but any chance the script that starts Asterisk is piping to logger?
Does 'pidof logger' show anything?
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com (sedwards@sedwards.com) Voice: [url=tel:%2B1-760-468-3867]+1-760-468-3867[/url] PST
Newline Fax: [url=tel:%2B1-760-731-3000]+1-760-731-3000[/url]
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
No, 'pidof logger' returns nothing.
You may have a point about how it is being started however.
This is CentOS 7 and Asterisk is being started by systemd. I am not sure I get along with systemd yet, so perhaps it is doing something with syslog that I am unaware of. |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|