| 1 |
# |
| 2 |
# This file is used by the Asterisk debug tools. |
| 3 |
# Unlike other Asterisk config files, this one is |
| 4 |
# "sourced" by bash and must adhere to bash semantics. |
| 5 |
# |
| 6 |
|
| 7 |
# |
| 8 |
# The following settings are used by ast_coredumper |
| 9 |
# |
| 10 |
|
| 11 |
# COREDUMPS is a a list of coredumps and/or coredump |
| 12 |
# search patterns. |
| 13 |
# |
| 14 |
# Bash extended globs are enabled and any resulting files |
| 15 |
# that aren't actually coredumps are silently ignored |
| 16 |
# so you can be liberal with the globs. |
| 17 |
# |
| 18 |
# If your patterns contain spaces be sure to only quote |
| 19 |
# the portion of the pattern that DOESN'T contain wildcard |
| 20 |
# expressions. If you quote the whole pattern, it won't |
| 21 |
# be expanded and the glob characters will be treated as |
| 22 |
# literals. |
| 23 |
# |
| 24 |
# The exclusion of files ending ".txt" is just for |
| 25 |
# demonstration purposes as non-asterisk-coredumps will be |
| 26 |
# ignored anyway. |
| 27 |
COREDUMPS=( /tmp/core!(*.txt) ) |
| 28 |
|
| 29 |
# OUTPUTDIR is the directory to contain output files and |
| 30 |
# work directories. |
| 31 |
# For output from existing core files, the default is the |
| 32 |
# directory that the core file is found in. For core files |
| 33 |
# produced from a running process, the default is /tmp. |
| 34 |
OUTPUTDIR=/tmp |
| 35 |
|
| 36 |
# DATEOPTS is passed to the 'date' utility and is |
| 37 |
# used to set the timestamp used to create the |
| 38 |
# name of the output files and to rename the coredump. |
| 39 |
# |
| 40 |
# Beware of colons in the output as you can't upload |
| 41 |
# files with colons in the name to Jira. |
| 42 |
# The preferred timestamp format is readable GMT. |
| 43 |
# |
| 44 |
# Readable GMT |
| 45 |
DATEOPTS='-u +%FT%H-%M-%SZ' |
| 46 |
# |
| 47 |
# Unix timestamp |
| 48 |
#DATEOPTS='+%s.%N' |
| 49 |
# |
| 50 |
# Readable Local time |
| 51 |
#DATEOPTS='+%FT%H-%M-%S%z' |
| 52 |
|
| 53 |
# |
| 54 |
# The following settings are used by ast_loggrabber |
| 55 |
# |
| 56 |
|
| 57 |
# A list of log files and/or log file search patterns using the |
| 58 |
# same syntax as COREDUMPS. |
| 59 |
# |
| 60 |
LOGFILES=(/var/log/asterisk/messages* /var/log/asterisk/queue* \ |
| 61 |
/var/log/asterisk/debug* /var/log/asterisk/security*) |
| 62 |
|
| 63 |
# ast_loggrabber converts POSIX timestamps to readable format |
| 64 |
# using this Python strftime format string. If not specified |
| 65 |
# or an empty string, no format covnersion is done. |
| 66 |
LOG_DATEFORMAT="%m/%d-%H:%M:%S.%f" |
| 67 |
|
| 68 |
# The timezone to use when converting POSIX timestamps to |
| 69 |
# readable format. It can be specified in "<continent>/<city>" |
| 70 |
# format or in abbreviation format such as "CST6CDT". If not |
| 71 |
# specified, the "local" timezone is used. |
| 72 |
# LOG_TIMEZONE= |