| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 531 |
| Technical Name |
dff_api_rpc_log |
| License | LGPL-3 |
API / RPC Audit Log Monitor
Monitor and audit all external XML-RPC & JSON-RPC traffic
Hệ thống Giám sát và Ghi log truy cập API
Gain complete visibility into your Odoo instance's API traffic. Automatically log external RPC requests, payloads, execution time, and error messages to ensure data integrity and track integration health.
Nắm bắt toàn bộ lưu lượng API của hệ thống Odoo. Tự động ghi lại các yêu cầu RPC, nội dung gửi đến, thời gian thực thi và thông báo lỗi. Công cụ đắc lực cho Quản trị viên hệ thống.
The Problem / Vấn đề
By default, Odoo does not provide detailed UI logs for external XML-RPC or JSON-RPC API calls. When a third-party integration (e-commerce, WMS, external accounting) fails or sends corrupted data, debugging becomes a nightmare, requiring developers to dig through raw server log files.
Mặc định, Odoo không hiển thị chi tiết các cuộc gọi API từ bên ngoài trên giao diện. Khi các hệ thống tích hợp bên thứ ba gặp lỗi, việc tìm kiếm và khắc phục sự cố rất khó khăn, đòi hỏi lập trình viên phải đọc trực tiếp từ log của server.
The Solution / Giải pháp
This module seamlessly hooks into Odoo's RPC dispatcher, generating structured Audit Logs directly in the Odoo Backend. You can easily filter by user, database, success state, or IP address, saving hours of debugging time while maintaining strict security auditing.
Module can thiệp vào bộ xử lý RPC của Odoo để ghi lại nhật ký Audit Log trực quan ngay trên phần mềm. Bạn có thể dễ dàng lọc theo người dùng, IP, trạng thái lỗi... tiết kiệm hàng giờ đồng hồ gỡ lỗi và đảm bảo an ninh hệ thống.
Core Features / Tính năng chính
Comprehensive Logging
Captures Odoo model, method, caller IP, User Agent, JSON/XML-RPC service, and execution duration.
Ghi lại model, hàm, IP gọi, thời gian thực thi và dịch vụ RPC được sử dụng.
Auto Password Masking
Automatically replaces passwords with asterisks (***) in authentication payloads to ensure security.
Tự động che giấu mật khẩu (***) trong quá trình xác thực đăng nhập để bảo mật.
Auto Cleanup Cron
Includes an automated scheduled action to purge old logs (default 90 days) to prevent database bloat.
Tích hợp Cron job tự động dọn dẹp log cũ (mặc định 90 ngày) tránh đầy bộ nhớ.
Error Tracking
Logs traceback and error messages of failed API requests for rapid root-cause analysis.
Ghi lại chi tiết lỗi (traceback) của các yêu cầu thất bại để gỡ lỗi nhanh chóng.
Detailed API Log View
Review request parameters, method names, and execution times without accessing the server terminal.
Xem chi tiết tham số yêu cầu, tên hàm và thời gian chạy mà không cần mở terminal của server.
How To Use / 3 Bước Đơn Giản
Install App
Install the module from Apps menu.
Cài đặt module từ menu Apps.
Configure (Optional)
Adjust retention days and payload limit in Settings > External RPC Audit.
Thiết lập thời gian lưu và giới hạn tải trọng trong Cấu hình.
Review Logs
Go to Settings > Technical > External RPC Logs to view.
Vào menu Thiết lập > Kỹ thuật > External RPC Logs để xem.
Frequently Asked Questions (FAQ)
Does this log internal web traffic (employees using Odoo UI)?
No. The module only hooks into external `/xmlrpc` and `/jsonrpc` endpoints used by third-party integrations or external scripts. Standard browser interactions are not logged, keeping your database clean.
(Chỉ ghi nhận các cuộc gọi API từ ngoài vào thông qua endpoint xml/json rpc, KHÔNG ghi nhận các thao tác web của nhân viên làm việc.)
Are passwords saved in the database?
No. The module has a built-in masking mechanism that automatically replaces the password parameter with `***` during `authenticate` and `login` RPC calls before writing to the database.
(Mật khẩu luôn được mã hóa thành dấu *** khi lưu vào log.)
Is this module compatible with Odoo Enterprise?
100% Compatible. The module works perfectly on both Odoo 18 Community (CE) and Odoo 18 Enterprise (EE) as it hooks directly into the low-level RPC dispatcher.
(Tương thích 100% với cả Odoo 18 Community và Odoo 18 Enterprise.)
Technical Details
Compatibility
- Odoo 18 Community Edition (CE) & Enterprise
- Depends on:
basemodule - Uses dedicated database cursor for logging
- Never breaks or blocks the actual RPC transaction
Performance Safe
- Does not intercept `/web` UI routes
- Automated scheduled cleanup cron job
- Payloads are truncated safely if they exceed max length
Community Support & Maintenance
Installation Assistance
As an individual developer, I provide foundational support to ensure the module installs correctly and its core features operate as described.
Rapid Bug Resolution
If you encounter functional exceptions or tracebacks introduced by this module, I will investigate and release fixed updates as a priority.
Please log in to comment on this module