Logstash Configuration - filepath from remote machine

Hi @Sunillinus,

Please follow the given steps to transfer logs to elastic search:-

  1. Refer to the link:- Logstash(5.4.3) fails to transfer logs even when logstash starts as a service
  2. Use the below logstash.conf file for sending logs from logstash to elasticsearch
    input {
    file {
    path => [ "/var/log/.log", "/var/log/messages", "/var/log/syslog","/var/log/.log" ] #mention path of any file
    tags=> [""] #mention the tag here e.g. tags=> ["sunil"]
    }
    }

output {
elasticsearch {
hosts => "10.0.x.x" #mention the elasticsearch ip address here
manage_template => false
index => "Testing-%{+YYYY.MM.dd}"
}
}
3) Save the file and exit.
4) Start the logstash

Note: Here, logs are transferred to elasticsearch without using filebeat. As, logs can be transferred to elasticsearch by simply using logstash only.

@Sunillinus let me know if you face any issues

Thanks
Nikhil Kapoor