Migrate from Logz.io
Move new logs from Logz.io to your Logit.io Logs stack. Start with Hosted OpenTelemetry if you already run a Collector. You can also keep Filebeat or Fluentd and change its output.
What carries over
| Logz.io | Logit.io |
|---|---|
| OpenTelemetry Collector receivers and processors | Keep them and change the exporter. |
| Filebeat files, inputs and processors | Keep them and change the Logstash output. |
| Fluentd sources, filters and tags | Keep them and replace the output plugin. |
| Metrics and traces | Send with OpenTelemetry. They are stored only if the stack has the Metrics or APM add-on. This guide moves logs. |
| Log parsing, dashboards and alerts | Rebuild with Logstash filters, OpenSearch Dashboards and Logit.io alerts. |
Option 1: point the OpenTelemetry Collector at Logit.io
Check that Hosted OpenTelemetry is switched on for your Logs stack and open the stack's Endpoints page. Copy the base URL and the Basic auth credentials. The username is {stackId}-otel and the password is your stack's Hosted OpenTelemetry API key.
-
Add this extension and exporter to the Collector's existing configuration. Use a build with both components, such as
otelcol-contrib. Replace{stackId}and<your-hosted-otel-api-key>with your stack's values.config.yamlextensions: basicauth/logit: client_auth: username: "{stackId}-otel" password: "<your-hosted-otel-api-key>" exporters: otlp_http/logit: endpoint: https://{stackId}-otel.logit.io auth: authenticator: basicauth/logit -
Add
basicauth/logittoservice.extensions. Inservice.pipelines.logs.exporters, replace the Logz.io exporter withotlp_http/logit. You can list both exporters during the comparison. -
Keep the receivers and processors in the logs pipeline. The new exporter sends
http/protobufover HTTPS. Use the base URL as shown. -
Validate the merged file using the same Collector build that will run it. For Contrib, run the following.
otelcol-contrib validate --config=config.yaml -
Restart the Collector on a test host. Once the logs match, remove the exporter for
<your-logz-io-listener>and its token from the configuration. Check for other pipelines that still use that exporter before removing it.
Option 2: change the Filebeat output
Use the Filebeat integration to check the stack's Beats SSL port. The example fills in the connection details when you sign in and select a stack.
-
In
filebeat.yml, keep the inputs and your own enrichment fields. Remove any Logz.io token and fields added only for the old listener. -
Replace the existing
output.logstashblock and its Logz.io listener and TLS settings. Filebeat uses one output.filebeat.ymloutput.logstash: hosts: ["@logstash.host:@logstash.sslPort"] loadbalance: true ssl.enabled: true -
Validate the configuration using the Filebeat integration steps for your operating system, then restart the same instance. Keep its data directory so it can resume from its saved file positions.
If you need a side-by-side test, run a separate Filebeat instance with its own configuration and --path.data directory. Limit it to a test source.
Option 3: change the Fluentd output
The Fluentd integration shows how to install fluent-plugin-logit and gives you a pre-filled output for your stack's TCP SSL port.
- Keep your
<source>and<filter>blocks. Find the<match>block that sends to Logz.io and note its tag pattern and any secondary outputs. - Replace the Logz.io output with the documented
@type logitoutput. Apply it to the same tags. Use a writable file buffer path if you enable buffering, and drain any queued data for the old output before switching. - Restart Fluentd and confirm that records with the expected tags arrive. Remove the old listener and token after cutover.
Check the cutover
- In OpenSearch Dashboards, open Discover and find a new event from each shipper you changed.
- Compare counts over the same time window in Logz.io and Logit.io. Check a multiline message and the host and service fields you search on.
- Rebuild any parsing that previously ran in Logz.io. Use a Logstash filter if a search or alert needs the original field names.
- Rebuild the dashboards and alerts your team uses, then retire any old log outputs and credentials still in use for the test.
Not covered
- The Logz.io listener protocol and shipping tokens as Logit.io inputs.
- Importing existing logs, dashboards or alerts from Logz.io.
If you need help planning a migration, contact support via live chat.