Set Up OpenTelemetry Exporter
- Download the appropriate OTEL collector for your environment from the OpenTelemetry website.
- Create a configuration file called
config.yamlwith these contents:
- Start the collector with this command:
- Create
.jsonfiles in this directory. - As you add json lines to this file they will appear in the Log Viewer in Mezmo.
For
ingest_keyin the config.yaml file, enter your Mezmo Ingestion Key. You can find this by logging into the Mezmo Web App, and navigating to Settings > Organization > API Keys.otelwill be set at the default hostname for collector logs only if your logs don’t have a hostname set in the log metadata. You cannot set this metadata hostname in your collector configuration. Instead, recent changes to the collector configuration will enable the collector to recognize the hostname data from incoming logs, and add that data to the internal OTEL representation of the log. The Mezmo OTEL Exporter will then attach the hostname data to the outgoing logs. For more information, see the OTel Exporter changelog in GitHub.
