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 --website
base ✓ ✓ ✓ ✓
success ✓ ✓ ✓ ✓
aggregation ✓ ✓ 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.1

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.1
File Size Uploaded
ofastlylog-0.4.1.tar.gz 58.4 kB Details

Built distribution (wheel)

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

Total release size: 81.1 kB

Release files / ofastlylog-0.4.1.tar.gz

Download URL ofastlylog-0.4.1.tar.gz
Size 58.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e7c6503fd31cf830d32b732f4ae43bb36b2385e1a975b0f172df9b84d1d9e767
BLAKE2b-256 checksum
How to use checksums
cceb044fc33f2fbcc0efec9fe849a2eab9ab8a5463538233881e9990be0bbf2d
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 12, 2026.

Transparency log

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

Download URL ofastlylog-0.4.1-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6d1ee4e2935805a3aebd78eb452c8bba4dd32d28512511c3ef9e9bf36ada9e0
BLAKE2b-256 checksum
How to use checksums
f854648532336d7582e1cd6d93dd9504e96e4399ec0c98f5953d89a3d893f523
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 12, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.0

2 release files

This release

0.4.1 This release

2 release files

0.4.0

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