# publish-db-events

This is a POC of how MySQL Data can be pushed up to a http endpoint.

##Requires:
https://github.com/mysqludf/lib_mysqludf_sys

For Centos based Mysql clients, modify the Makefile https://github.com/mysqludf/lib_mysqludf_sys/blob/master/Makefile to look like this:
```
LIBDIR=/usr/lib64/mysql/plugin
install:
  gcc -fPIC -Wall -I/usr/include/mysql -I. -shared lib_mysqludf_sys.c -o $(LIBDIR)/lib_mysqludf_sys.so
```

##Docker Setup:
LOGGLY_TOKEN environment variable needs to be set on the docker host. Then simply build and spawn a silex app:
```
docker-compose up
```
