Apm-server not start Cannot index event publisher.Event{Content:beat.Event

I got error when try to run apm-server -e:

2019-07-23T05:29:47.931-0400 WARN elasticsearch/client.go:527 Cannot index event publisher.Event{Content:beat.Event{Timestamp:time.Time{wall:0xbf45d2c2b44ab9a1, ext:69828979, loc:(time.Location)(0x2720b60)}, Meta:common.MapStr(nil), Fields:common.MapStr{"ecs":common.MapStr{"version":"1.0.0"}, "observer":common.MapStr{"ephemeral_id":"c048b732-f3d4-427a-847b-9bb2dc4c871e", "hostname":"DESKTOP-PAA4QB6.xx.com", "id":"233c7faa-70d0-411f-bc21-21817aa3c9d6", "listening":"127.0.0.1:8200", "type":"apm-server", "version":"7.2.0", "version_major":7}, "processor":common.MapStr{"event":"onboarding", "name":"onboarding"}}, Private:interface {}(nil), TimeSeries:false}, Flags:0x1} (status=404): {"type":"index_not_found_exception","reason":"no such index [apm-7.2.0-onboarding-2019.07.23] and [action.auto_create_index] ([.monitoring,.watches,.triggered_watches,.watcher-history*,.ml*]) doesn't match","index_uuid":"na","index":"apm-7.2.0-onboarding-2019.07.23"}

and service failed to start :slight_smile:
● apm-server.service - Elastic APM Server
Loaded: loaded (/usr/lib/systemd/system/apm-server.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Tue 2019-07-23 05:36:38 EDT; 1s ago
Docs: https://www.elastic.co/solutions/apm
Process: 3662 ExecStart=/usr/share/apm-server/bin/apm-server $BEAT_LOG_OPTS $BEAT_CONFIG_OPTS $BEAT_PATH_OPTS (code=exited, status=1/FAILURE)
Main PID: 3662 (code=exited, status=1/FAILURE)

Jul 23 05:36:38 DESKTOP-PAA4QB6.xx.com systemd[1]: Unit apm-server.service entered failed state.
Jul 23 05:36:38 DESKTOP-PAA4QB6.xx.com systemd[1]: apm-server.service failed.
Jul 23 05:36:38 DESKTOP-PAA4QB6.xx.com systemd[1]: apm-server.service holdoff time over, scheduling restart.
Jul 23 05:36:38 DESKTOP-PAA4QB6.xx.com systemd[1]: Stopped Elastic APM Server.
Jul 23 05:36:38 DESKTOP-PAA4QB6.xx.com systemd[1]: start request repeated too quickly for apm-server.service
Jul 23 05:36:38 DESKTOP-PAA4QB6.xx.com systemd[1]: Failed to start Elastic APM Server.
Jul 23 05:36:38 DESKTOP-PAA4QB6.xx.com systemd[1]: Unit apm-server.service entered failed state.
Jul 23 05:36:38 DESKTOP-PAA4QB6.xx.com systemd[1]: apm-server.service failed.

Please ensure that auto creating indices ins turned on for all apm* indices in the configured Elasticsearch cluster.

oh greate @simitt it's work after add on elasticsearch.yml thank you