-
Notifications
You must be signed in to change notification settings - Fork 183
Database Schema EN
likaia edited this page Jan 22, 2026
·
1 revision
Site ID is derived from websites[].name (md5 first 4 chars). Use {site} below.
-
{site}_nginx_logs: main log table (range partitioned bytimestamp). -
{site}_dim_ip/{site}_dim_url/{site}_dim_referer/{site}_dim_ua/{site}_dim_location -
{site}_agg_hourly/{site}_agg_daily -
{site}_agg_hourly_ip/{site}_agg_daily_ip {site}_first_seen-
{site}_sessions/{site}_session_state -
{site}_agg_session_daily/{site}_agg_entry_daily
-
ip_geo_cache: persistent IP -> location cache -
ip_geo_pending: pending queue
{site}_nginx_logs(timestamp)-
{site}_nginx_logs(timestamp, ip_id)where pageview -
{site}_nginx_logs(ip_id, ua_id, timestamp)where pageview
- The log table is partitioned but only a default partition is created now.
- Renaming a site creates a new set of tables.
- Home
- 快速开始
- 部署方式
- SQLite -> PostgreSQL 迁移
- 配置说明
- 完整字段参考
- 日志来源配置
- 支持的日志格式
- Agent 采集
- 日志解析机制
- IP 归属地解析
- 数据库结构
- 常见问题
- Home (EN)
- Quick Start (EN)
- Deployment (EN)
- Migration (EN)
- Configuration (EN)
- Config Reference (EN)
- Log Sources (EN)
- Supported Log Formats (EN)
- Agent Collection (EN)
- Log Parsing (EN)
- IP Geo (EN)
- Database Schema (EN)
- FAQ (EN)