You can use the grep command to search through all .log files for a specific domain name. Here’s how you can do it:

  1. First, navigate to the directory where your log files are stored. This is typically /var/log/, but it could be different on your system.
cd /var/log/
  1. Use the grep command to search through the .log files. Replace yourdomain.com with the domain name you’re looking for.
grep -r "yourdomain.com" *.log

This command will recursively search through all .log files in the current directory and its subdirectories for the specified domain name. If it finds a match, it will print the line containing the match to the terminal.

Please note that you might need to use sudo before the grep command if the log files require root permissions to read.