Hi! It sounds like you have it backwards: Filebeat can send to Logstash and / or Elasticsearch, but Logstash cannot send to Filebeat. If you install Filebeat on the same server as your nginx logs, you can forward them directly to Elasticsearch, or run them through Logstash first, but once they're in Logstash they don't need to go back to Filebeat.
Hi faec, thanks for your sharing. I would like to ask if I can use logstash directly to get input data from another server B?
But when I do so, the system prompt me for absolute path of the data. How can I achieve that ?
Secondly, my (server B) which is a CentOS server. When I installed the Logstash on it, I found the settings to be strange. The logstash.conf file has been located at /etc/init/logstash.conf. May I know should I move it back to /usr/share/logstash?
Generally to get data off a server you will have to install something on it (logstash or a beat), or explicitly configure a service to forward the data in cases where it's supported (e.g. syslog).
The location of the logstash configuration may depend on how you installed it or other context... for more details try asking in https://discuss.elastic.co/c/logstash
I notice there is an error "[2019-12-09T10:52:46,692][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit" on the Logstash's log file. Is it due to the JAVA's runtime error? I'm currently using java version 1.8.0_131.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.