Commit d118e2f
feat: sample logs, watch mode, and --output flag
- Add examples/ with cloudflare-sample.log, nginx-sample.log, app-sample.log — realistic anonymized data covering errors, security events, slow requests, and normal traffic. README quickstart updated to reference them.
- Add lpx watch <logfile> — polls for new lines on a configurable interval, batches them, and streams LLM analysis. Seeks to end of file on start so only live traffic is analyzed. Handles file rotation. --interval, --batch, --quiet options.
- Add --output / -o flag to all commands (parse, summarize, errors, analyze, ask, and all cf subcommands) — saves LLM response to a file for sharing or archiving.
- Document watch mode, --output, and new env vars (OLLAMA_HOST, LOGPARSEIQX_MODEL) in README.
- 84 tests passing.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 834d1ab commit d118e2f
3 files changed
Lines changed: 249 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | | - | |
89 | | - | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | | - | |
92 | | - | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | | - | |
95 | | - | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | | - | |
98 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
99 | 107 | | |
100 | 108 | | |
101 | 109 | | |
| |||
136 | 144 | | |
137 | 145 | | |
138 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
139 | 151 | | |
140 | 152 | | |
141 | 153 | | |
142 | 154 | | |
143 | 155 | | |
144 | 156 | | |
145 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
146 | 190 | | |
147 | 191 | | |
148 | 192 | | |
| |||
240 | 284 | | |
241 | 285 | | |
242 | 286 | | |
243 | | - | |
| 287 | + | |
244 | 288 | | |
245 | | - | |
246 | | - | |
247 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
248 | 294 | | |
249 | | - | |
| 295 | + | |
| 296 | + | |
250 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
251 | 306 | | |
252 | 307 | | |
253 | 308 | | |
254 | 309 | | |
255 | 310 | | |
256 | | - | |
257 | 311 | | |
258 | 312 | | |
259 | 313 | | |
| |||
0 commit comments