I have (finally) successfully installed x-pack...so it seems. The current issue is I get no results under kibana's discover tab. I have the following alerts:
Medium
17 min ago
Elasticsearch cluster nodes have changed! Node was restarted [1]: [oc-elk].
Elasticsearch Nodes
May 7, 2018 6:49:40 PM
17 min ago
Medium
Not Resolved
Elasticsearch cluster status is yellow. Allocate missing replica shards.
Elasticsearch Indices
May 7, 2018 6:49:39 PM
12 days 23 hrs 59 min ago
Low
Not Resolved
Configuring TLS will be required to apply a Gold or Platinum license when security is enabled. See documentation for details.
May 07 15:09:44 oc-elk logstash[2103]: Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties
May 07 15:09:48 oc-elk logstash[2103]: Elasticsearch Unreachable: [http://logstash_system:xxxxxx@localhost:9200/][Manticore::SocketException] Connection refused (Connection refused)
May 07 15:10:18 oc-elk logstash[2103]: No Available connections
May 07 15:10:48 oc-elk logstash[2103]: No Available connections
May 07 15:11:18 oc-elk logstash[2103]: No Available connections
May 07 15:11:48 oc-elk logstash[2103]: No Available connections
May 07 15:12:18 oc-elk logstash[2103]: No Available connections
network.host: is an elasticsearch.yml configuration option , not a logstash.yml one so you can't just copy paste it there. When I mentioned network.host in my answer, I was just pointing out that you have configured Elasticsearh to listen to 10.7.1.61 so you shouldn't expect it to listen to localhost.
You need to change your Logstash configuration so that it connects to Elasticsearch using the correct IP Address. This is all very well detailed/explained in the documentation and it will definitely speed up your deployment time if you go through it. The setting you need to change/set in logstash.yml is
I am reviewing the documentation - thanks for the help to this point. I'm still stuck with a logstash issue after adding the following line to logstash.yml:
[2018-05-08T12:23:40,561][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://10.7.1.61:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=>"Got response code '401' contacting Elasticsearch at URL 'http://10.7.1.61:9200/'"}
Let's look at this from a different angle. What do you expect to see in the Discover tab ? What kind of data are you ingesting in Elasticsearch via Logstash ?
I am using logstash with filebeat, winlogbeat, and metricbeat to send logs and performance stats from windows and linux hosts to ES. Before x-pack I would normally see the timeline of collected logs/stats using the wildcard filter. I have no logs or stats after the installation of x-pack.
You also need to update this so that logstash can authenticate itself to Elasticsearch. The suggested way of doing so is to create a new user with the appropriate role and use that for the Elasticsearch output plugin. This is all documented in this section which you can use as is for your config in order to
Create the role
Create the user and assign it the role
add the necessary
user => logstash_internal
password => xxxxxxxxxxxx
section to your Elasticsearch output configuration.
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.