Created
November 18, 2015 15:17
-
-
Save dcguim/063d5a5b6921885e9788 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var elasticsearch = require('elasticsearch') | |
var client = new elasticsearch.Client({ | |
host: 'localhost:9200', | |
log: 'trace' | |
}); | |
client.ping({ | |
requestTimeout:30000, | |
hello:"elasticsearch" | |
}, function(error) { | |
if (error) { | |
console.error('elasticsearch cluster is down!'); | |
} else { | |
console.log("All is well"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment