Logentries Docs

Find comprehensive guides and documentation to help you start and continue to work with Logentries.


Search results for "{{ search.query }}"

No results found for "{{search.query}}". 
View All Results


Collecting log data from Amazon RDS instances can be done through HTTP POST. There is some configuration required to make this happen.

Required Configuration

Install the AWS RDS Command Line Tools

  1. Obtain the command line tools
  2. Copy the zip file to your desired installation path and unzip
  3. Set up the following environment variables:
    export JAVA_HOME=<PATH>
    export AWS_RDS_HOME=<path-to-tools>
    export PATH=$PATH:$AWS_RDS_HOME/bin
  4. Set up your credentials by entering access keys here:
  5. Verify that the tools were set up correctly:
    • rds-describe-db-log-files <rds instance name here>
      If the last step returns a list of available log files, the tools were set up correctly. If any issues occur, please refer to AWS documentation linked above.

Sending logs to Logentries

  1. Set up a token based log in your Logentries account
  2. Create a shell script with the following content and save as le_rds.sh:
#! /bin/bash
while read data;
        curl -x POST --data "$data" $URL$TOKEN
  1. Run chmod +x le_rds.sh
  2. Launch the script in background:
    $ nohup sh -c 'rds-watch-db-logfile <your db instance name> --log-file-name <your db log file name> | ./le_rds.sh'

Alternatively use Logentries Linux Agent

  1. Install the Linux Agent
  2. Create a file to monitor (i.e /var/log/rds_to_le.log)
  3. Run "sudo le follow /var/log/rds_to_le.log)
  4. Run:
    rds-watch-db-logfile <your db instance name> --log-file-name <your db log file name> > > /var/log/rds_to_le.log

Please note that a lot of RDS logs are rotated. In that case use the rds-watch-db-logfile to monitor the current active log (i.e error.log instead of error.log.1)