Documentation forLoggly

Send Amazon SNS Messages to Loggly

Loggly provides the infrastructure to aggregate and normalize log events so they are available to explore interactively, build visualizations, or create threshold-based alerting. In general, any method to send logs from a system or application to an external source can be adapted to send logs to Loggly. The following instructions provide one scenario for sending logs to Loggly.

You can push your Amazon Web Services Simple Notification Service (SNS) messages to Loggly via HTTP / HTTPS endpoints. Loggly automatically parses the logs sent by SNS in JSON format.

Set Up Amazon SNS Messages

1. Create a Topic

Sign in to the AWS Management Console.

Open Amazon SNS Console.

Create a Topic name (example: loggly-sns).

2. Subscribe to Loggly HTTP / HTTPS endpoint

Click on the created topic. Click to create New Subscription, and then select HTTP or HTTPS in Protocol dropdown.

Copy the URL below, and then paste to the New Subscription dialog. In the dialog, replace TOKEN with your customer token from the source setup page.

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

Click Subscribe. See screenshot below.

Step2#CreateSubscription

3. Confirm Subscription

You are assigned a new Subscription ID and pending confirmation message.

Step4_SubscribeConfirmation

You 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 Publish the Topic. You can ignore Subject and Message in the dialog box shown. The published message is sent to Loggly. See screenshot below:

Step5#Publish

5. Verify Events

Search Loggly events with the tag as SNS over the last 30 minutes. It may take few minutes to index the events. If indexing doesn’t work, see Troubleshooting.

tag:SNS 

Step6#PublishedMessage

Troubleshooting

If you don’t see any data show up in the verification step, 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.
Related Links: AWS CloudTrail Logs, AWS Config Logging, and AWS S3 Logs.