Views:

The root cause is that the log index file is corrupted. The corruption is caused by unexpected shutdown. When this happens, the log index file cannot be recovered.

As a workaround, rebuild the index:

 
Rebuilding the index will show the new logs in the console. However, the old logs will be lost.
  1. Stop the CommonLog service using this command:

    /etc/iscan/S99ISCommonLog stop

  2. Back up the file /etc/iscan/commonlog_solr/solr/collection1/ and remove it.
  3. Run the following commands:

    rm -rf /etc/iscan/commonlog_solr/solr/collection1/

    cp -rf /etc/iscan/commonlog_solr/solr/collection0 /etc/iscan/commonlog_solr/solr/collection1

    chown -R iscan:iscan /etc/iscan/commonlog_solr/solr/collection1

  4. Start the CommonLog service.

    /etc/iscan/S99ISCommonLog start