Change where logs are stored

I ran into an issue where logs are logging to the / and not the /data
partition we setup for storing logs.
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 24G 19G 4.1G 83% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/vdb1 99G 60M 94G 1% /data

This is probably an easy question for some, so hopefully I can get a reply
quickly. How do I save the incoming logs from logstash and store them on
the /data partition? I have tried making a change in the elasticsearch.yml
to make the path.logs point to the /data partition however elasticsearch
did not work correctly after.

[root@syslog1 elasticsearch]# cat /etc/elasticsearch/elasticsearch.yml /etc/elasticsearch /etc/elasticsearch
path.logs: /var/log/elasticsearch/logs

path.logs: /data/elasticsearch/logs

path.conf: /etc/elasticsearch

Any advice is appreciated.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit

The path.logs set the location in which the elasticsearch application logs will be stored at.
For setting where the logstash events will go to (index data), you need to set the
i.e: /data

Hope that helps.