{"id":28186804,"url":"https://github.com/xxddpac/go-flow","last_synced_at":"2025-05-16T07:10:57.855Z","repository":{"id":288403533,"uuid":"967961506","full_name":"xxddpac/go-flow","owner":"xxddpac","description":"实时网络流量监控工具，基于滑动窗口分析，支持异常检测与 Web 可视化","archived":false,"fork":false,"pushed_at":"2025-05-15T03:05:01.000Z","size":7127,"stargazers_count":24,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T03:28:03.996Z","etag":null,"topics":["anomaly-detection","dashboard","extensible","go","kafka","lightweight","network-monitoring","real-time","traffic-analysis","web-ui"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xxddpac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-17T09:20:24.000Z","updated_at":"2025-05-15T03:05:05.000Z","dependencies_parsed_at":"2025-04-18T00:18:29.773Z","dependency_job_id":"724b06d3-7a05-4b6c-b2bc-316e3e7396fd","html_url":"https://github.com/xxddpac/go-flow","commit_stats":null,"previous_names":["xxddpac/go-flow"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxddpac%2Fgo-flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxddpac%2Fgo-flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxddpac%2Fgo-flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxddpac%2Fgo-flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xxddpac","download_url":"https://codeload.github.com/xxddpac/go-flow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485042,"owners_count":22078767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anomaly-detection","dashboard","extensible","go","kafka","lightweight","network-monitoring","real-time","traffic-analysis","web-ui"],"created_at":"2025-05-16T07:10:57.302Z","updated_at":"2025-05-16T07:10:57.848Z","avatar_url":"https://github.com/xxddpac.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/v/tag/xxddpac/go-flow?label=version\" alt=\"version\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/xxddpac/go-flow\" alt=\"license\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Go-1.21-blue\" alt=\"Go version\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/stars/xxddpac/go-flow?style=social\" alt=\"GitHub stars\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/last-commit/xxddpac/go-flow\" alt=\"last commit\" /\u003e\n\u003c/p\u003e\n\n\n\u003ch1 align=\"center\"\u003eGO-FLOW\u003c/h1\u003e\n\n\u003ch3 align=\"center\"\u003e\n  \u003cstrong\u003e轻量级、高性能的实时网络流量监控与异常检测工具\u003c/strong\u003e\n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n基于可配置的滑动时间窗口进行流量分析，并提供简洁直观的 Web 控制台，方便实时查看网络态势。\n内置告警机制可快速识别异常大流量、高频扫描、分布式探测等可疑行为并触发告警，提前预警潜在安全风险。\n\u003c/p\u003e\n\n\n## 🚀 安装运行\n\n1. **下载最新版本 Release**  \n   从 GitHub Releases 页面获取最新版本的 `go-flow` 二进制文件。\n\n2. **编辑配置文件 `config.toml`**  \n   根据需求修改 `config.toml`，配置网络接口、告警设置等参数\n\n3. **运行 `go-flow` 并访问**  \n   执行以下命令启动服务，并通过浏览器访问 `http://\u003cserver_ip\u003e:31415` 查看 Web 控制台：\n   ``` \n   ./go-flow -c config.toml\n    ```\n\n## 📊 Web UI\n\n- `Sessions` 展示会话级流量，包含源/目的 IP、端口、协议、流量占用和请求次数，便于分析具体通信关系\n\n![Flows](https://raw.githubusercontent.com/xxddpac/go-flow/main/image/flows.jpg)\n\n- `IP Stats` 展示单个 IP 的流量使用和请求次数，帮助识别高流量主机和活跃节点\n\n![IPs](https://raw.githubusercontent.com/xxddpac/go-flow/main/image/ips.jpg)\n\n- `Port Stats` 展示各目的端口的流量占用和协议分布，便于识别热门服务和异常端口活动\n\n![Ports](https://raw.githubusercontent.com/xxddpac/go-flow/main/image/ports.jpg)\n\n- `Trend` 展示滑动时间窗口内整体网络流量变化趋势，便于观察流量高峰、波动和异常增长情况\n\n![Trend](https://raw.githubusercontent.com/xxddpac/go-flow/main/image/trend.jpg)\n\n## 🚨 风险预警\n\n- `大流量预警` 计算滑动窗口内的流量总和，识别异常大流量\n  ![Bandwidth](https://raw.githubusercontent.com/xxddpac/go-flow/main/image/bandwidth.jpg)\n\n- `高频扫描预警` 识别高频扫描或分布式探测\n  ![Frequency](https://raw.githubusercontent.com/xxddpac/go-flow/main/image/frequency.jpg)\n\n## 💾 数据持久化\n\n`go-flow` 设计初衷是简单轻量化，无需依赖额外组件，默认基于给定滑动窗口在内存中完成实时分析。\n如果需要持久化数据以实现更多功能（如查看最近一周或一个月的流量趋势、生成丰富统计图、结合威胁情报等），`go-flow` 也支持将流量数据写入\nKafka 队列，供自定义消费与处理。\n只需在配置文件中启用 Kafka 即可，后续的数据存储与分析自行实现。\n![Dashboard](https://raw.githubusercontent.com/xxddpac/go-flow/main/image/dashboard.jpg)\n\n## 🛠️ 源码编译\n\n```\ngit clone https://github.com/xxddpac/go-flow.git\ncd go-flow\n\n# Build for CentOS\nmake build-centos\n\n# Build for Windows\nmake build-win\n\n# Clean build artifacts\nmake clean\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxddpac%2Fgo-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxxddpac%2Fgo-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxddpac%2Fgo-flow/lists"}