Disk space /var

Hi,

The var folder is full ELK server. fully indices and please tell a method to remove it

/dev/sda1 950M 181M 770M 19% /boot
/dev/mapper/rhel_-var 187G 174G 13G 94% /var
tmpfs 3.2G 0 3.2G 0% /run/user/0
[root@test /var/lib/elasticsearch/nodes/0/indices]# pwd
/var/lib/elasticsearch/nodes/0/indices
[root@test/var/lib/elasticsearch/nodes/0/indices]# cd ..
[root@test /var/lib/elasticsearch/nodes/0]# du -sh *
160G indices
0 node.lock
64K _state

[root@test /var/lib/elasticsearch/nodes/0]# cd indices/
[root@test /var/lib/elasticsearch/nodes/0/indices]# ls -l
total 0
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:01 0A4uez4xRTuoaYUd6POzPQ
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:02 0bpeo8rNQHS9nWFwoZBw_w
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:02 0HJl627SQfeSm500PBaArQ
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:01 0Il9IXh2QQ673rlFnnmbWw
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:01 0_IotDmrTJGRKFp6Em0i4g
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:02 0LSCvgsxQY-sbdDfElHiIw
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:02 0qDtei2ZRi-rsdDmNz3WHA
drwxr-xr-x 8 elasticsearch elasticsearch 59 Sep 10 08:02 0RIug2vcSSW7XWl424wtHA

You need to use the Elasticsearch APIs to delete indices you no longer want.

Thanks Warklom

curl -XGET http://localhost:9200/_cat/indices?v
curl -XDELETE http://localhost:9200/logstash-date

This two commands helped me to remove the indices

REgards
Nandh

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.