mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
debug_utilities: Create ast_loggrabber
ast_loggrabber gathers log files from customizable search patterns,
optionally converts POSIX timestamps to a readable format and
tarballs the results.
Also a few tweaks were made to ast_coredumper.
Change-Id: I8bfe1468ada24c1344ce4abab7b002a59a659495
(cherry picked from commit 5fa1c56d7e
)
This commit is contained in:
committed by
Kevin Harwell
parent
473330983b
commit
c628a7acac
@@ -38,3 +38,20 @@ COREDUMPS=(/tmp/core[-._]asterisk!(*.txt) /tmp/core[-._]$(hostname)!(*.txt))
|
||||
#
|
||||
# Readable Local time
|
||||
DATEFORMAT='date +%FT%H-%M-%S%z'
|
||||
|
||||
# A list of log files and/or log file search patterns using the
|
||||
# same syntax as COREDUMPS.
|
||||
#
|
||||
LOGFILES=(/var/log/asterisk/messages* /var/log/asterisk/queue* \
|
||||
/var/log/asterisk/debug* /var/log/asterisk/security*)
|
||||
|
||||
# ast_loggrabber converts POSIX timestamps to readable format
|
||||
# using this Python strftime format string. If not specified
|
||||
# or an empty string, no format covnersion is done.
|
||||
LOG_DATEFORMAT="%m/%d-%H:%M:%S.%f"
|
||||
|
||||
# The timezone to use when converting POSIX timestamps to
|
||||
# readable format. It can be specified in "<continent>/<city>"
|
||||
# format or in abbreviation format such as "CST6CDT". If not
|
||||
# specified, the "local" timezone is used.
|
||||
# LOG_TIMEZONE=
|
||||
|
Reference in New Issue
Block a user