Log File Viewer Module Documentation
Table of Contents
- Module Overview (Technical)
- Module Overview (Commercial/Business)
- Module Overview (End User/Administrator)
- Available Logs
- Filtering & Search
- Common Scenarios & Examples
- Limitations & Important Notes
- Troubleshooting Tips
- Glossary
---
1. Module Overview (Technical)
What Is Log File Viewer?
Log File Viewer is a web-based interface for viewing system log files directly from the admin panel. It provides real-time log monitoring, filtering by severity level, search functionality, and auto-refresh capabilities.
Architecture
Key Features
| Feature | Description | |
|---|---|---|
| Log Selection | Choose which log file to view | |
| Level Filtering | Filter by severity (Debug, Info, Warning, Error) | |
| Search | Text search within logs | |
| Auto-refresh | Automatic 5-second refresh | |
| Download | Download log file | |
| Clear | Clear log contents |
Key Files
| File | Description | |
|---|---|---|
modules/logViewer/LogViewerPage.tsx | Main viewer component | |
modules/logViewer/api.ts | API calls | |
i18n/en/logViewer.json | Translations |
2. Module Overview (Commercial/Business)
Business Value
Log File Viewer provides convenient log access:
| Without Log Viewer | With Log Viewer | |
|---|---|---|
| SSH to server | Browser access | |
| Command-line tools | Visual interface | |
| Manual filtering | Click-to-filter | |
| No search | Full-text search |
Use Cases
- Troubleshooting Calls
- View call flow logs
- Security Monitoring
- Monitor failed registrations
- System Debugging
- Find specific warnings
- Audit & Compliance
- Download logs for analysis
Feature Highlights
| Feature | Benefit | |
|---|---|---|
| Browser-Based | No SSH needed | |
| Level Filter | Focus on errors/warnings | |
| Search | Quick issue finding | |
| Auto-refresh | Real-time monitoring | |
| Download | Archive for analysis |
3. Module Overview (End User/Administrator)
What Can You Do?
- View system log files
- Filter by log level
- Search for specific text
- Enable auto-refresh
- Download log files
- Clear log files
Log Viewer Interface
Quick Tips
TIP
Auto-refresh: Enable for real-time monitoring during troubleshooting.TIP
Filter First: Use level filter to reduce noise before searching.CAUTION
Clear Log: This action cannot be undone. Download first if needed.---
4. Available Logs
FreeSWITCH Log
| Property | Value | |
|---|---|---|
| Path | /var/log/freeswitch/freeswitch.log | |
| Content | Call processing, SIP events, dialplan | |
| Levels | DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL |
- SIP registrations
- Call start/end
- Dialplan actions
- Gateway status
- Lua script execution
Fail2ban Log
| Property | Value | |
|---|---|---|
| Path | /var/log/fail2ban.log | |
| Content | Security blocks, IP bans | |
| Levels | INFO, NOTICE, WARNING, ERROR |
- IP ban events
- Unban events
- Jail status
- Rule matches
---
5. Filtering & Search
Log Level Filters
| Level | Description | Color | |
|---|---|---|---|
| Debug | Detailed debugging info | Gray | |
| Info | Normal operations | Blue | |
| Notice | Notable events | Green | |
| Warning | Potential issues | Yellow | |
| Error | Error conditions | Red | |
| Critical | Critical failures | Dark Red |
Search Tips
| Search For | Example | |
|---|---|---|
| Caller ID | 5558881234 | |
| Extension | 1001 | |
| Gateway | provider1 | |
| Error type | timeout | |
| SIP message | INVITE | |
| IP address | 192.168.1.100 |
6. Common Scenarios & Examples
Scenario 1: Find Call Errors
- Select FreeSWITCH log
- Set Level to Error
- Search for extension number
- Review error messages
Scenario 2: Monitor Security
- Select Fail2ban log
- Enable Auto-refresh
- Watch for ban events
- Check blocked IPs
Scenario 3: Debug Registration
- Select FreeSWITCH log
- Set Level to Debug
- Search for extension
- Find registration messages
Scenario 4: Export for Analysis
- Select desired log
- Apply filters if needed
- Click Download
- Open in log analyzer tool
---
7. Limitations & Important Notes
Technical Notes
NOTE
Line Limit: Display is limited to prevent browser slowdown.NOTE
Server-Side Reading: Logs are read from server filesystem.WARNING
Large Logs: Very large log files may take time to load.Best Practices
- Filter First: Apply level filter before search
- Use Auto-refresh: For live monitoring
- Download Regularly: Archive important logs
- Clear Carefully: Download before clearing
- Search Specific: Use specific search terms
---
8. Troubleshooting Tips
Common Issues
| Symptom | Possible Cause | Solution | |
|---|---|---|---|
| No entries | Log empty | Check log exists on server | |
| Load error | Permission denied | Check backend permissions | |
| Slow loading | Large log file | Filter by level | |
| Search no results | Wrong search term | Try different keywords | |
| Clear fails | Permission denied | Check write permissions |
Log File Locations
| Log | Path | |
|---|---|---|
| FreeSWITCH | /var/log/freeswitch/freeswitch.log | |
| Fail2ban | /var/log/fail2ban.log |
Server-Side Verification
---
9. Glossary
| Term | Definition | |
|---|---|---|
| Log Level | Severity category of log entry | |
| Auto-refresh | Automatic periodic update | |
| Tail | View end of log file | |
| Filter | Show only matching entries | |
| FreeSWITCH | Telephony engine | |
| Fail2ban | Security intrusion prevention |
Lua Script Status ℹ️
No Lua Handler Required
| Component | Status |
|---|---|
| Log File Viewer | ℹ️ Frontend-only module - reads logs via backend file API |
---
Documentation last updated: January 2026