Elasticsearch: Difference between revisions
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight" |
updating |
||
| Line 8: | Line 8: | ||
{{#set:feature tests = Search for something in "files" which indicates that PDF index results are returned instead of just articles. E.g.[https://wiki.freephile.org/wiki/index.php?title=Special:Search&profile=advanced&profile=advanced&fulltext=Search&search=ssh-agent&ns6=1 Search for 'ssh-agent' in the File namespace] }} | {{#set:feature tests = Search for something in "files" which indicates that PDF index results are returned instead of just articles. E.g.[https://wiki.freephile.org/wiki/index.php?title=Special:Search&profile=advanced&profile=advanced&fulltext=Search&search=ssh-agent&ns6=1 Search for 'ssh-agent' in the File namespace] }} | ||
{{#set:feature examples = }} | {{#set:feature examples = }} | ||
This site uses Elasticsearch for it's search functionality under the hood. | This site uses Elasticsearch for it's search functionality under the hood. | ||
| Line 228: | Line 229: | ||
==Monitoring== | ==Monitoring== | ||
It's suggested to use '''[[Kibana]]''' as a monitoring and management interface to Elasticsearch. | |||
You'll need to set xpack.monitoring.collection.enabled=true for Elasticsearch to do self-monitoring. If that is enabled in your elasticsearch.yml, then you can navigate in the left-panel of Kibana to "Stack Monitoring" under the "Management" section at the bottom. However that is called 'internal monitoring'. It has long been recommended to use a distinct 'external' service called '''Metricbeat''' for monitoring the health of your Elasticsearch cluster. | |||
[[File:Kibana-self-monitoring.png|thumb]] | |||
Although you can turn on monitoring in the Kibana Web interface, you can also use curl on the command line to inspect and set cluster settings. | |||
<syntaxhighlight lang="bash"> | |||
curl -X GET "localhost:9200/_cluster/settings?pretty" | |||
curl -X PUT "localhost:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d' | |||
{ | |||
"persistent": { | |||
"xpack.monitoring.collection.enabled": true | |||
} | |||
} | |||
</syntaxhighlight> | |||