Step1: Login to the cPanel account.
Step2: Click on cPanel > Metrics section > Raw Access menu.
Step3: In the Configure Logs section, you can set up cPanel to automatically archive and remove the logs and click on Save.
Step4: The Download Current Raw Access Logs option allows downloading the corresponding log for certain domains.
Step 5: To download the archived log file, simply click on the domain.