Commit c2dbb31
authored
feat: Implement Logstash audit exporter (#162)
* feat: Implement Logstash audit exporter
Add LogstashExporter implementation that sends audit events to Logstash via TCP using JSON Lines protocol.
Key features:
- TCP connection with automatic reconnection on failure
- JSON Lines protocol (newline-delimited JSON)
- Batch support for efficient event transmission
- Connection timeout handling (10 seconds)
- Comprehensive test coverage
Implementation details:
- Create src/server/audit/logstash.rs with LogstashExporter struct
- Wire up LogstashExporter in AuditManager
- Implement AuditExporter trait methods: export, export_batch, flush, close
- Add 9 unit tests covering all functionality including edge cases
Resolves #137
* fix: Address security issues in Logstash audit exporter
* docs: Update architecture documentation for Logstash exporter
Mark LogstashExporter as implemented (no longer "planned") and add
documentation with usage example.1 parent ba80149 commit c2dbb31
5 files changed
Lines changed: 811 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
310 | 318 | | |
311 | 319 | | |
312 | 320 | | |
| |||
328 | 336 | | |
329 | 337 | | |
330 | 338 | | |
331 | | - | |
332 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
333 | 360 | | |
334 | 361 | | |
335 | 362 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
0 commit comments