summaryrefslogtreecommitdiff
path: root/internal/mapr/logformat
AgeCommit message (Collapse)Author
2026-03-20Optimize mapr parsing and stabilize aggregate shutdownPaul Buetow
2026-03-05Improve lint/vet reliability and refactor client runtime/bootstrapPaul Buetow
2026-03-03Apply go fix build tag modernizationPaul Buetow
2026-03-02refactor(logformat): replace parser switch with registryPaul Buetow
2026-01-29refactor: improve Go best practices compliancePaul Buetow
- Add explicit interface satisfaction checks (var _ Interface = (*Type)(nil)) for compile-time verification: - TurboWriter implementations (DirectTurboWriter, TurboChannelWriter) - Processor implementations (GrepLineProcessor, ChannellessLineProcessor) - Parser implementations (genericParser, csvParser, genericKVParser, custom parsers, mimecastParser) - Logger implementations (file, stdout) - Handler implementations (ServerHandler, ClientHandler) - Connector implementations (Serverless, ServerConnection) - SSH callback implementations (KnownHostsCallback) - Improve error handling with context wrapping (%w): - SSH operations: GeneratePrivateRSAKey, Agent - Query parsing: Query.parse - SSH client connections: dial, session, handle methods - Fix receiver consistency: - Convert Query.String() from value to pointer receiver - Convert Outfile.String() from value to pointer receiver - Convert all KnownHostsCallback methods to pointer receivers - Convert mapCommand.Start() to pointer receiver - Reorganize file structure for better clarity: - internal/io/dlog/dlog.go: Move type definition before public functions - internal/mapr/token.go: Reorganize helper functions after public ones - Add documentation comments: - Query.String() method - Outfile.String() method - Regex.String() method - Improve config variable documentation All unit tests and integration tests pass. Amp-Thread-ID: https://ampcode.com/threads/T-019c0b08-0eeb-705d-a1f7-31bb764b659a Co-authored-by: Amp <amp@ampcode.com>
2025-06-24Fix fmt.Errorf non-constant format string errors in multiple packagesPaul Buetow
- Fixed fmt.Errorf calls in integrationtests/fileutils.go - Fixed fmt.Errorf calls in integrationtests-old/fileutils.go - Fixed fmt.Errorf calls in internal/color/color.go - Fixed t.Errorf call in internal/mapr/logformat/default_test.go All tests now pass with Go 1.24's stricter format string requirements. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2023-09-07refactor go build tagsPaul Buetow
2023-09-07add mapr aggregration on CSV integr testPaul Buetow
2023-09-07add CSV to parserPaul Buetow
2023-09-07Add CSV unit testPaul Buetow
2023-09-07Add `custom1` and `custom2` log formats.Paul Buetow
2023-09-07Add mimecast parser stub. Open source version of DTail won't be with it.Paul Buetow
2023-09-07Refactor logformats so that they don't use reflection anymore.Paul Buetow
2023-09-07DTail: Restrict SSH MAC algorithms allowed - Update of few dependenciesPaul Buetow
2022-01-27Dont auto lowercase all mapreduce keysPaul Buetow
2021-12-16documenting how to implement a custom log formatPaul Buetow
2021-12-09Documenting log formatsPaul Buetow
2021-10-24Fix DCat color test.Paul Buetow
2021-10-10vetting and linting and some code restylingPaul Buetow
2021-10-09refactorPaul Buetow
2021-10-02add more default fields to MAPREDUCEPaul Buetow
2021-10-02refactor config reader - also looks in additional search paths for config ↵Paul Buetow
file unless NONE is specified
2021-10-02move args to config packagePaul Buetow
logger package rewrite as dlog
2021-10-02mapreduce tables are in colors now tooPaul Buetow
2021-09-08Don't fail parsing whole line when one kv could not be parsedPaul Buetow
2021-09-07Produce MAPREDUCE lines, can aggregate these via default log formatPaul Buetow
2021-08-281. Major performance gain by not checking for file truncation aftterPaul Buetow
each bytes read. 2. Introduce field separator to the protocol package.
2020-08-13bump up version to 3.0.0. can run continuous background mapreduce queries, ↵v3.0.0Paul Buetow
useful for log file monitorig for example. breaking protocol change which allows to mapreduce aggreate messages containing the default field separator |. add of more unit tests. add logformat mapreduce query keyword. add set mapreduce clause support and support to evaluate built-in functions such as md5sum() and maskdigits().
2020-05-20add $timezone and $timeoffset keysPaul Buetow
2020-03-18make lint and vet happyv2.2.0Paul Buetow
2020-03-07add support to run mapreduce queries on generic log lines, e.g. count all ↵Paul Buetow
log lines containing a certain string, such as "ERROR"
2020-02-07Introduce drun command, refactor code to use context packagePaul Bütow
2020-01-21Move commands to cmd/ and move internal dependencies to internal/Paul Bütow