tdmalone / cloudwatch-to-papertrail

Lambda to send logs from AWS CloudWatch to Papertrail. Modified version of the original by Apiary Inc.
MIT License
2 stars 2 forks source link

Papertrail Token #2

Open amal-v opened 6 years ago

amal-v commented 6 years ago

I'm having trouble trying to understand how this works. There is no place to add the Papertrail Token, so that the logs will be exported to my account.

amal-v commented 6 years ago

@tdmalone Thanks you!

tdmalone commented 6 years ago

Hi @illmumine!

Your PAPERTRAIL_HOST and PAPERTRAIL_PORT are exported as environment variables before running make (see first code block under the Usage heading in the readme).

You can get these values from your Papertrail account when adding a new system.

If you're referring to your Papertrail API token, that's only used for the Papertrail API, which isn't used for sending logs. The hostname and port provided by Papertrail uniquely identify your account.

(It's probably worth noting that yes, anyone could guess your log hostname and port, so if you're concerned about getting unsolicited logs then you might want to check Papertrail's documentation on locking down sender registration - note that if you disable new sender registration, you'll need to enable it again for the first run of this function)

Let me know how you go - or if I completely missed what you're asking, let me know where you got to in the set up steps :)