Symbolic Link File on Linux not working as Logstash File Input

Hi, I am currently running a logstash in docker which use file as an input, and output to a elastic search; configuration as below:

input {
  file {
	path => "/data/log/sandbox/primary/logic/logic-data/logic-data_current"
	#path => "/data/log/sandbox/primary/logic/logic-data/logic-data-2018-12-24_00000"

path /data/log/sandbox/primary/logic/logic-data/logic-data_current -> symbolic link to logic-data-2018-12-24_00000:

lrwxrwxrwx 1 root root 27 Dec 25 16:15 /data/log/sandbox/primary/logic/logic-data/logic-data_current -> logic-data-2018-12-26_00000

Logstash only sends log when path is set to real file /data/log/sandbox/primary/logic/logic-data/logic-data-2018-12-24_00000, while stopped when path set to a sym link file/data/log/sandbox/primary/logic/logic-data/logic-data_current

Could somehow let logstash work with symbolic link file as well? Thanks

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