I have been trying for weeks now to configure Elasticsearch/logstash on my Django app.
But, all the tutorials i found are dealing with local elasticsearch meanwhile the one i’m dealing with is an Enterprise edition.
So i need a big help for the configuration to finally be able to send data from django to Elasticsearch using Logstash if it's what i need, any link or paper or method i will take.
Thanks in advance.
These are the configs i made. ( But i'm sure ports and hosts are shit cause i don't know how to find the correct ones on my Elasticsearch entreprise). Please help !
Elastic Cloud does not provide Logstash, if you want to use Logstash you need to install and manage it yourself on your infrastructure, do you have a Logstash instance running already?
You will need to create another pipeline to receive the logs from your application then.
This pipeline needs to have an input listening on a TCP port, which will be the same port you will configure in your application, then you will also need an output to elasticsearch to store the data on a indice.
The port is the same you used in the example configuration you shared before, but the host in your django log handler needs to be pointing to the logstash host.
Then you will need to edit the pipelines.yml file and add another pipeline pointing to this logstash configuration.
Please @leandrojmp if I get this => "Then you will need to edit the pipelines.yml file and add another pipeline pointing to this logstash configuration."
It means i need to create 2 logstash pipeline ?
The pipelines.yml resides in the Logstash server, in the Logstash directory.
But it seems that you are using the Centralized Management Pipeline GUI, which means that you will need to create and edit your pipeline using this interface and it should start the pipeline on your Logstash server.
I never used this feature, so I'm not sure how it works, but it seems that you need to click on the Create Pipeline button to create a new one.
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.