Find all files with the extension ".log" in the current directory and its subdirectories, then search for the word "error" in the randomly chosen file from the list of files.
find . -type f -name "*.log" | xargs grep "error" $(shuf -e -n 1 * | xargs echo)