Migrate from Elastic
If you already ship logs with Beats or Elastic Agent, the move to Logit.io is mostly an output change. Keep your inputs and point the output at your stack's hosted Logstash over TLS.
What carries over
| Elastic | Logit.io |
|---|---|
| Filebeat, Winlogbeat, Metricbeat and Auditbeat inputs | Keep them. Change the output to output.logstash. |
| Standalone Elastic Agent inputs | Keep them. Change the output to the logstash type. |
Beats output.elasticsearch or cloud.id | Replace with output.logstash. |
| Elasticsearch ingest pipelines for modules such as CEF and Winlogbeat | Logit.io installs the route and ingest pipeline on your stack. Check each integration page to see whether your module is covered. |
| Custom Logstash pipelines | Add them as Logstash filters in the filter editor. A local Logstash can also send to your stack, as shown on Local Logstash. |
| Kibana dashboards, visualisations and alerts | Rebuild in OpenSearch Dashboards and Logit.io alerts. |
Change a Beat's output
-
Open the Beat's integration page, such as Filebeat, Winlogbeat or Metricbeat. Each page is pre-filled with your stack's host and Beats SSL port when you are signed in.
-
In
filebeat.yml, remove theoutput.elasticsearchsection and anycloud.idandcloud.authsettings. A Beat can have only one output. -
Add the Logstash output.
filebeat.ymloutput.logstash: hosts: ["@logstash.host:@logstash.sslPort"] loadbalance: true ssl.enabled: true -
Test the configuration and restart the Beat. Each integration page has the commands for your operating system.
Keep the module-generated [@metadata][pipeline] field on events that go to hosted Logstash, so Logit.io can select the right pipeline. For the CEF module, Logit.io installs the pipeline on your stack, so filebeat setup --pipelines is unnecessary. See the CEF and Winlogbeat pages.
To compare old and new side by side, run a second instance of the Beat with its own configuration and its own --path.data directory, and send that instance to Logit.io.
Change a standalone Elastic Agent's output
Use the logstash output type in elastic-agent.yml, as on the Elastic Agent page. This guide covers standalone agents configured from a file.
To switch an agent completely, replace its default output with the Logstash output.
outputs:
default:
type: logstash
hosts: ["@logstash.host:@logstash.sslPort"]
loadbalance: true
ssl:
enabled: trueTo compare old and new side by side, keep your current default output and add the Logit.io output under another name. Each input sends to the output named in its use_output setting, so copy the input you want to compare, give the copy a new id and set use_output: logit.
outputs:
logit:
type: logstash
hosts: ["@logstash.host:@logstash.sslPort"]
loadbalance: true
ssl:
enabled: true
inputs:
- type: filestream
id: my-logs-logit
use_output: logit
streams:
- id: my-logs-logit-stream
data_stream:
dataset: generic
paths:
- /var/log/*.logRemove the old input and output when the data matches. Add the outputs.logit block next to your existing outputs entries rather than replacing them.
Check the cutover
- In OpenSearch Dashboards, open Discover and check that events arrive from each host.
- Compare daily counts and field names with your Elastic indices. Add Logstash filters where you relied on Elastic ingest pipelines that Logit.io does not install.
- Allow the Beats SSL port in any outbound firewall.
- Rebuild the dashboards and alerts your team uses. To install prebuilt dashboards for supported sources, choose Install Dashboards on your Logs stack.
- Remove the old output when the data matches.
Not covered
- Sending Beats or Elastic Agent output straight to an Elasticsearch API. Use the Logstash output.
- Fleet-managed agent policies. This guide covers configuration files.
- Moving existing indices out of Elasticsearch. Cut senders over for new data and keep your old cluster for history until it ages out.
If you need help planning a migration, contact support via live chat.