Migrate from Papertrail

Move new logs from Papertrail to your Logit.io Logs stack. Use Hosted OpenTelemetry if you are replacing a file tailer. To keep rsyslog or remote_syslog2, change the Papertrail destination to your stack's syslog TLS endpoint.

What carries over

PapertrailLogit.io
Local log filesKeep the paths. Collect them with the OpenTelemetry Collector or keep remote_syslog2.
rsyslog facilities, severities and selectorsKeep the filters. Change the forwarding action.
remote_syslog2 file lists and exclusion rulesKeep them and change the destination.
Host and program namesCheck the parsed fields in Discover. Use Logstash filters to map them if needed.
Saved searches and alertsRebuild in OpenSearch Dashboards and Logit.io alerts.

Option 1: collect log files with OpenTelemetry

For local files you can read directly, use the server log files guide to set up the OpenTelemetry Collector. Copy the watched paths from your Papertrail shipper into the filelog receiver's include list. Review any exclusions, multiline rules and program names that you need to carry over.

Export to Hosted OpenTelemetry using the otlp_http exporter and http/protobuf at https://{stackId}-otel.logit.io. Use Basic auth with {stackId}-otel as the username and your stack's Hosted OpenTelemetry API key as the password. Start on one host and generate a new log entry after the Collector starts.

Option 2: change the rsyslog destination

  1. Sign in and select a Logs stack to fill in its host and syslog SSL port. Install the integration and place the Logit.io CA certificate (opens in a new tab) at /etc/rsyslog.d/keys/ca.d/root.logit.io.crt. Install the rsyslog GnuTLS module if your distribution packages it separately.

  2. Find the action that forwards to <your-papertrail-host>:<your-papertrail-port>. Replace that action with the TLS configuration below. The *.* selector forwards all messages. Keep your current selector if you only want a subset. If the same TLS directives already exist, update them in place.

    $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.sslPort

    Use @@ for TCP and keep TLS enabled. Keep local logging rules and any destinations that still serve other systems.

  3. Check the configuration and restart rsyslog. On a systemd host, run the following.

    sudo rsyslogd -N1
    sudo systemctl restart rsyslog

Option 3: change the remote_syslog2 destination

  1. Open the configuration file used by your remote_syslog2 service, often log_files.yml. Keep its files list, exclusions and any application-specific settings.

  2. Replace its destination block with the host and port for the syslog TLS input. The host and port fill in when you sign in and select a stack.

    log_files.yml
    destination:
      host: "@logstash.host"
      port: @logstash.sslPort
      protocol: tls

    Keep the host and port in separate fields. Choose tls if the Papertrail configuration used udp or tcp.

  3. Restart the remote_syslog2 service using the service manager for your installation. Append a unique test line to one of its watched logs. Check the service output for connection errors and confirm that the account running the service can still read the watched file.

If you also run rsyslog on the same host, check which files remote_syslog2 watches. Move each log stream once. For example, use rsyslog for local system messages and remote_syslog2 for application files that rsyslog does not collect.

Check the cutover

  1. Generate a new event from each route you changed. For rsyslog, use logger on a test host. Choose a facility and severity that match your forwarding rule.

    logger -p user.notice -t migration-test "Papertrail cutover test"
  2. In OpenSearch Dashboards, open Discover and find the new events. Compare message text, timestamp, hostname and program name.

  3. During any overlap, compare counts for a single host over the same time window. Check for duplicates if both rsyslog and a file tailer read the same messages.

  4. Rebuild the searches and alerts your team uses. Remove any forwarding rules for the old Papertrail host and port after the cutover.

Not covered

  • Direct UDP or plain TCP syslog forwarding to the endpoint in this guide. Use the syslog TLS input.
  • Importing historical logs or saved searches from Papertrail.

If you need help planning a migration, contact support via live chat.