Move new logs from Papertrail to Logit.io by pointing rsyslog or remote_syslog2 at your Logs stack’s Syslog TLS endpoint. Start with one sender, verify fresh events in OpenSearch Dashboards and compare both destinations over the same window before retiring the Papertrail route. Keep historical logs in Papertrail or its archives and rebuild the searches and alerts your team still uses.
Contents
- Start with a sender and search inventory
- Choose who owns each log stream
- Repoint one rsyslog sender over TLS
- Switch a remote_syslog2 file tailer
- Keep file collection as a separate option
- Run both destinations through a soak period
- Prove the cutover from a test message to a count
- Rebuild the searches people actually use
- Diagnose the failures you can see on the sender
- Retire the old destinations in batches
- Papertrail cutover FAQ
A working cutover is one your on-call team can observe. Pick a host that sends both ordinary traffic and a log type you depend on during incidents. Record what arrives in Papertrail today, then check that the same stream is searchable in Logit.io with usable timestamps and enough context to identify the source. Use the Papertrail migration guide for the connection details for your stack.
Start with a sender and search inventory
Work from both ends. List the senders and groups in Papertrail, then find the configuration that produces each stream. An application can write to a file that a tailer reads and also emit the same line to the system logger. A forwarding rule can live on a relay that represents several hosts. Identify each source once, including the relay or agent that will own it after the cutover.
For rsyslog, record the facility and severity selectors, any property filters and the order of the rules that forward to Papertrail. For remote_syslog2, record the service’s config path, file globs, exclude_patterns and any configured tags or hostname overrides. Check the Papertrail destination filters separately. Those rules drop events on arrival and can explain why the same sender appears noisier at the new destination.
| In Papertrail | In Logit.io |
|---|---|
| Senders and syslog destinations | Keep a host and stream list. Route each syslog sender to the Logs stack’s Syslog TLS input. |
| rsyslog selectors and property filters | Keep the conditions around the forwarding action so the same messages qualify. |
remote_syslog2 files and exclude_patterns | Keep both lists if you retain the tailer. If you replace it, map paths to the Collector’s include list and review exclusion rules separately. |
| Sender, program, facility and severity | Check the parsed fields in Discover. Add or adjust a Logstash filter if a field you need is missing. |
| Destination log filters | Recreate intentional drops in the sender or a scoped Logstash filter. Check an event that should pass and an event that should be dropped. |
| Saved searches and alerts | Save replacement searches in OpenSearch Dashboards and recreate alert rules and notification destinations. |
| Historical logs and archives | Keep them in Papertrail or its archives. This cutover starts a new stream. |
Save a copy of the current configuration and write down which deployments own it. For each alert, capture its query, sender scope, threshold, evaluation window and notification destination. Pick a known matching event and one that should be excluded. Those samples make it easier to tell whether a translated query would change what wakes someone up.
Choose who owns each log stream
Keep rsyslog for messages already routed by the system logger or a relay. You can retain existing facility and severity rules and add a second destination for the overlap. The work is mostly in the forwarding action and TLS trust settings.
Keep remote_syslog2 when the files and line exclusions already do what you need and you want a small change. Repoint its one configured destination to Syslog TLS. Plan the change one host at a time if you need baseline counts, because changing that destination switches where the process sends.
Use the OpenTelemetry Collector when you want to replace a file tailer and read the application files directly. This lets you group multiline records at the file. It also gives you a new service to deploy, grant file access to and monitor.
Repoint one rsyslog sender over TLS
In your Logs stack, follow the Syslog SSL input setup. Sign in and select the stack in the rsyslog integration guide to get the host and Syslog SSL port, or use the values in your stack settings. The plain syslog TCP and UDP inputs have their own configuration. This route requires TLS over TCP on the SSL port.
On the sender, find the Papertrail action and check which selector or ruleset owns it. If the destination comes from a variable or a deployment template, make the change in the managed configuration as well.
sudo grep -R papertrailapp /etc/rsyslog.conf /etc/rsyslog.d/
Install the rsyslog GnuTLS module if your distribution packages it separately. On Debian or Ubuntu the package is rsyslog-gnutls. Download the public CA certificate to the path used by the example and make it readable by the rsyslog service account.
sudo mkdir -p /etc/rsyslog.d/keys/ca.d
sudo curl -fsSL https://cdn.logit.io/root.logit.io.crt \
-o /etc/rsyslog.d/keys/ca.d/root.logit.io.crt
sudo chmod 644 /etc/rsyslog.d/keys/ca.d/root.logit.io.crt
For a direct switch, replace the old forwarding action with the following legacy configuration. Substitute the stack hostname and numeric Syslog SSL port. Keep the existing selector if it differs from *.*, which forwards all facilities and severities. GnuTLS autoloads with the driver selection. If equivalent TLS directives already exist, update them in place. Check other TLS actions before changing the shared default CA. Use the action-specific CA settings in the overlap example if those destinations need their own trust files.
$DefaultNetstreamDriverCAFile /etc/rsyslog.d/keys/ca.d/root.logit.io.crt
$ActionSendStreamDriver gtls
$ActionSendStreamDriverMode 1
$ActionSendStreamDriverAuthMode x509/name
$ActionSendStreamDriverPermittedPeer *.logit.io
*.* @@your-logstash-host.example:<syslog-ssl-port>
The two @ signs make the action use TCP. Driver mode 1 enables TLS and x509/name checks the certificate and its name against the configured peer. Keep the local file and journal rules in place. If you want to keep Papertrail running on this sender during verification, use the two-action configuration below in place of the single action.
On a systemd host, restart only after the configuration check succeeds, then read the latest service messages. The syntax check does not establish a connection. A test event in Discover is the delivery check.
sudo rsyslogd -N1 && sudo systemctl restart rsyslog
sudo journalctl -u rsyslog -n 30 --no-pager
Switch a remote_syslog2 file tailer
Check the service definition for the effective configuration path and any command-line destination overrides. The executable is usually named remote_syslog and its default configuration path is /etc/log_files.yml. Keep your actual file paths, exclusions and any settings for tags or hostname. The complete example below watches an application log directory and skips lines matching the health check pattern.
files:
- /var/log/myapp/*.log
exclude_patterns:
- 'GET /healthz'
destination:
host: your-logstash-host.example
port: <syslog-ssl-port>
protocol: tls
Replace the host and port placeholders with the stack values and enter the port as an integer. Remove --tcp from the service command and tcp: true from the config. Either forces plain TCP even with protocol: tls. Update or remove any --dest-host and --dest-port overrides so the service uses the new destination. On a systemd installation, run sudo systemctl daemon-reload after editing a unit, then restart the service and inspect its output. The example uses a unit named remote_syslog. Use the unit name and service manager from your installation.
sudo systemctl daemon-reload
sudo systemctl restart remote_syslog
sudo journalctl -u remote_syslog -n 30 --no-pager
If remote_syslog2 reports an unknown certificate authority, add the Logit.io CA to the trust store the service uses.
Append a marker to a watched file after the tailer starts. Use a designated test file that already exists, matches the glob and is readable by the service account. This tests the file path, glob and exclusions as well as the destination. Search for the phrase "Papertrail cutover app demo-002" in Discover.
printf '%s\n' 'Papertrail cutover app demo-002' \
| sudo tee -a /var/log/myapp/app.log >/dev/null
Keep file collection as a separate option
For a Collector deployment, follow the server log files setup to install the Contrib distribution and grant it access to the files. Hosted OpenTelemetry is available on all plans and is on by default for new Logs stacks. Open your Logs stack’s Endpoints page and find the Hosted OpenTelemetry card. If it is off, select Switch on, then copy the endpoint and credentials once they appear. If it is already on, copy them directly from the card. The otlp_http exporter uses OTLP with http/protobuf over HTTPS. Basic auth uses {stackId}-otel as the username and the Hosted OpenTelemetry API key as the password.
extensions:
basicauth/logit:
client_auth:
username: "{stackId}-otel"
password: "<hosted-otel-api-key>"
file_storage:
directory: /var/lib/otelcol/file_storage
receivers:
filelog:
include: ["/var/log/myapp/app.log"]
start_at: end
storage: file_storage
multiline:
line_start_pattern: '^\d{4}-\d{2}-\d{2}[T ]'
processors:
batch: {}
exporters:
otlp_http/logit:
endpoint: "https://{stackId}-otel.logit.io"
auth:
authenticator: basicauth/logit
service:
extensions: [basicauth/logit, file_storage]
pipelines:
logs:
receivers: [filelog]
processors: [batch]
exporters: [otlp_http/logit]
Replace the file path and credential placeholders before starting the service. The persistent directory /var/lib/otelcol/file_storage must already exist and be writable by the Collector user. The Collector saves file offsets there so the checkpoints survive restarts. With start_at: end, the first run starts at the end of the file when there is no saved offset. On later restarts, the Collector resumes from the saved offset and reads lines appended to that file while it was stopped.
This example’s multiline rule is for files whose records all start with a date such as 2026-12-06T. Adjust it to match your format or remove the block for single-line logs. After the Collector starts, write a normal record and an exception with continuation lines. To check that it resumes reading, stop the Collector, append a test record to the same file and start it again. Verify all three records in Logit.io before retiring the old tailer for that file.
Run both destinations through a soak period
During overlap, send the same selected events once to Papertrail and once to Logit.io. The example assumes your existing Papertrail action already uses TLS and shows both actions with separate CA files and permitted peers. It needs rsyslog 8.2108.0 or later for per-action StreamDriver.CAFile. On a pilot host, adapt these actions to the existing selector and destination values. Use a separate action queue for each destination. If you keep your existing Papertrail action, confirm it has its own queue. Keep only one action per destination for the selected stream. Both actions need to be in a ruleset that receives the events, before any stop that would prevent them from running.
Use the existing rsyslog work directory or configure a writable one with global(workDirectory="…") in the main config. Give each queue a unique filename. Each disk-assisted queue is an rsyslog-side buffer, not a hosted queue. It can spill to disk and retry after a network interruption. A full queue can still delay or drop events. Change the disk allowance to suit the host and expected outage volume.
*.* action(
type="omfwd"
target="your-papertrail-host.example"
port="<papertrail-tls-port>"
protocol="tcp"
StreamDriver="gtls"
StreamDriverMode="1"
StreamDriverAuthMode="x509/name"
StreamDriverPermittedPeers="*.papertrailapp.com"
StreamDriver.CAFile="/etc/papertrail-bundle.pem"
queue.type="LinkedList"
queue.filename="papertrail_syslog"
queue.maxDiskSpace="1g"
queue.saveOnShutdown="on"
action.resumeRetryCount="-1"
)
*.* action(
type="omfwd"
target="your-logstash-host.example"
port="<syslog-ssl-port>"
protocol="tcp"
StreamDriver="gtls"
StreamDriverMode="1"
StreamDriverAuthMode="x509/name"
StreamDriverPermittedPeers="*.logit.io"
StreamDriver.CAFile="/etc/rsyslog.d/keys/ca.d/root.logit.io.crt"
queue.type="LinkedList"
queue.filename="logit_syslog"
queue.maxDiskSpace="1g"
queue.saveOnShutdown="on"
action.resumeRetryCount="-1"
)
Run rsyslogd -N1 and restart after it passes. Keep the overlap long enough to cover the normal traffic you want to compare, including quiet periods or periodic jobs that generate important events. If remote_syslog2 already tails a file that rsyslog reads through imfile, have one of them forward it to Logit.io. The same applies when a file contains system messages already forwarded by rsyslog. If you need overlap on a file-only stream, use a separate pilot sender or keep the existing Papertrail route while an independent sender reads that file for Logit.io.
Prove the cutover from a test message to a count
Send a uniquely named test event from the pilot host. The following example uses user.notice. Change the priority if that combination would be filtered by the rule you kept. Use a different suffix each time you repeat the test.
logger -p user.notice -t migration-test "Papertrail cutover test demo-001"
Open OpenSearch Dashboards and go to Discover, then select the pattern that covers your pilot logs, logstash-* on the default Logstash route. Include the time the test was sent and select DQL in the search bar. The quoted phrase looks for the test message. If it returns two hits for a marker you sent once, check for duplicate forwarding.
"Papertrail cutover test demo-001"

Expand the result and check the message and timestamp against the sender. Check the parsed fields in Discover to identify the host and program field names available in your stack. If values you rely on are missing, map them with a scoped Logstash filter and send another sample. If the event has a numeric syslog priority, the Syslog PRI filter guide shows how to derive facility and severity for searching or alerting.
Next, compare one host in both products over the same fixed window. Papertrail counts by receipt time. Check which time field the Discover index pattern uses. On the default Logstash route, @timestamp is the event’s timestamp. Check a sample to see whether it reflects the timestamp from the sender or when the pipeline received the event. Set the same time zone and boundaries, scope each search to the matching sender and use equivalent message and exclusion conditions. Wait for any retry backlog to clear before recording the counts and compare events near both window boundaries. A count difference can come from different drop rules, a second copy of a file or late events landing outside the chosen window. Record the counts and the explanation before moving more hosts.
Rebuild the searches people actually use
Start with the saved searches linked in runbooks or used to drive alerts. Papertrail searches can combine words and quoted phrases, scope by attributes such as program: or host: and exclude terms with a leading -. Start with the text part in DQL. These unqualified queries search the fields configured for the selected index pattern. Add the equivalent field filter from Discover where the search needs a host or program. Phrase and term matching depend on how the destination indexes the text, so check the results against your known matches and exclusions.
| Papertrail search | DQL starting point | Scope to restore in Discover |
|---|---|---|
program:sshd "Failed password" | "Failed password" | Filter the confirmed program field to the value on an SSH log. |
host:demo-web-01 error -"GET /healthz" | error and not "GET /healthz" | Filter the confirmed host field to the pilot host’s value. |
("Failed password" OR "Invalid user") -healthcheck | ("Failed password" or "Invalid user") and not "healthcheck" | Keep the source scope from the original saved search, if it had one. |

Save each verified search in Discover. Enable alerting under Alerting & Notifications for your Logs stack and create an ElastAlert 2 rule in YAML. Use the rule’s OpenSearch filter syntax and carry over the threshold, evaluation window and destination. Run Test only to check parsing and query results, then choose Update when the rule is ready. Confirm that the intended recipient gets a test notification before you turn off the old alert. During the overlap, route pilot notifications to a test destination if both systems would otherwise page the same team.
Diagnose the failures you can see on the sender
- GnuTLS won’t load. If rsyslog reports that
lmnsd_gtlsis missing, install the matching GnuTLS module for your rsyslog build. Where the driver autoloads, remove a redundant explicit module load. Make the public CA readable withchmod 644and check that the service account can traverse the parent directories. - The connection fails or the name is rejected. Confirm that the legacy action uses
@@for TCP. A single@uses UDP. Compare the destination with the signed-in host and Syslog SSL port and make sure the name matches the certificate and permitted peer. Use the assigned hostname in place of an IP address or an alias that fails name verification. - Count drops during an outage, then rises after it. Check the sender’s action suspension and resumption messages, queue capacity and free disk space. Allow the backlog to drain before taking a count. If a queue filled or the sender discarded messages, inspect that interval separately.
- Events show up outside the expected time window. RFC 3164 timestamps carry neither a year nor a time zone. Compare the time in the sender with the parsed time in Discover, including around midnight. Agree on a time zone for both search windows and check the filter’s timestamp handling before changing alert windows.
- Stack traces are split across rows. With line-by-line file forwarding, each line goes as a separate syslog event. For application files where these lines need to stay together, use the Collector route and match the start of each record with the multiline rule.
- A tailer is silent or an event appears twice. Check file and parent directory access under the remote_syslog2 service account. Confirm that rotated files keep readable permissions and that a test line avoids the exclusions. If each line appears twice, trace the watched paths and rsyslog ruleset to find the second reader or forwarding action.
Retire the old destinations in batches
- Record the hosts, matching sample events, count comparisons and working alerts for the batch. Keep the last known-good sender configuration ready for rollback.
- Remove the Papertrail forwarding actions from rsyslog and update their deployment templates. If you repointed remote_syslog2, keep its Logit.io destination and remove stale Papertrail values from your deployment templates. If the Collector took over some files, verify delivery and remove those files from the old tailer’s list. If it has no files left, stop the old tailer and disable it at startup.
- Validate and restart the services you are keeping. Write another new event and confirm that it still arrives in Logit.io and that the retired Papertrail route has stopped receiving new events for that stream.
- Disable the corresponding Papertrail alerts after the replacement alerts work. Keep Papertrail history and archives accessible until your retention needs are met. Record where responders can find old events and which timestamp marks the start of the new stream.
Use the log migration guides if the same rollout includes other log sources. To try this cutover with a pilot sender, start a free trial with full access to every feature and use Logit.io Log Management to search the new events in OpenSearch Dashboards and check the overlap.
Unlock complete visibility with hosted ELK, Grafana, and Prometheus-backed Observability
Papertrail cutover FAQ
Can I import old Papertrail logs or saved searches this way?
This workflow moves new events. Keep earlier records available in Papertrail or its archives and recreate saved searches in OpenSearch Dashboards.
Can I reuse Papertrail’s syslog port?
Use the hostname and Syslog SSL port assigned to your Logit.io Logs stack. The old port describes the Papertrail destination, and the Logit.io TLS endpoint expects TLS over TCP.
Do I need to install a new agent on every Linux host?
You can keep rsyslog or remote_syslog2 on hosts where they already collect the right streams. Install the Collector where you choose to replace file tailing, such as applications whose logs have multiline records.
What if the logger marker lands in the journal but I can’t find it in Discover?
Check the selector and ruleset first. The priority must match the forwarding action. Then check the service output, destination and TLS settings before widening the Discover time range or checking a different index pattern.
How long should I keep both destinations active?
Keep the overlap through a representative traffic cycle and until you have explained any differences in counts for the same host and window. Verify the alerts you rely on before removing the old route.
