I am using Logstash and created a conf file which allows me to input data into Elasticsearch. The data is related to git statistics from azure as I am creating a dashboard which will help to see information such as total commits, total PRs by an author etc. I am using http poller plugin for the same. Here's my conf file:
Data is successfully imported to Elasticsearch as I can see on Kibana and an index is also created as I specified in the conf file.
But the problem is there's only one record which is being created.
I tried to import the same data before through .csv file and configuring logstash for the same. It creates as many records as there are in the .csv file but not happening with the http poller when I am fetching data through REST API.
Please share the document you have in elasticsearch, how it does look like? Go into Kibana Discover, expand the document, click on the JSON tab and copy and share the document.
Yes I'm running Kibana and Logstash on the same machine. I'm using a Mac with 16GB RAM. The earlier problem regd one document is solved now but I can't load the documents due to the above error.
Are you running Elasticsearch on the same machine as well?
How are you running it? Docker or directly on the OS? Have you changed the memory configuration for Elasticsearch?
Also, what value did you use in jvm.options for Logstash?
If you didn't change the memory settings for Elasticsearch it will per default use half of the memory you have, which will be 8 GB, then depending on how much memory you gave to Logstash your system may not have enough memory for Kibana for example.
I would also suggest that you reset this config to the default value until you find what is the root cause of your issue.
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.