From the course: Learning the Elastic Stack (2020)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Get logs into Elasticsearch

Get logs into Elasticsearch - Elastic Stack Tutorial

From the course: Learning the Elastic Stack (2020)

Start my 1-month free trial

Get logs into Elasticsearch

- [Instructor] By default, Elastic is set up in a development mode, a standalone mode that lets you play around with local, logstash, beats, Kibana, et cetera. Basically it supports what we've done so far. We need to put it into production mode. Now, to do that, make sure you x out of your web node if you're just following from the last lesson. And we need to edit the etc/elasticsearch/elasticsearch.yaml file. Now, there's two things we're going to need to change but I actually want to show you the error message you get if you only do the first one 'cause it's very confusing. So first, we'll search for network.host. I'll remove that hash sign for the comment and I'm just going to change the IP address. And you can just put in zero here. That's shorthand for 0.0.0.0. That just means it'll bind to any address on the host. So I'm going to save and quit this and show you the error that we'll get. So systemctl restart elasticsearch. This may take a little bit of time. And there we go. We…

Contents