Created 03-16-2017 10:10 AM
Hi All,
HDFS Audit logs size have become huge since recent past days, on weekends /root was completely occupied, upon checking largest files in /root it was hdfs.audit.log file which were sizing between 300 MB to 9.9 GB. When I checked file sizes from Oldest to Newest, oldest were 300 MB- 500MB sized, the Newest which are from last 6 days were sizing between 1.9 GB to 9.9 GB! Are there any particular reason for huge space occupancy all of a sudden?
Ps: We have not installed Ranger, KNOX, SOLR and ATLAS.
Created on 03-16-2017 06:20 PM - last edited on 07-08-2024 05:30 AM by cjervis
You should use the following properties of the RollingFileAppender to efficiently control the Size and the number of backup index of old log files:
maxFileSize:This is the critical size of the file above which the file will be rolled. Default value is 10 MB.
maxBackupIndex: This property denotes the number of backup files to be created. Default value is 1.
More details in :
Created on 03-16-2017 06:20 PM - last edited on 07-08-2024 05:30 AM by cjervis
You should use the following properties of the RollingFileAppender to efficiently control the Size and the number of backup index of old log files:
maxFileSize:This is the critical size of the file above which the file will be rolled. Default value is 10 MB.
maxBackupIndex: This property denotes the number of backup files to be created. Default value is 1.
More details in :
Created on 03-16-2017 06:22 PM - last edited on 07-08-2024 05:31 AM by cjervis
This posts also explains similar issue:
Created 03-20-2017 10:24 AM
Thanks Namit, this worked for me on my Dev Environment. Will try on next Change on Prod too. Thanks.