This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """LogsLop Standalone - Log Deduplication Script | |
| Large log files are often full of repeated or near-duplicate lines. | |
| LogsLop strips that redundancy, so you get one representative per message type. | |
| Particularly useful when logs are too big to send or process as-is (e.g. into LLM context windows). | |
| Usage: | |
| python3 logslop.py (reads stdin) | |
| your-command 2>&1 | python3 logslop.py (pipes stderr to stdout and both through logslop) |