[Drupal] How to check whether Elastic Search is running on your server?

| | 1 min read

One of our Drupal clients had requested us to work on their Drupal website which was built around the ability to search the content on the site. Since the default Drupal search was a bit heavy they had opted to use ElasticSearch which was a dedicated lightweight tool for this purpose. Before developing we wanted to check ElasticSearch was running on their server. Read on to know how to check whether Elastic Search is running on your server

Its actually easier than you think to check if Elastic search is running on your server. Elastic Search uses the port range of 9200-9300. So to check if it is running on your server, type the url of the home page of your site followed by the port number as follows

mysitename.com:9200

You should see something as follows

{
  "ok" : true,
  "status" : 200,
  "name" : "Moonstone",
  "version" : {
    "number" : "0.90.11",
    "build_hash" : "11da1bacf39cec400fd97581668acb2c5450516c",
    "build_timestamp" : "2014-02-03T15:27:39Z",
    "build_snapshot" : false,
    "lucene_version" : "4.6"
  },
  "tagline" : "You Know, for Search"
}

If you get the above output then you can be sure that Elastic Search is working

We are assuming that you have already installed Elastic Search on your server before you started out. If you have any queries regarding the configuring Elastic Search on your Drupal site, then get in touch with us.