-
Notifications
You must be signed in to change notification settings - Fork 184
IP Geo
likaia edited this page Jan 22, 2026
·
2 revisions
- 数据库缓存(
ip_geo_cache) - 本地库 ip2region(优先要求有城市)
- 远程接口
ip-api.com(批量)
本地库能返回城市信息时会优先采用;若城市缺失或未知,则调用远端补全。
- 日志解析时,将 IP 写入
ip_geo_pending队列。 - 定时任务批量处理 pending(默认每次 500 个)。
- 写入
ip_geo_cache并回填日志表中的 location 维度。 - 缓存数量超过
system.ipGeoCacheLimit时会清理最早记录。
接口: GET /api/status
-
ip_geo_parsing: 是否正在解析 -
ip_geo_pending: 是否存在待解析队列 -
ip_geo_progress: 进度(0~1) -
ip_geo_estimated_remaining_seconds: 预计剩余秒数
- 内网 IP: 国内显示“内网”,全球显示“本地网络”。
- 无法解析: 显示“未知”。
- 待解析期间: 可能显示“待解析”或“未知”。
- 远端接口受网络影响,可能延迟或失败。
- IPv6 会直接走远端解析。
- 若想减少远端调用,请确保本地库可覆盖更多 IP 范围。
- 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)