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
| Papertrail | Logit.io |
|---|---|
| Local log files | Keep the paths. Collect them with the OpenTelemetry Collector or keep remote_syslog2. |
| rsyslog facilities, severities and selectors | Keep the filters. Change the forwarding action. |
| remote_syslog2 file lists and exclusion rules | Keep them and change the destination. |
| Host and program names | Check the parsed fields in Discover. Use Logstash filters to map them if needed. |
| Saved searches and alerts | Rebuild 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
-
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. -
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.sslPortUse
@@for TCP and keep TLS enabled. Keep local logging rules and any destinations that still serve other systems. -
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
-
Open the configuration file used by your remote_syslog2 service, often
log_files.yml. Keep itsfileslist, exclusions and any application-specific settings. -
Replace its
destinationblock 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.ymldestination: host: "@logstash.host" port: @logstash.sslPort protocol: tlsKeep the host and port in separate fields. Choose
tlsif the Papertrail configuration usedudportcp. -
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
-
Generate a new event from each route you changed. For rsyslog, use
loggeron a test host. Choose a facility and severity that match your forwarding rule.logger -p user.notice -t migration-test "Papertrail cutover test" -
In OpenSearch Dashboards, open Discover and find the new events. Compare message text, timestamp, hostname and program name.
-
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.
-
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.