Grep vs cat the /var/log/pihole.log

I was just wondering what I might have done. For a long time I would grep the /var/log/pihole.log by ip but this showed up today. Any suggestions???
$ sudo grep '192.168.2.8' /home/test/pihole.log > a
$ sudo nano a
Binary file /var/log/pihole.log matches
$ cat -v /var/log/pihole.log | grep '192.168.2.8' > a
May 11 14:28:45 dnsmasq[483]: query[A] discourse.pi-hole.net from 192.168.2.8
May 11 14:28:45 dnsmasq[483]: query[A] dns.msftncsi.com from 192.168.2.8
May 11 14:28:55 dnsmasq[483]: query[A] client.wns.windows.com from 192.168.2.8
May 11 14:32:00 dnsmasq[483]: reply 192.168.2.8 is NXDOMAIN
May 11 14:33:04 dnsmasq[483]: query[A] tile-service.weather.microsoft.com from 192.168.2.8
May 11 14:33:08 dnsmasq[483]: query[A] livetileedge.dsx.mp.microsoft.com from 192.168.2.8

Is this the correct file, shouldn't it be /var/log/pihole.log ?

By the way, moved to Off topic as it has nothing to do with Pi-hole in my opinion.

Yes it is /var/log/pihole.log me bad. I've never posted anything before. How would I go about sending a question in the future to Off topic?
Thanks

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.