LogSphere is a powerful, cross-platform desktop application designed to provide real-time insights into your system's health. It collects CPU usage, memory consumption, process information, and application logs, aggregating them into a unified, interactive dashboard.
- Real-time Telemetry: Monitor CPU, Memory, and Process count with second-by-second accuracy.
- Log Aggregation: Collects logs from specified directories and analyzes them for anomalies.
- Smart Deduplication: Uses advanced pattern matching to group similar logs, reducing noise.
- Cross-Platform: Built with C++ for native performance on both Windows and Linux.
- Modern Dashboard: A beautiful, responsive web interface built with React and Node.js.
- Agent: C++ (Native Performance)
- Backend: Node.js (Express)
- Frontend: React + Recharts (Data Visualization)
- Database: MongoDB (Log Storage)
- Real-time: Socket.IO
logsphere/
├── agent/ # C++ Agent (Data Collector)
│ ├── agent.cpp # Main agent logic
│ ├── config.json # System configuration
│ └── CMakeLists.txt
├── backend/ # Node.js API & WebSocket Server
│ ├── server.js # API endpoints
│ ├── routes/ # API routes
│ └── models/ # Database models
├── frontend/ # React Dashboard
│ ├── src/
│ │ ├── components/ # UI Components
│ │ ├── pages/ # Page Views
│ │ └── services/ # API Services
│ └── package.json
├── Dockerfile # Docker configurations
└── docker-compose.yml # Multi-container setup
- Node.js (v14 or higher)
- MongoDB (Running locally or cloud-hosted)
- C++ Compiler (GCC/Clang for Linux, MSVC for Windows)
- CMake (for building the agent)
cd agent
mkdir build
cd build
cmake ..
makeCreate a config.json file in the agent/ directory (or set environment variables):
{
"systemId": "your-system-id",
"systemKey": "your-system-key"
}cd backend
npm install
npm startcd frontend
npm install
npm startcd agent/build
./agent- Open the dashboard at
http://localhost:3000 - Log in with the default credentials (if applicable) or sign up.
- Verify that the agent appears in the "Systems" list.
- Check the "Metrics" and "Logs" tabs for real-time data.