[2018-11-27T11:52:14,239][WARN ][o.e.c.s.ClusterApplierService] [2yFYVFj] failed to apply cluster settings
org.elasticsearch.common.settings.SettingsException: missing exporter type for [cloud_monitoring] exporter
at org.elasticsearch.xpack.monitoring.exporter.Exporters.initExporters(Exporters.java:139) ~[?:?]
at org.elasticsearch.xpack.monitoring.exporter.Exporters.setExportersSetting(Exporters.java:67) ~[?:?]
at org.elasticsearch.common.settings.Setting$2.apply(Setting.java:625) ~[elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.common.settings.Setting$2.apply(Setting.java:598) ~[elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.common.settings.AbstractScopedSettings$SettingUpdater.lambda$updater$0(AbstractScopedSettings.java:555) ~[elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.common.settings.AbstractScopedSettings.applySettings(AbstractScopedSettings.java:184) ~[elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.cluster.service.ClusterApplierService.applyChanges(ClusterApplierService.java:458) [elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.cluster.service.ClusterApplierService.runTask(ClusterApplierService.java:416) [elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.cluster.service.ClusterApplierService$UpdateTask.run(ClusterApplierService.java:160) [elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:624) [elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:244) [elasticsearch-6.5.1.jar:6.5.1]
but i sitll have error and kibana don't show monitoring after 1 hour ....
##
We couldn't activate monitoring
No monitoring data found. Try setting the time filter to "Last 1 hour" or check if data is available for a different time period.
If data is in your cluster, your monitoring dashboards will show up here.
and i sitll have error
[2018-11-27T15:50:38,057][DEBUG][o.e.a.a.c.s.TransportClusterUpdateSettingsAction] [2yFYVFj] failed to perform [cluster_update_settings]
java.lang.IllegalArgumentException: persistent setting [xpack.monitoring.exporters], not recognized
at org.elasticsearch.common.settings.AbstractScopedSettings.updateSettings(AbstractScopedSettings.java:717) ~[elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.common.settings.AbstractScopedSettings.updateDynamicSettings(AbstractScopedSettings.java:663) ~[elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.action.admin.cluster.settings.SettingsUpdater.updateSettings(SettingsUpdater.java:86) ~[elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.action.admin.cluster.settings.TransportClusterUpdateSettingsAction$1.execute(TransportClusterUpdateSettingsAction.java:183) ~[elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:45) ~[elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:639) ~[elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:268) ~[elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:198) [elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:133) [elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:150) [elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:188) [elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:624) [elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:244) [elasticsearch-6.5.1.jar:6.5.1]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:207) [elasticsearch-6.5.1.jar:6.5.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
thank you ! but im not using elasticsearch.yml to configure monitoring
i use the kibana gui to configure Elasticsearch
that's worked but when i export monitoring to cloud (elastic cloud monitoring on aws)
then i prefered to keep my monitoring index in my cluster
so after that i have this problem !
I see. In that case, could you post the results of this query?
GET _cluster/settings?filter_path=*.xpack.monitoring&include_defaults=true
Also, are you seeing any errors in your Elasticsearch master node logs about monitoring collection (apart from the IllegalArgumentException: persistent setting [xpack.monitoring.exporters], not recognized error you posted already)?
As an aside, when you just want to toggle it off, it's much easier to just specify "enabled": false as a sub-field, then null that out (or flip it to true) when you want it on again.
PUT /_cluster/settings
{
"persistent": {
"xpack.monitoring.exporters.cloud_monitoring.enabled": false
}
}
##
You need to make some adjustments
To run monitoring please perform the following steps
We checked the `cluster persistent` settings for `xpack.monitoring.exporters` , and found the reason: `Exporters are disabled: cloud_monitoring` .
Using monitoring exporters ship the monitoring data to a remote monitoring cluster is highly recommended as it keeps the integrity of the monitoring data safe no matter what the state of the production cluster. However, as this instance of Kibana could not find any monitoring data, there seems to be a problem with the `xpack.monitoring.exporters` configuration, or the `xpack.monitoring.elasticsearch` settings in `kibana.yml` .
Check that the intended exporters are enabled for sending statistics to the monitoring cluster, and that the monitoring cluster host matches the `xpack.monitoring.elasticsearch` setting in `kibana.yml` to see monitoring data in this instance of Kibana.
By not defining any exporter, the local exporter is implicitly defined and enabled by default. In your case, you've removed the previously defined exporter(s).
It sounds like someone also, after your previous response, added "xpack.monitoring.exporters.cloud_monitoring.enabled": false to your cluster settings (or elasticsearch.yml). This is what the Monitoring UI is complaining about.
PUT /_cluster/settings
{
"persistent": {
"xpack.monitoring.exporters.cloud_monitoring.enabled": null
}
}
The next step will be to re-enable xpack.monitoring.collection.enabled as you nulled that out in your example:
PUT /_cluster/settings
{
"persistent": {
"xpack.monitoring.collection.enabled": true
}
}
green open .monitoring-es-6-2018.12.08 vkPWL4ClRYGeS2eOC-RrJg 1 1 34559 0 30.8mb 15.4mb
green open .monitoring-es-6-2018.12.05 dllATBhiRhuQQIkAJPVGaw 1 1 34560 0 30.8mb 15.4mb
green open .monitoring-kibana-6-2018.12.05 1mmOz_SmSiqskqpZ-Ge1Bw 1 1 34554 0 17.8mb 8.9mb
green open .monitoring-kibana-6-2018.12.03 IHeGKghFTryHLII2JOD7tQ 1 1 52997 0 23.7mb 11.8mb
green open .monitoring-kibana-6-2018.12.09 AO9NL_wpQB2Z6nh-aNDTaA 1 1 34553 0 17.8mb 8.9mb
green open .monitoring-es-6-2018.12.06 axFp_JsLQWek111IVaIokw 1 1 34560 0 31mb 15.4mb
green open .monitoring-kibana-6-2018.12.06 L3Y5hjd-QVOQI0ERro36UA 1 1 34552 0 17.5mb 8.7mb
green open .monitoring-es-6-2018.12.04 Rx-SgdtBQfCy0IVZTRIRWg 1 1 34560 0 30.9mb 15.5mb
green open .monitoring-es-6-2018.12.09 AUSV3tD3QbSZ2KB48e-Ehg 1 1 34560 0 30.3mb 15.1mb
green open .monitoring-kibana-6-2018.12.07 V5VrjgA2SyONQORaVS_7Ow 1 1 34554 0 17.8mb 8.9mb
green open .monitoring-es-6-2018.12.03 bamPr41PTbqIJp8f6t5Lkg 1 1 34559 0 31.3mb 15.6mb
green open .monitoring-es-6-2018.12.07 _Rf-pl7gTXmRXWcqRSZTVw 1 1 34559 0 30.9mb 15.4mb
green open .monitoring-es-6-2018.12.10 doKfpZ-8Q8SGCuekLMuwcA 1 1 13412 0 14.9mb 7.4mb
green open .monitoring-kibana-6-2018.12.10 2KKxJBSzR--GZAjOT3-AaQ 1 1 13567 0 7.6mb 3.7mb
green open .monitoring-kibana-6-2018.12.08 tyRc08XERxe30bKuJhNWIA 1 1 34552 0 17.9mb 9mb
green open .monitoring-kibana-6-2018.12.04 gUVhR_EMTiivVzRoBltXsg 1 1 34552 0 17.6mb 8.8mb
I'm guessing that you are going to observe node_stats returned, but not cluster_stats. You can read about the causes of missing different types here based on the collector's type. The main page, and thus this screen, is driven by the requirement that we receive the cluster_stats document, which is the formative document for the cluster.
You've clearly enabled data and your indices prove that at least some of the data is making it through. The lack of deletes in the .monitoring-es-6-* also suggests that there are no shards documents, which is another thing that comes from the elected master and implies problems there (e.g., maybe you've configured it at the elasticsearch.yml level to communicate somewhere else).
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.