Skip to main content

OSM Fastly Logs

This is ofastlylog, the software that processes OpenStreetMap logs from Fastly.

Install

Packaged versions of ofastlylog can be installed like any other python software. To do so in a virtual environment do

python3 -m venv venv
venv/bin/pip install ofastlylog
venv/bin/ofastlylog --help

Contributing

This code is difficult to contribute to unless you have access to the OSMF AWS accounts. Recommendations to improve this are welcome.

Development is done using uv.

git clone https://github.com/pnorman/ofastlylog.git
cd ofastlylog
uv sync
uv run pre-commit install
uv run ofastlylog --help

Development could also be done using a venv and pip but this is not officially supported

python3 -m venv venv
venv/bin/pip install -e .
venv/bin/ofastlylog --help

Usage

AWS credentials need to be set up for ofastlylog to access the service logs. In a typical setup this is done with

export AWS_PROFILE=osm-service-logs

ofastlylog has two commands right now: one to create tables, and another to perform hourly tasks.

All commands take a list of service tables to create or process. Specify these with --<servicename> <tabletype>, e.g. --tile success for the tile.openstreetmap.org success table. See Table Types for a full list of combinations.

ofastlylog tools

Contains tools for creating and working with setup tables

ofastlylog tools create-table

Creates tables in athena.

ofastlylog tools check-hour

TODO: Check if a particular hour has data in the table

ofastlylog process

Peform log generation and processing

ofastlylog process hourly

Perform log processing intended to be run hourly

Table types

Table --tile --vector --nominatim
base ✓ ✓ ✓
success ✓ ✓ ✓
minimized Not implemented not impelemented not impelemented

Architecture

Several OSMF-hosted services use Fastly as a CDN. Fastly is set up to deposit compressed log files in a s3 bucket. The log files contain line-delimited JSON objects deposited every 10 minutes.

Because compressed text is slow to read, these files are processed with ofastlylog process hourly. This creates a number of tables. All tables are stored as Parquet data with hourly partitioning.

Metadata

Release files for ofastlylog 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ofastlylog 0.4.0
File Size Uploaded
ofastlylog-0.4.0.tar.gz 58.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ofastlylog 0.4.0
File Interpreter ABI Platform
ofastlylog-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 80.9 kB

Release files / ofastlylog-0.4.0.tar.gz

Download URL ofastlylog-0.4.0.tar.gz
Size 58.3 kB
Tags Source
SHA-256 checksum
How to use checksums
312059df4b9b6cedd8868652b9b461b0c479012ad0ec863f8f3aaf42984747b6
BLAKE2b-256 checksum
How to use checksums
a59e93fe38c856c39c1a2740535a770a2bdc104bef7a3f453e2b07de1d6a9d14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release files / ofastlylog-0.4.0-py3-none-any.whl

Download URL ofastlylog-0.4.0-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48ecf6bb10402e1e84340f619a36671fb0375c17dbecef2ded7f6fb15c73f36f
BLAKE2b-256 checksum
How to use checksums
f03aa0e96a7588dc9a1474bf653f8e09622e6c24310debc428e57b7a61805c9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.0

2 release files

0.4.1

2 release files

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page