Introduction

Last9’s git based path mapping feature simplifies mapping log urls to services - which is similar to how you view your APIs - bunch of endpoints which denote a service.

It works as follows:

  1. Enable logging for your log source (ALB, Nginx, etc.)
  2. Onboard log sources by following a simple directory convention in your Last9 github repo.
  3. Update path mapping file by following a simple json file convention.
  4. Raise a PR.
  5. Last9 validates and deploys it.
  6. As soon as logs are ingested that match that specific path mapping - Last9 dashboard reflects the same.

Sample setup

Let us demonstrate this with a sample setup

  1. Onboard an ALB with the following requirement:
    1. Map /image/jpeg with image-jpeg-service.
    2. Map /image/png with image-png-service.
    3. Map /status/* with status-service.

Pre-requisites

  1. You have a Last9 github repo with Last9 Github app installed as per this guide.
  2. At least one ALB onboarded by Last9 so that you can use it as a reference. If it isn’t there and this is your first LB - Last9 team will help you onboard it.

Steps

  1. Enable ALB logging by following this guide.

  2. Update your Last9 github repo’s deploy.yaml file. As Last9 team does the initial onboarding for the first ALB - you should already have the file present.

    logs-to-metrics:
      - ./logs-to-metrics/alb/test-alb
      # add more log sources here