Read log files from remote location in Linux

Hi,

I was trying to read log file using Logstash I couldn’t make it working. I have set up Logstash and application server in different Linux box.

I have configured something like this, can you please help me out figuring out the issue.

input {
file {
path => "//xx.x.xxx.xx/logs/app.log"
type => "log4j"
}
}

here xx.x.xxx.xx is the host of the application server which is different than Logstash server.

Hello,

The file input plugin does not support remote locations. If you want to retrieve log data from other servers you could use the beat input plugin, after setting up filebeat in the remote servers.

You can check filebeat documentation and the beats input documentation.

Cheers,

Thanks for the information.

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