Got my answer from reading the sourcecode..
https://github.com/mariadb-corporation/MaxScale/blob/2.1/server/modules/filter/qlafilter/qlafilter.c

I must set flush=true

Was also in the documentation but I missed it.



kind regards
--
Atif Ghaffar


On Tue, Jun 6, 2017 at 4:38 PM, Atif Ghaffar <atif.ghaffar@gmail.com> wrote:
Hi all,

I have setup a maxscale instance to proxy to the local mysql server running on a different port.
All this is working fine.

I have also setup a filter to catch deletes on a single table.

I can see the deletes in the filter but only when I restart maxscale service.

Is there something that I can set so that the log is flushed immediately to the flle.


The filter definition is the following

[WaCountriesDomainsDeleteFilter]
type=filter
module=qlafilter
options=ignorecase,extended
filebase=/tmp/maxscale.wa_countries_domains.delete
match=DELETE.*wa_countries_domains.*
log_type=unified
append=true



kind regards
--
Atif Ghaffar