Skip to Content
Switching to VoIP
book

Switching to VoIP

by Theodore Wallingford
June 2005
Intermediate to advanced
502 pages
21h 48m
English
O'Reilly Media, Inc.
Content preview from Switching to VoIP
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Intrusion Prevention and Monitoring
|
243
Project 10.4. Tune Up Asterisks Logging Conguration
What you need for this project:
Asterisk
Log analysis should be the core of your daily system monitoring and security activi-
ties. Like other softPBX servers, Asterisk supports flexible logging, providing several
levels of logging detail in several different files. It also supports using syslog.
By default, Asterisk stores its logs in /var/log/asterisk.
Configuration of Asterisk logging is done in the /etc/asterisk/logger.conf file, which
Asterisk reads at boot time or whenever it is started. The first section of the file is
[general], where you can assign a value to the dateformat option to specify what
date format to use in Asterisk’s logs. To figure out the syntax of the date formats,
read the manpage for
strftime( ) by running man strftime.
The next section,
[logfiles], describes which files should be used for logging out-
put, and how detailed each should be. The syntax for this section is:
filename => level,level,level...
Consider the following logging configuration:
[general]
[logfiles]
messages.log => notice,warning,error
debug.log => notice,warning,error,debug,verbose
In this example, messages.log will contain a digest version of Asterisk’s logging out-
put, while debug.log will get everything ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Voice over IP First-Step

Voice over IP First-Step

Kevin Wallace
Securing VoIP

Securing VoIP

Regis Jr (Bud) Bates
Low-cost Smart Antennas

Low-cost Smart Antennas

Qi Luo, Steven Shichang Gao, Chao Gu, Wei Liu

Publisher Resources

ISBN: 0596008686Catalog PageErrata