TWSNMP`s Log AI Analyzer
This project extends the syslog analysis features originally developed for TWSNMP FC into a standalone desktop application.
Log analysis is often done more efficiently by bringing the log files to your own computer rather than accessing a remote log server. If you are a Unix command expert, you might use commands to search and format logs. Many people also load logs into a text editor to search them, or use Excel. This tool is designed to assist you with these tasks. It allows you to load log files directly from compressed files, remote servers, or Docker/Kubernetes command outputs, then indexes them using a full-text search engine to make them searchable. The index can also include supplemental information such as geographic locations or hostnames derived from IP addresses extracted from the logs. You can visualize the search results easily using web technologies. When you're done with the analysis, simply delete the log data folder.
The log files to be analyzed can be retrieved via:
- Local files (ZIP, EVTX, text, etc.)
- Local directories
- Local command execution results (Docker, Kubernetes, etc.)
- SCP transfer from a remote server
- SSH command execution results on a remote server (Docker, Kubernetes, etc.)
- TWSNMP FC integration
- Windows Event Log
Log analysis features:
- Automatic log type determination
- Automatic timestamp retrieval
- Regular expression and simple text filtering
- Pattern-based data extraction
- Location and hostname estimation from extracted IP addresses
- Vendor name estimation from extracted MAC addresses
- Full-text search indexing of logs and extracted fields
- Rich full-text query options (time range, keywords, numeric range, geolocation range)
- Visualization of log counts and extracted data on graphs/maps:
- Histogram
- Cluster
- Time series
- World Map
- Globe
- Heatmap
- Export analysis results to CSV or Excel
- Create chronological notes from selected logs
- AI-assisted anomaly detection (machine learning)
- Data extraction during search
- Explain logs and answer queries using LLM (Ollama, Gemini, OpenAI, Anthropic) integration
Technologies used:
- Go Language (Backend)
- Wails v2: Go GUI creation framework
- Svelte 5 / Vite 8: Frontend framework and build tool
- Bluge: Go full-text search engine
- langchaingo: LLM integration library
- p5.js / p5-svelte: 2D/3D visualizations
- Apache ECharts: Rich charting
- Primer/CSS, Octicons: UI design system
- TensorFlow.js: Frontend AI anomaly detection
The backend provides high-performance, parallel processing in Go, while the JS/CSS/HTML frontend delivers rich and expressive visualizations.
https://twsnmp.github.io/TWLogAIAN/
- v1.0.0 (2022/3/2) First release
- v1.1.0 (2022/3/14) External link (TWSNMP FC integration, Windows Event Log)
- v1.2.0 (2022/3/21) Memo function support
- v1.3.0 (2022/4/3) AI assist support
- v1.4.0 (2022/4/11) Improved Grok pattern editing function
- v1.5.0 (2022/4/24) Data extraction during search, improved Grok pattern editing function
- v1.6.0 (2022/10/29) Grok pattern/field editing improvements, automatic log type determination
- v1.7.0 (2023/1/15) English localization support, improved search features
- v1.8.0 (2023/2/5) Grok pattern editing/selection improvements, timestamp processing improvements
- v1.9.0 (2023/2/12) Windows event log processing improvements, log highlighting
- v1.10.0 (2023/6/12) Windows event log improvements, TF-IDF anomaly detection
- v1.11.0 (2025/4/14) LLM/RAG integration
- v2.0.0 (2026/6/20) Upgrade to Svelte 5 / Vite 8, custom GrokEditor, LLM integration (RAG removed)
Wails v2 installation is required for the build.
https://wails.io/docs/gettingstarted/installation/
The build will be done with make.
$make
The following targets can be specified:
all Build all executable files (optional)
mac Building an executable file for mac
windows Build an executable file for windows
windebug Build debug version executable file for Windows
clean Delete the built executable file
dev Starting the debugging environment
An executable file for MacOS and Windows will be created in the build/bin directory.
To start for debugging
$make dev
see ./LICENSE
Copyright 2022-2026 Masayuki Yamai

