--- title: "📜 Real-Time SBC & RTPEngine Log Viewer" description: "Real-time streaming log viewer and diagnostic filter for Kamailio SIP signaling, RTPEngine media relay, Pike anti-flood alerts, and SBC API events." --- ## 📖 Overview & Architecture The **SBC Log Viewer** module (`Monitoring → Logs`) streams real-time diagnostic logs from **Kamailio**, **RTPEngine**, **nftables / Pike Perimeter Guard**, and the **Ring2All SBC API** directly into the web console with severity filtering, Call-ID correlation, and regex search. --- ## 🎯 User Roles & Key Capabilities | Role | Primary Use Case | Key Capabilities | | :--- | :--- | :--- | | **VoIP Troubleshooting Engineer** | Live SIP signaling and SDP media negotiation debugging | Filter live logs by SIP `Call-ID`, source IP, or severity level, pause live tailing, and export diagnostic log bundles. | | **SecOps / Firewall Analyst** | Investigating SIP flood blocks and ACL rejections | Filter security events generated by `pike`, `htable` IP bans, and failed digest authentication attempts. | | **SBC Administrator** | Adjusting runtime log verbosity during maintenance | Temporarily elevate Kamailio core debug verbosity (`corex.debug`) for targeted troubleshooting and restore baseline levels afterward. | --- ## 📋 Field & Configuration Reference | Field / Control | Type | Description | Default | | :--- | :--- | :--- | :--- | | **Log Source** | Select | Target daemon stream (`Kamailio SIP Engine`, `RTPEngine Media Relay`, `SBC API Server`, `Firewall & Pike Security`). | `Kamailio SIP Engine` | | **Severity Filter** | Select | Minimum syslog severity (`ERROR`, `WARN`, `INFO`, `DEBUG`). | `INFO` | | **Search / Call-ID Filter** | Text | Real-time substring or Call-ID filter applied to incoming log lines. | *Empty* | | **Tail Line Limit** | Select | Number of recent log lines buffered in the viewport (`200`, `500`, `1000`). | `500` | | **Live Stream Toggle** | Button | Pauses or resumes real-time log streaming for detailed line-by-line inspection. | `Streaming` | --- ## ⚙️ Operational Workflow 1. Navigate to **Monitoring → Logs**. 2. Select the **Log Source** (e.g., `Kamailio SIP Engine` or `RTPEngine Media Relay`). 3. Enter a SIP `Call-ID` or peer IP address in the **Search Filter** box to isolate traffic for a specific call attempt. 4. Click **Download Log Excerpt** to save the filtered lines as a plain-text `.log` file for carrier escalation tickets. --- ## 🔐 Security & RBAC Considerations - **Sensitive Credential Masking**: Authorization digests, API tokens, and database connection strings are automatically redacted before log lines are transmitted to the browser. - **Path Traversal Protection**: Log source selection uses a strict server-side enum mapping rather than arbitrary filesystem paths, and requires `sbc.monitoring.logs` read permissions.