I want to retrieve all the .log files from the directory /var/log, store the results in a csv file along with each log file's respective file size in kB.
I started by getting the files using find:
find . -type f -name "*.log"
how to save them in the file?