Configuring days to archive indices using a configuration file

You can configure the number of days to purge Elasticsearch indices for an instance group that are configurable in the configuration file.

Procedure

  1. In a text editor, open the $EGO_CONFDIR/../../integration/elk/conf/indexcleanup/sym_explorer.conf configuration file.
  2. Locate the following index that you want to modify. The default value is 14 days:
    ibm-symphony-report-charge-back*
  3. Set the following index to the number of days you want to archive the index. For example, the following configuration modifies the index from the default 14 days to 31 days:
    ibm-symphony-report-charge-back* 31
    
  4. The change takes effect the next day when the purge interval happens. Or you can restart the elk-manager service to trigger the purge interval.