Message log in mysql

Hi there,

Is it possible to log asterisk messages (/var/log/asterisk/messages) into database?

I mean can we log asterisk logs into database? I need to filter log to make some firewall rules like fail2ban does. But i need something specific as per my need.

Can someone guide me that how we can read message log file via any script or log it into databsae.

Sohaib Khan

configure asterisk to log to syslog and use a syslog server that stores its data in your SQL server such as rsyslog.

oh great… do i need to configure syslog server separately? or it will work on same machine.

It can be on the same machine.