diff options
author | George Joseph <gjoseph@digium.com> | 2017-01-13 10:03:15 -0700 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2017-01-20 11:21:47 -0600 |
commit | c628a7acacea0d519e0e5919a2a1db1ba5851ee0 (patch) | |
tree | e19cefc0b78700d34e35d371ab3cb6cde9d608c5 /configs/samples | |
parent | 473330983b47618772b1dd414df8e063e5da6a53 (diff) |
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 5fa1c56d7e76999aa14f133a33f6b168e7c3b99c)
Diffstat (limited to 'configs/samples')
-rw-r--r-- | configs/samples/ast_debug_tools.conf.sample | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configs/samples/ast_debug_tools.conf.sample b/configs/samples/ast_debug_tools.conf.sample index 90e976f1b..f26626b20 100644 --- a/configs/samples/ast_debug_tools.conf.sample +++ b/configs/samples/ast_debug_tools.conf.sample @@ -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= |