Support Logging setup Amazon SNS

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 as shown in the image below.

Step1#CreateTopic

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.

http://logs-01.loggly.com/inputs/TOKEN/tag/SNS

Replace:

See screenshot below.

Step2#CreateSubscription

3. Confirm Subscription

You will be assigned a new Subscription Id and displays pending confirmation message.

Step4_SubscribeConfirmation

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.

Step5_SubscribeUrl_Loggly

Copy the URL from the confirmation log sent by SNS service and confirm your subscription in the AWS SNS Console.

Step4#SubscribeConfirmation

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:

Step5#Publish

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
Step6#PublishedMessage

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.

Thanks for the feedback! We'll use it to improve our support documentation.