To send data to Logstash you need to add a beats input into your Logstash config and send data to the port this is configured with. Post 9600 is not the correct one.
In order to upload dashboards and templates I believe Filebeat need to connect directly to Elasticsearch during the setup. Once this has completed you should be able to send data via Logstash.
yeah I have added the beat port 5044 in "logstash.config" file, like below
input {
beats {
port => "5044"
}
}
that "port:9600" I am using for logstash api console,
And filebeat can able to connect elasticsearch directly for posting log file and others, but when I am trying to load the log file over logstash at the time I am getting error,
Are you actually going to enrich your log data in Logstash? If you just use Logstash as a proxy to pass the data through, you might want to consider using HAProxy instead to tunnel the connection from the beat to elasticsearch.
This is what I just did on one of my setups, where I had to have a jump host between my machines running their beats and the elasticsearch endpoint. Logstash would have been overkill, since I didn't want to do anything with the data but pass it through.
I am just filtering some entry in source log file over logstash then put the filtered entry in to elasticsearch, for example below is the log file content,
so I am filtering like content message = Ending DismApi.dll session -----> - DismShutdownInternal
the only entry need to feed it in to elastic search over logstash,
This is what I am trying,
@Christian_Dahlqvist I have changed the port to "5044", now also getting the same error " Exiting: Template loading requested but the Elasticsearch output is not configured/enabled"
in filebeat.yml file if I use output as "elasticserach" then the "filebeat.exe setup" command is working fine, but when I use output "logstash" with hostname and port [localhost:5044] it is throwing the error like "elasticsearch output is not enabled"
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.