Path.data: /var/lib/logstash

Hi,

[root@frghcslnetv10 elasticsearch]# df -kh
Filesystem                         Size  Used Avail Use% Mounted on
/dev/mapper/cl_frghcslnetv10-root   22G   16G  6.1G  72% /
devtmpfs                           3.9G     0  3.9G   0% /dev
tmpfs                              3.9G     0  3.9G   0% /dev/shm
tmpfs                              3.9G  367M  3.5G  10% /run
tmpfs                              3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda1                         1014M  188M  827M  19% /boot
/dev/mapper/datavg-datalv          195G   15G  181G   8% /data
tmpfs                              781M     0  781M   0% /run/user/0

Please can someone tell me if I can change the path : path.data: /var/lib/logstash

and make it in /data ??

Sure, you can do that. I suggest you

  • shut down Logstash,
  • copy the contents of /var/lib/logstash into the new location,
  • verify that file ownership and permissions of the new directory and the copied files matches the previous location,
  • change logstash.yml to point to the new path, and
  • start Logstash again.

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