I'm having some difficulty coming up with correct syntax to pull in specific host information for my slow query log file:
I'm using the following:
sudo pt-query-digest mysql-slow.log --since "2017-05-07 22:00:00" --until "2017-05-08 22:00:00" --filter ‘$event->{host} !~ m/^ip-1-1-1-1/’ > slow.log
In this scenario I'm trying to exclude all IPs that are 1.1.1.1. I can't figure out what's wrong.
m/^1\.1\.1\.1$/
? – Skelp