How to configure Linux server send log to Papertrail

Papertrail is a cloud hosted log management provider.

What are the benefits of using Papertrail cloud hosted log management service:
1) They provided an intuitive web interface that’s built with useful tools and features
2) Powerful command-line tools, where you can performs real-time tail and search.
3) Automated export for reporting
4) Search alerts

Papertrail have free plan that comes with 5GB for first month and subsequent 100MB for every month. You can search your logs up to 48 hours, and the data are archived up to 7 days.

papertrail pricing plan

How to configure your Linux system to send a log to Papertrail?
First, use this command to check which logger your Linux server uses:

# ls -d /etc/*syslog*
/etc/rsyslog.conf /etc/rsyslog.d

As my demo Linux server is using rsyslog, add the remote host provided by Papertrail into the last line in the /etc/rsyslog.conf. For example:


Now, restart the rsyslog service to reload the config file

sudo service rsyslog restart

That’s all. Next, we’ll look at the Dashboard.

Posted in Linux Tagged with:

Leave a Reply