[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-users
Subject:    Re: [asterisk-users] Asterisk 13 logging to two places
From:       Dale Noll <dnoll () wi ! rr ! com>
Date:       2015-06-26 19:37:09
Message-ID: CANJF-FWcK0O67kv9FuFZZ+DcqAbXVSavYUtXTP0vRcNQc2vpZQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Fri, Jun 26, 2015 at 2:13 PM, Steve Edwards <asterisk.org@sedwards.com>
wrote:

> Please don't top-post.
>
>
Sorry, Gmail got me there.



> On Fri, 26 Jun 2015, Dale Noll wrote:
>
>  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
>

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.

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 26, \
2015 at 2:13 PM, Steve Edwards <span dir="ltr">&lt;<a \
href="mailto:asterisk.org@sedwards.com" \
target="_blank">asterisk.org@sedwards.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Please \
don&#39;t top-post.<span class=""><br> \
<br></span></blockquote><div><br></div><div>Sorry, Gmail got me \
there.</div><div><br></div><div>  </div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span \
class=""> On Fri, 26 Jun 2015, Dale Noll wrote:<br>
<br>
</span><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 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.<br> asterisk -rx \
&#39;logger show channels&#39;<br> Channel                                           \
                Type       Status      Configuration<br>
-------                                           ----       ------      \
                -------------<br>
/var/log/asterisk/full                     File       Enabled      - DEBUG NOTICE \
                WARNING ERROR VERBOSE DTMF FAX  <br>
/var/log/asterisk/messages               File       Enabled      - NOTICE WARNING \
ERROR  <br> <br>
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.<br> It may also be related to the \
verbose=3 in the asterisk.conf file.<br> I want to try to replicate it on a test \
system.<br> </blockquote>
<br></span>
Weird. I was expecting something like:<span class=""><br>
<br>
Channel                                            Type        Status      \
                Configuration<br>
-------                                            ----        ------      \
-------------<br></span> syslog.local0                                   Syslog     \
Enabled      - WARNING ERROR VERBOSE<br> <br>
This may be a bit off the wall, but any chance the script that starts Asterisk is \
piping to logger?<br> <br>
Does &#39;pidof logger&#39; show anything?<div class=""><div class="h5"><br>
<br>
-- <br>
Thanks in advance,<br>
-------------------------------------------------------------------------<br>
Steve Edwards           <a href="mailto:sedwards@sedwards.com" \
target="_blank">sedwards@sedwards.com</a>         Voice: <a \
href="tel:%2B1-760-468-3867" value="+17604683867" target="_blank">+1-760-468-3867</a> \
PST<br> Newline                                                                     \
Fax: <a href="tel:%2B1-760-731-3000" value="+17607313000" \
target="_blank">+1-760-731-3000</a></div></div><br>--<br> \
                _____________________________________________________________________<br>
                
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" \
rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br> New to \
                Asterisk? Join us for a live introductory webinar every Thurs:<br>
                       <a href="http://www.asterisk.org/hello" rel="noreferrer" \
target="_blank">http://www.asterisk.org/hello</a><br> <br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
     <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" \
rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div><div \
class="gmail_extra"><div class="gmail_extra">No, &#39;pidof logger&#39; returns \
nothing.</div><div><br></div></div><div class="gmail_extra">You may have a point \
about how it is being started however.</div><div class="gmail_extra">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.</div><div \
class="gmail_extra"><br></div></div>



-- 
_____________________________________________________________________
-- 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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic