Send Amazon SNS Messages to Loggly
You can push your Amazon Web Services Simple Notification Service (SNS) messages to Loggly via HTTP / HTTPS endpoints. We will automatically parse the logs sent by SNS in JSON format. We offer an example showing how to send them to Loggly.
Amazon SNS Messages Setup
1. Create a Topic
To create a new Topic you need to sign in to the AWS Management Console and open Amazon SNS Console. Create a new Topic as shown in the image below.
2. Subscribe to Loggly HTTP / HTTPS endpoint
Click on the created topic. Click to create New Subscription, select HTTP or HTTPS in Protocol dropdown and paste the following URL and click subscribe.
https://logs-01.loggly.com/inputs/TOKEN/tag/SNS
Replace:
- TOKEN: your customer token from the source setup page
See screenshot below.
3. Confirm Subscription
You will be assigned a new Subscription Id and displays pending confirmation message.
You will receive a Subscription URL in a log sent by Amazon SNS service to your Loggly account. Copy the URL and confirm your subscription. See screenshot below.
Copy the URL from the confirmation log sent by SNS service and confirm your subscription in the AWS SNS Console.
4. Publish Message
You can publish a message by clicking on publish the Topic button. You can pass Subject and Message in the dialog box shown. The published message will be sent to Loggly. See screenshot below:
5. Verify Events
Search Loggly events with the tag as SNS over the past 20 minutes. It may take few minutes to index the events. If if doesn’t work, see the troubleshooting section below.
tag:SNS
Troubleshooting
If you don’t see any data show up in the verification step, then check for these common problems.
- Wait a few minutes in case indexing needs to catch up
- Make sure you configured your customer token
- Make sure you have configured same protocol as mentioned in the Endpoint
- Search or post your own Amazon SNS logging questions in the community forum.
Please see these related links for: AWS CloudTrail Logs, AWS Config Logging, and AWS S3 Logs.
When the APM Integrated Experience is enabled, Loggly shares a common navigation and enhanced feature set with the other integrated experiences' products. How you navigate Loggly and access its features may vary from these instructions. For more information, go to the APM Integrated Experience documentation.