Using the curator.sh File
Use the curator.sh file to delete indices that are seven days or
older. Installing the
discoverELKIntegration-nn.nn.n-1.el8.x86_64.rpm
file also installs the curator.sh file. In the
discoverELKIntegration-nn.nn.n-1.el8.x86_64.rpm
file, nn.n.n represents the Unica Discover version. For example,
12.1.3
.
Before you begin
About this task
Procedure
-
By default, a cron job runs daily at
5:00 am
to check for indices that are seven days old. If the cron job finds such indices, it deletes them. -
You can customize the number of days, from seven days, to a frequency of your
choice. To customize the frequency, complete the following steps:
- Navigate to /root/.curator.
- Open the action.yml file.
-
Edit the
unit_count
field to a frequency of your choice. The frequency has to be days. For example, you can change the default7
to a lesser value like5
or a higher value like14
.
-
You can also customize the logfile verbosity. You can set it to
INFO
orDEBUG
. To customize the logfile verbosity, complete the following steps:- Navigate to /root/.curator.
- Open the curator.yml file.
-
In the
logging:
section, change the value ofloglevel
toINFO
orDEBUG
. -
The
logfile
parameter indicates where the generated log file will be saved. For example, /tmp/DC_ELKINTG_Curator.log. It logs the information about the deleted indices.