@aflueza/log-analysis 0.0.0-stage → 0.2.1-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -2
- package/cordis.patch.yml +3 -0
- package/lib/analyzer.js +1093 -0
- package/lib/client.js +40766 -0
- package/lib/database/parser-rules-database.js +199 -0
- package/lib/index.js +540 -0
- package/lib/shared/types.js +1 -0
- package/lib/style.css +1872 -0
- package/package.json +65 -4
package/README.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Log Analysis
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
DSH local log analysis workbench. The current MVP provides a right sidebar panel with overview and log tabs, a Node-side line reader, summary/query tools, and JSON export.
|
|
4
|
+
|
|
5
|
+
Parser rules are stored in `~/.dsh/plugins/log-analysis/dsh-log-analysis.sqlite`, shared by Web and desktop hosts running as the same Windows user.
|
|
6
|
+
|
|
7
|
+
## Local development
|
|
8
|
+
|
|
9
|
+
Install the published package into a DSH profile with `pnpm dsh plugin --profile web add @aflueza/log-analysis@0.2.1-rc.2`.
|
|
10
|
+
|
|
11
|
+
## Current input
|
|
12
|
+
|
|
13
|
+
Choose one or more supported files, or choose a directory. Selection only stages browser `File` objects in the panel; no file content is sent until `开始分析` is clicked. The browser then sends each complete file's text content and the active analysis conditions to the local DSH process. Conditions are applied while each line is parsed, so overview statistics and retained results describe the matching records. Changing conditions and starting again rereads and retransmits the selected files for a new analysis. Local filesystem paths are not sent, source files are not written to server disk, and analysis sessions are not persisted.
|
|
14
|
+
|
|
15
|
+
## Follow-up feature stages
|
|
16
|
+
|
|
17
|
+
- Format support: GBK, GZ/ZIP, access logs, Syslog, Java logs, and multiline stack traces.
|
|
18
|
+
- Parsing rules: regular expressions, delimiters, Grok patterns, and reusable field mappings.
|
|
19
|
+
- Error analysis: template grouping, deduplication, spikes, and newly observed errors.
|
|
20
|
+
- Request analysis: TraceID/RequestID timelines and latency percentiles.
|
|
21
|
+
- Reports and summaries: HTML/PDF reports and user-controlled LLM summaries.
|
package/cordis.patch.yml
ADDED