centos – How do I view contents of log files that is too large?

I’ve a huge log file. Worth 403MB.

df -h

command shows that only 8% free space in /home

free -mh

command shows that only 474MB is free and 658MB is available.

How do i view the logs?

I tried.

grep -A500 'string_to_search' application.log_2023-07-13>/tmp/testError.txt

It showed

Binary file application.log_2023-07-13 matches

I tried other variants of grep command as well and they all showed the same output.

How do I view this log file without adding extra hardware and preferably by not deleting extra files.

Read more here: Source link