ast_debug_tools.conf.sample 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. # A list of coredumps and/or coredump search patterns.
  7. # Bash extended globs are enabled and any resulting files
  8. # that aren't actually coredumps are silently ignored
  9. # so you can be liberal with the globs.
  10. #
  11. # If your patterns contains spaces be sure to only quote
  12. # the portion of the pattern that DOESN'T contain wildcard
  13. # expressions. If you quote the whole pattern, it won't
  14. # be expanded and the glob characters will be treated as
  15. # literals.
  16. #
  17. # The exclusion of files ending ".txt" is just for
  18. # demonstration purposes as non-coredumps will be ignored
  19. # anyway.
  20. COREDUMPS=(/tmp/core[-._]asterisk!(*.txt) /tmp/core[-._]$(hostname)!(*.txt))
  21. # The directory to contain output files and work directories.
  22. # For output from existing core files, the default is the
  23. # directory that the core file is found in. For core files
  24. # produced from a running process, the default is /tmp.
  25. OUTPUTDIR=/tmp
  26. # Date command for the "running" coredump and tarballs.
  27. # DATEFORMAT will be executed to get the timestamp.
  28. # Don't put quotes around the format string or they'll be
  29. # treated as literal characters. Also be aware of colons
  30. # in the output as you can't upload files with colons in
  31. # the name to Jira.
  32. #
  33. # Unix timestamp
  34. #DATEFORMAT='date +%s.%N'
  35. #
  36. # Unix timestamp on *BSD/MacOS after installing coreutils
  37. #DATEFORMAT='gdate +%s.%N'
  38. #
  39. # Readable GMT
  40. #DATEFORMAT='date -u +%FT%H-%M-%S%z'
  41. #
  42. # Readable Local time
  43. DATEFORMAT='date +%FT%H-%M-%S%z'
  44. # A list of log files and/or log file search patterns using the
  45. # same syntax as COREDUMPS.
  46. #
  47. LOGFILES=(/var/log/asterisk/messages* /var/log/asterisk/queue* \
  48. /var/log/asterisk/debug* /var/log/asterisk/security*)
  49. # ast_loggrabber converts POSIX timestamps to readable format
  50. # using this Python strftime format string. If not specified
  51. # or an empty string, no format covnersion is done.
  52. LOG_DATEFORMAT="%m/%d-%H:%M:%S.%f"
  53. # The timezone to use when converting POSIX timestamps to
  54. # readable format. It can be specified in "<continent>/<city>"
  55. # format or in abbreviation format such as "CST6CDT". If not
  56. # specified, the "local" timezone is used.
  57. # LOG_TIMEZONE=