Overview
This is a repackaged software product wherein additional charges apply for hardening, security configuration, and support.
WHAT IS GRAFANA LOKI
Grafana Loki is a horizontally-scalable, multi-tenant log aggregation system, shipped as a single statically linked Go binary and run here in monolithic mode on one node. Instead of indexing the full text of every log line, Loki indexes only a small set of labels and stores compressed log chunks, which keeps storage and cost low. It exposes an HTTP API: push logs in (Promtail, Grafana Alloy, the Docker logging driver, Fluentd or Fluent Bit) and query them back with LogQL, Loki's label-and-filter query language. This image stores chunks and the TSDB index on the local filesystem under /var/lib/loki, with retention and compaction enabled. Loki has no web UI of its own; you query it through Grafana (it pairs with the Lynxroute Grafana image as a data source), logcli, or curl. AGPL-3.0 license, no vendor lock-in. Running your own Loki keeps all log data inside your AWS account.
WHAT THIS AMI ADDS
Security hardening:
- A unique Basic Auth password generated at first launch for the Nginx perimeter (Loki has no native auth)
- Nginx reverse proxy with TLS - the Loki API proxied on port 443
- Loki HTTP API (3100) and gRPC (9096) bound to localhost only - Nginx is the only exposed door
- Usage analytics disabled (no phone-home to the upstream telemetry endpoint)
- Loki runs as a non-root service with a restricted systemd unit
- UFW firewall - ports 22, 80, 443 only
- fail2ban, AppArmor
- CVE scan - every image is scanned for vulnerabilities before release
OS hardening (CIS Level 1):
- CIS Ubuntu 24.04 LTS Level 1 benchmark applied via ansible-lockdown
- auditd, SSH hardening, Kernel hardening, IMDSv2 enforced
Compliance artifacts:
- SBOM - CycloneDX 1.6 at /etc/lynxroute/sbom.json
- CIS Conformance Report at /etc/lynxroute/cis-report.html
- CIS Tailored Profile at /usr/share/doc/lynxroute/CIS_TAILORED_PROFILE.md
Highlights
- Loki security baked in: a unique Basic Auth password generated at first launch, an Nginx TLS reverse proxy on 443, the Loki API and gRPC bound to localhost only, and usage analytics disabled - unlike bare Loki AMIs that ship the HTTP API open on 0.0.0.0 with no authentication, no TLS, and analytics reporting left on.
- CIS Level 1 hardened Ubuntu 24.04 LTS: auditd, fail2ban, AppArmor, SSH key-only, IMDSv2 enforced. CVE-scanned before every release. SBOM (CycloneDX) and CIS Conformance Report included.
- Cost-efficient log aggregation: indexes labels not full text, queried with LogQL, pairs with Grafana as a data source. Grafana Loki AGPL-3.0 license - fully auditable, no vendor lock-in.
Details
Introducing multi-product solutions
You can now purchase comprehensive solutions tailored to use cases and industries.
Features and programs
Financing for AWS Marketplace purchases
Pricing
Free trial
Dimension | Cost/hour |
|---|---|
t3.medium Recommended | $0.02 |
t3.large | $0.03 |
t3.small | $0.02 |
m6i.xlarge | $0.05 |
m6i.large | $0.03 |
Vendor refund policy
We do not offer refunds for this product. AWS infrastructure charges (EC2, EBS, data transfer) are billed separately by AWS and are not refundable by us.
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
64-bit (x86) Amazon Machine Image (AMI)
Amazon Machine Image (AMI)
An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.
Version release notes
Grafana Loki 3.7.2 - Initial release (June 2026)
- Grafana Loki 3.7.2 on Ubuntu 24.04 LTS
- Loki OSS (AGPL-3.0) single binary, run monolithic (-target=all) with filesystem chunk storage
- Loki HTTP API (3100) and gRPC (9096) bound to localhost only - Nginx is the only exposed door
- Unique Basic Auth password generated at first launch for the Nginx TLS perimeter on 443
- Usage analytics disabled (no phone-home)
- Loki runs as a non-root service with a restricted systemd unit
- CIS Level 1 hardening applied (ansible-lockdown/UBUNTU24-CIS)
- CVE-scanned before every release
- UFW firewall pre-configured (ports 22, 80, 443 only)
- fail2ban, auditd, AppArmor pre-configured
- SBOM (CycloneDX 1.6) at /etc/lynxroute/sbom.json
- CIS Conformance Report (OpenSCAP) at /etc/lynxroute/cis-report.html
- IMDSv2 enforced
Additional details
Usage instructions
- Launch instance (t3.medium recommended)
- Open Security Group - allow TCP 443 and TCP 80 from your IP
- SSH: ssh -i key.pem ubuntu@<PUBLIC_IP>
- Read credentials: sudo cat /root/loki-credentials.txt
- Open https://<PUBLIC_IP> in your browser - accept the self-signed certificate warning, sign in with the Basic Auth user and the generated password; you will see the Loki API info page
- Add Loki to Grafana: data source type Loki, URL https://<PUBLIC_IP>/, Basic Auth on (user admin + the generated password), TLS skip-verify until you install a CA certificate
- Ship logs to https://<PUBLIC_IP>/loki/api/v1/push (Promtail, Grafana Alloy, the Docker loki driver) and query with LogQL
Loki has no web UI of its own - it is a LogQL API backend queried through Grafana, logcli, or curl. The Basic Auth password is generated uniquely at first launch. Credentials are saved to /root/loki-credentials.txt at first boot. Logs are stored on the local filesystem under /var/lib/loki with retention and compaction enabled. Replace the self-signed TLS certificate with a CA-signed certificate (sudo certbot --nginx) for production use.
Resources
Vendor resources
Support
Vendor support
Visit us online: https://lynxroute.com
For Loki documentation: https://grafana.com/docs/loki/latest/ For Loki upstream issues:
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.