private void updateIndexName ( ) { this . logIndexName = this . logIndexPrefix + "_" + SIMPLE_DATE_FORMAT . format ( new Date ( ) ) ; try { addIndex ( logIndexName ) ; } catch ( IOException e ) { logger . error ( "Failed to update log index name: {}" , logIndexName , e ) ; } }
Roll the tasklog index daily .