Asterisk Logfiles module

Lorne Gaetz

Lorne Gaetz

This blog post is courtesy of FreePBX community member Javier Pastor (VSC55). Javier lives in Spain and started working and contributing to FreePBX five years ago when he began updating the OSS endpointman module. After a few years of hiatus, he’s back working and contributing code to FreePBX modules again. He has recently added new functionality to the Asterisk Logfiles module and is joining us this month to tell us all about it. The English translation follows the Spanish below.

Esta actualización integral quiere sacar el máximo de las ultimas funciones de FreePBX 15 y además añadir unas cuantas funciones más, para obtener el máximo rendimiento.

 Estas serían las nuevas funciones que se han añadido al módulo:

Backup y Restaracion:

  • Se implementa el sistema de backup de freepbx para hacer copia de seguridad de nuestras configuraciones, y en caso de problema poder recuperarlas rápido y sin problemas.

AutoRrfres:

  • Se ha añadido un autorefes de los datos, por lo que si se añaden nuevas líneas al archivo log estas líneas se añadirán en la web, sin tener que hacer una nueva consulta y tener que volver a recargar toda la web. El funcionamiento sería similar al comando tail de Linux.

 Eliminar Log:

  • Se ha añadido un botón para poder eliminar logs antiguos desde la interfaz web sin tener que conectarnos al servidor.

 Descargar Log:

  • En ocasiones nos interesa descargar el archivo completo para un análisis posterior, por lo que se ha añadido un botón para poder descargar el log completo y no tener que conectar al servidor.

 Realce de texto:

  • Se ha añadido una opción para hacer un realce del texto que nosotros deseemos buscar, que se ejecuta en local en tiempo real sin recargar toda la web.

Desactivar archivos:

  • Hay ocasiones que deseamos desactivar un archivo log pero no nos interesa eliminarlo de la configuración, por ejemplo para debugear errores en momentos puntuales. Por eso esta función no permite desactivar y activar fácilmente los archivos log.

 Log Remoto:

  • En sistemas con múltiples servidores para una monitorización más cómoda nos interesa centralizar todo el sistema de logs en un servidor central de syslog. Con esta nueva opción podremos centralizar los mensajes de Asterisk en un servidor remoto.

 Algunas otras opciones añadidas son la de poder poner el log a pantalla completa, ver el numero de la línea del log o botón para copiar la línea directamente al portapapeles.

 

English translation

This comprehensive update takes full advantage of the latest FreePBX 15 features and also adds a few more features for maximum performance. This is the new functionality added to the module:

Backup and Restore:

  • The FreePBX backup system is implemented to back up our configurations so that in case of any issues, you are able to recover them quickly and without problems.

AutoRefresh:

  • An autorefresh of the data has been added so that if new lines are added to the log file,  these lines will be added on the webGUI without having to make a new query and then having to reload the entire webGUI. The operation is similar to the Linux tail command.

 Delete Log:

  • A button has been added to delete old logs from the web interface without having to connect to the server.

 Download Log:

  • Sometimes we are interested in downloading the entire file for later analysis, so a button has been added to being able to download the complete log without connecting to the server.

Text Highlighting:

  • An option has been added to highlight the text that we want to search for, running the command locally in real-time without reloading the entire web.

Disable Files:

  • On some occasions, we may want to deactivate a log file but we may not be interested in removing it from the configuration. For example, to debug errors at specific times. So this feature allows you to easily disable and enable log files.

Remote Log:

  • In systems with multiple servers where we want more comfortable monitoring, we would prefer to centralize the entire log system in a central syslog server. With this new option, we can centralize Asterisk messages on a remote server.

Other new options include being able to visualize the log in full screen, seeing the number of the log line, or having a button to copy the line directly to the clipboard.

Thank you!

 

 

Share this Blogpost

Start the Discussion

Sign up for our Newsletter

Scroll to Top