I am trying to find out when some queries have been executed on our DB. For that I started looking in MySql binarylogs, using mysqlbinlog:
find -name "binlog.000056*" -exec mysqlbinlog {} \; | grep -i "update .* my_special_column=value"
The problem is that this way I cannot find out in which file it finds results, as grep gets the input from its input (through pipe) and not from a direct file.
I thought using tee, but did not succeed.
So the question: how to use find -exec mysqlbinlog... and grep, showing also the filename where grep finds the result?