Customizing Log Rotation

You can customize the Big Data Service log rotation.

Note

Oozie job, job error, and job audit logs are rotated and retained for 10 days, instead of default 30 days.
  1. Access Apache Ambari.
  2. From the side toolbar, under Services select ODH Utilities.
  3. Select Configs.
  4. Select LOG SIZE CONFIG .
  5. Update required configurations values.
    Configuration Default Details
    Log: backup file size 100 MB Maximum file size for all components logs
    Log: No of backup files 10 Maximum number of files retained after rotation for all component service logs
    GC Log: backup file size 100 MB Maximum file size for all component .gc logs
    GC Log: No of backup files 10 Maximum number of files retained after rotation for components .gc logs
    Out/Err file: backup file size 100 MB Maximum file size for components out and error log
    Out/Err Files: No of backup files 10 Maximum number of files retained after rotation for components out and error logs
  6. Select Save.
  7. Select the Services '...' icon, and then select Restart all required.