I'm setting up Synthetic Monitoring using dockerised heartbeat image and want to separate the synthetics logs from the http/icmp ones. What I've noticed is that with the latest upgrade to 8.3 (or perhaps it was there already in previous versions) there is a template and component templates called synthetics but not being used so my question is what are these templates for?
The heartbeat-* mappings are for monitors configured directly with heartbeat, while the synthetics-* ones are for ones configured via the new monitor management feature (and fleet) in the Uptime app.
In 8.4.0+ browser based monitors will only write to synthetics-*, the only reason other monitors still write to heartbeat-* is to avoid a breaking change.
As we move forward we'd like most users to transition to using monitor management and pushing monitors into kibana via the elastic/synthetics CLI tool, whereupon everything will be in synthetics-*. However, these tools are in beta status, so we don't fully recommend them yet.
Reading these docs, you can see that the *-settings and *-mappings templates for synthetics configure, respectively, things like the number of shards, as described here, or the document's fieldsas described here.
If you alter those, you'll be altering the configuration for the underlying backing indices for this data stream, as these templates define those indices' attributes.
Thanks however this doesn't seem to be the case when using dockerised version of heartbeat 8.3.2 for synthetics. All browser type logs are still going to heartbeat-8.3.2 data stream which uses heartbeat template (not synthetics).
Also, both components are pretty much empty:
POST /_index_template/_simulate
{
"index_patterns": ["dummy*"],
"composed_of": ["synthetics-settings","synthetics-mappings"]
}
The reason why I'm curious about these is because we want to use synthetics template name instead of default heartbeat but worried that it will break something.
Important {es} includes the following built-in component templates:
logs-mappings
logs-settings
metrics-mappings
metrics-settings
synthetics-mapping
synthetics-settings
{fleet-guide}/fleet-overview.html[{agent}] uses these templates to configure backing indices for its data streams. If you use {agent} and want to overwrite one of these templates, set the version for your replacement template higher than the current version.
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.