?
Solved

how to view a full log in asterisk 1.6 and 1.8 ?

Posted on 2011-02-19
3
Medium Priority
?
849 Views
Last Modified: 2013-11-13
Hello, I am trying to set the logs in Asterisk so it saves everything, meaning, whatever I see in console mode also to be saved, right now within /var/log/asterisk/messages there are only warnings and some others, but not everything I see in the console, is there a way to do that?.

also a second part of this question would be, is there a way to make it delete everything older than XX amount of days? so it doesn't grow that much?.


thank you.
0
Comment
Question by:darwin_roach
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
darrickhartman earned 2000 total points
ID: 34940216
These are two separate issues.  One is handled by Asterisk, the other by logrotate.

First for Asterisk:

Edit /etc/asterisk/logger.conf

By default, only 'console' and syslog.local0 are uncommented.  If you want to increase the verbosity of the content sent to syslog, you'll need to change that line to include debug or verbose.  I would recommend against doing that.  Instead, use a separate log file.  Adding a line:

    full => notice,warning,error,debug,verbose

Will log as much information as possible to the file 'full' in the location specified in the 'astlogdir' variable which is set in /etc/asterisk.conf  (usually /var/log/asterisk/).


If you want this log to be rotated, you'll need to add an entry in /etc/logrotate.d

Create a file called "asterisk" with the following content:

/var/log/asterisk/full {
     missingok
     notifempty
     sharedscripts
}

Open in new window


0
 

Author Comment

by:darwin_roach
ID: 34943027
thank you... it worked as you described, thanks for the help...!
0
 

Author Closing Comment

by:darwin_roach
ID: 34943029
thanks
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Six Sigma Control Plans
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question