Skip to content

logzio/synthetic-link-detector

Repository files navigation

Synthetic Link Detector

This project allows you to detect broken links in a web page, and to get additional data about the links.

Getting Started

To deploy this project, click the button that matches the region you wish to deploy your Stack to:

Region Deployment
us-east-1 Deploy to AWS
us-east-2 Deploy to AWS
us-west-1 Deploy to AWS
us-west-2 Deploy to AWS
eu-central-1 Deploy to AWS
eu-north-1 Deploy to AWS
eu-west-1 Deploy to AWS
eu-west-2 Deploy to AWS
eu-west-3 Deploy to AWS
sa-east-1 Deploy to AWS
ap-northeast-1 Deploy to AWS
ap-northeast-2 Deploy to AWS
ap-northeast-3 Deploy to AWS
ap-south-1 Deploy to AWS
ap-southeast-1 Deploy to AWS
ap-southeast-2 Deploy to AWS
ca-central-1 Deploy to AWS

1. Specify stack details

Specify the stack details as per the table below, check the checkboxes and select Create stack.

Parameter Description Required/Default
logzioToken Replace <<SHIPPING-TOKEN>> with the token of the account you want to ship to. Required
logzioListener Listener host, and port (for example, https://<<LISTENER-HOST>>:8071). Required
url Full URL of the web page you wish to monitor. For example - https://logz.io Required
functionInvocationInterval The scheduling expression that determines how often the Lambda function runs Default: rate(1 days)
logzioCustomFields Enrich the data with custom fields, formatted as key1=value1,key2=value2 -
functionTimeout Timeout for your Lambda function, in seconds Default: 60
functionMemorySize Memory size (in MB) for your Lambda function Default: 512
logzioType The log type you'll use with this Lambda. Default: synthetic-links-detector

2. Send logs

Give the stack a few minutes to be deployed.

Once the stack will be created, the function will run one time and send data, then it will run in the rate the you've defined.

Copyright Notice

This project's code partially based on httpstat repo.

Changelog:

  • 0.0.3:
    • Update dependencies.
    • Handle redirects:
      • Each redirect is sent as a separate log, with its data.
      • A link from a redirect will have a redirected_from field.
  • 0.0.2: Add geolocation data.
  • 0.0.1: Initial release.