Migrate from Loggly
Move new logs from Loggly to your Logit.io Logs stack. Start with Hosted OpenTelemetry if you are replacing collection from local files or already send OTLP. You can also keep your syslog shipper or update your HTTP/S sender to use the HTTPS JSON API.
What carries over
| Loggly | Logit.io |
|---|---|
| Local log files or application OTLP logs | Collect with OpenTelemetry. |
| rsyslog selectors or syslog-ng source and filter rules | Keep them and change the TLS destination. |
| HTTP/S senders | Change the request to use the HTTPS JSON API. |
| Loggly customer token and tags | Remove the token. Carry tags you still use as fields. |
| Parsing, dashboards and alerts | Rebuild with Logstash filters, OpenSearch Dashboards and Logit.io alerts. |
Option 1: send logs with OpenTelemetry
Follow the server log files guide to collect local files with the filelog receiver. If your application already exports OTLP, follow the Hosted OpenTelemetry SDK settings instead.
Use http/protobuf at https://{stackId}-otel.logit.io. Authenticate with Basic auth using {stackId}-otel and your stack's Hosted OpenTelemetry API key. In a Collector, send the logs with the otlp_http exporter.
Option 2: change the syslog destination
Sign in and select a Logs stack to fill in the host and syslog SSL port. Keep your existing sources and filters. Remove the Loggly token and any token prefix or tag syntax from the old destination template. Preserve the fields your team uses for searches.
rsyslog
Follow the rsyslog integration to install the GnuTLS module and place the Logit.io CA certificate (opens in a new tab) at /etc/rsyslog.d/keys/ca.d/root.logit.io.crt. Replace the Loggly forwarding action with the example below. Use your existing selector if it forwards a subset of messages.
$DefaultNetstreamDriverCAFile /etc/rsyslog.d/keys/ca.d/root.logit.io.crt
$ModLoad lmnsd_gtls
$ActionSendStreamDriver gtls
$ActionSendStreamDriverMode 1
$ActionSendStreamDriverAuthMode x509/name
$ActionSendStreamDriverPermittedPeer *.logit.io
*.* @@"@logstash.host:strip_quotes":@logstash.sslPortCheck the file with sudo rsyslogd -N1, then restart rsyslog. If the TLS directives already exist, update them in place.
syslog-ng
Replace the Loggly destination with the following syslog-ng destination. Point the existing log path at d_logit. In the example, s_src is the source name. Use your configured source and retain any filters on the original log path.
destination d_logit {
network("@logstash.host" port(@logstash.sslPort)
transport("tls")
tls( ca_dir("/etc/ssl/certs/"))
);
};
log { source(s_src); destination(d_logit); };Make sure the CA directory contains the trust material required for the endpoint. Check the configuration with sudo syslog-ng -s, then restart syslog-ng.
Option 3: update HTTP/S senders
Replace the Loggly URL and customer token with POST or PUT to https://@logitApiEndpoint/v2 and the header ApiKey: @apikey. This is the stack API key. The HTTPS JSON API uses a different request format from the Loggly URL-token endpoint.
| What the sender sends now | What to send to Logit.io |
|---|---|
| One JSON event | Send one JSON object with Content-Type: application/json. |
| A batch of JSON logs | Send a JSON array of objects with application/json, or one object per line with application/x-ndjson. |
| Plain text or a batch of text lines | Wrap each event in a JSON object with a message field. |
| Loggly tags in the URL | Put the tags you still need in the JSON records, for example a tags field. |
Send an uncompressed body. Gzip is unsupported. Send 1 to 1,000 events per request. The request body and each event serialised for processing must fit within 9,800,000 bytes. HTTP 202 means the events are queued.
For example, send a single JSON object with this request.
POST https://@logitApiEndpoint/v2
ApiKey: @apikey
Content-Type: application/json
{"message":"Loggly cutover test","tags":["migration"]}The HTTPS JSON API documentation includes client examples and links to supported senders, including Vector, Cribl Stream and Edge and NXLog. If a sender only supports the Loggly URL format, change the sender or route its source logs through a supported shipper.
Check the cutover
- Send a new test event from each sender. In OpenSearch Dashboards, open Discover and check the message, timestamp, source and tag fields.
- Compare counts over the same time window, including a multiline message and an HTTP batch if you use them.
- With HTTP batches, a 503 partway through a batch can leave earlier events queued. A retry can duplicate them. Include a stable, unique event ID and use it to de-duplicate downstream.
- Rebuild the searches, dashboards and alerts that rely on Loggly fields. Remove the old destination and customer token after cutover.
Not covered
- A Loggly-compatible HTTP/S path with a customer token in the URL. Use the HTTPS JSON API.
- Direct syslog forwarding without TLS. Use the syslog TLS input.
- Importing historical logs or saved searches from Loggly.
If you need help planning a migration, contact support via live chat.