Page 1 of 1

LS Does not delete the index (maintenance)

Posted: Tue Feb 18, 2020 11:06 am
by alopera
I set un maintenance

Delete index older than 21 days

But the index are not deleted.

I can delete manually

Re: LS Does not delete the index (maintenance)

Posted: Tue Feb 18, 2020 11:07 am
by alopera
Snapshot_maintenance Job is SUCCESFULL
Is executed everyday

Re: LS Does not delete the index (maintenance)

Posted: Tue Feb 18, 2020 5:34 pm
by cdienger
Run this command on the NLS command line:

Code: Select all

tail -f /usr/local/nagioslogserver/var/jobs.log
and then while that is left running, manually run the snapshots_maintenance job under Admin > System > Command Subsystem. It may take a moment or two, but eventually you should see content in the jobs.log regarding the job. If you don't see anything after a minute, try running the job again from the XI interface.

Re: LS Does not delete the index (maintenance)

Posted: Wed Feb 19, 2020 4:40 am
by alopera
LS is 2.0.8

The output is

Running command do_maintenance with args ' ' for job id: snapshot_maintenance
Tracebook (most recent call last):
File "/usr/bin/curator", line 7 in <module>
Import Error: No module name curator.curator
-----
Running cmd: /usr/local/nagioslogserver/scripts/curator.sh optime indices --older-than 2 -- time-unit days --timestring %Y.%m.%d
Return 1

-----
Tracebook (most recent call last):
File "/usr/bin/curator", line 7 in <module>
Import Error: No module name curator.curator
-----
Running cmd: /usr/local/nagioslogserver/scripts/curator.sh close indices --older-than 15 -- time-unit days --timestring %Y.%m.%d
Return 1

-----
Tracebook (most recent call last):
File "/usr/bin/curator", line 7 in <module>
Import Error: No module name curator.curator
-----
Running cmd: /usr/local/nagioslogserver/scripts/curator.sh delete indices --older-than 21 -- time-unit days --timestring %Y.%m.%d
Return 1

-----
SUCCESS
Running command run_alerts with args ' ' for job id: run_all_alerts
SUCCESS

Re: LS Does not delete the index (maintenance)

Posted: Wed Feb 19, 2020 1:23 pm
by cdienger
It appears that /usr/lib/python2.7/site-packages/ is missing from the system. Can you verify if you see it there or not? If you don't see it then try installing it with:
pip install elasticsearch-curator-3.4.0