diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 82d8b24bed49..4299acecf0f6 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -45,6 +45,8 @@ https://github.com/elastic/beats/compare/v6.0.0-beta1...master[Check the HEAD di *Heartbeat* +- Fix monitor.name being empty by default. {issue}4852[4852] + *Metricbeat* - Support `npipe` protocol (Windows) in Docker module. {pull}4751[4751] diff --git a/heartbeat/_meta/kibana/5.x/search/02014c80-29d2-11e7-a68f-bfaa2341cc52.json b/heartbeat/_meta/kibana/5.x/search/02014c80-29d2-11e7-a68f-bfaa2341cc52.json index 53ba45f044e2..1af9cb94b662 100644 --- a/heartbeat/_meta/kibana/5.x/search/02014c80-29d2-11e7-a68f-bfaa2341cc52.json +++ b/heartbeat/_meta/kibana/5.x/search/02014c80-29d2-11e7-a68f-bfaa2341cc52.json @@ -8,7 +8,7 @@ "title": "Heartbeat HTTP pings", "version": 1, "kibanaSavedObjectMeta": { - "searchSourceJSON": "{\n \"index\": \"heartbeat-*\",\n \"highlightAll\": true,\n \"query\": {\n \"query_string\": {\n \"analyze_wildcard\": true,\n \"query\": \"*\"\n }\n },\n \"filter\": [\n {\n \"$state\": {\n \"store\": \"appState\"\n },\n \"meta\": {\n \"alias\": null,\n \"disabled\": false,\n \"index\": \"heartbeat-*\",\n \"key\": \"monitor.name\",\n \"negate\": false,\n \"value\": \"http\"\n },\n \"query\": {\n \"match\": {\n \"monitor.name\": {\n \"query\": \"http\",\n \"type\": \"phrase\"\n }\n }\n }\n }\n ]\n}" + "searchSourceJSON": "{\n \"index\": \"heartbeat-*\",\n \"highlightAll\": true,\n \"query\": {\n \"query_string\": {\n \"analyze_wildcard\": true,\n \"query\": \"*\"\n }\n },\n \"filter\": [\n {\n \"$state\": {\n \"store\": \"appState\"\n },\n \"meta\": {\n \"alias\": null,\n \"disabled\": false,\n \"index\": \"heartbeat-*\",\n \"key\": \"monitor.type\",\n \"negate\": false,\n \"value\": \"http\"\n },\n \"query\": {\n \"match\": {\n \"monitor.type\": {\n \"query\": \"http\",\n \"type\": \"phrase\"\n }\n }\n }\n }\n ]\n}" }, "columns": [ "monitor.id", @@ -21,4 +21,4 @@ "resolve.rtt.us", "http.rtt.content.us" ] -} \ No newline at end of file +} diff --git a/heartbeat/_meta/kibana/default/dashboard/Heartbeat-http-monitor.json b/heartbeat/_meta/kibana/default/dashboard/Heartbeat-http-monitor.json index f1a4b09b30dc..4e254a001f9f 100644 --- a/heartbeat/_meta/kibana/default/dashboard/Heartbeat-http-monitor.json +++ b/heartbeat/_meta/kibana/default/dashboard/Heartbeat-http-monitor.json @@ -96,7 +96,7 @@ "description": "", "hits": 0, "kibanaSavedObjectMeta": { - "searchSourceJSON": "{\n \"index\": \"heartbeat-*\",\n \"highlightAll\": true,\n \"query\": {\n \"query_string\": {\n \"analyze_wildcard\": true,\n \"query\": \"*\"\n }\n },\n \"filter\": [\n {\n \"$state\": {\n \"store\": \"appState\"\n },\n \"meta\": {\n \"alias\": null,\n \"disabled\": false,\n \"index\": \"heartbeat-*\",\n \"key\": \"monitor.name\",\n \"negate\": false,\n \"value\": \"http\"\n },\n \"query\": {\n \"match\": {\n \"monitor.name\": {\n \"query\": \"http\",\n \"type\": \"phrase\"\n }\n }\n }\n }\n ]\n}" + "searchSourceJSON": "{\n \"index\": \"heartbeat-*\",\n \"highlightAll\": true,\n \"query\": {\n \"query_string\": {\n \"analyze_wildcard\": true,\n \"query\": \"*\"\n }\n },\n \"filter\": [\n {\n \"$state\": {\n \"store\": \"appState\"\n },\n \"meta\": {\n \"alias\": null,\n \"disabled\": false,\n \"index\": \"heartbeat-*\",\n \"key\": \"monitor.type\",\n \"negate\": false,\n \"value\": \"http\"\n },\n \"query\": {\n \"match\": {\n \"monitor.type\": {\n \"query\": \"http\",\n \"type\": \"phrase\"\n }\n }\n }\n }\n ]\n}" }, "sort": [ "@timestamp", @@ -129,4 +129,4 @@ } ], "version": "6.0.0-alpha3-SNAPSHOT" -} \ No newline at end of file +} diff --git a/heartbeat/beater/manager.go b/heartbeat/beater/manager.go index 988cde980034..6a4d3a8508b1 100644 --- a/heartbeat/beater/manager.go +++ b/heartbeat/beater/manager.go @@ -270,7 +270,7 @@ func createWatchUpdater(monitor *monitor) func(content []byte) { func (m *monitorTask) createJob(client beat.Client) scheduler.TaskFunc { name := m.config.Name if name == "" { - name = m.config.Name + name = m.config.Type } meta := common.MapStr{