Skip to content

Releases: sensu/sensu-check-log

0.7.1

08 Dec 01:05
Compare
Choose a tag to compare

Changelog

0.7.0

07 Dec 22:51
9495faf
Compare
Choose a tag to compare
  • This release fixes an issue where a very long log line length can cause a fatal error.
  • Upgrade to Go 1.21
  • Upgrade dependencies

0.6.0

06 May 00:05
Compare
Choose a tag to compare

Changelog

  • 5e5d779 update changelog for new release
  • 07f0b6e Merge pull request #35 from sensu/js/refactor-invert-match
  • 743472e Merge pull request #30 from sensu/js/require-match-expr
  • 8431d4f fix env var typo
  • 9176428 Refactor invert logic to apply to threshold based alerting
  • 7638c7d Merge pull request #32 from sensu/js/suppress-matching-string
  • 484f817 Upgrade json-iterator
  • 8ba42c6 update the matching file output text to give a better indication of what is happening when inverse matching flag is used
  • 5a8fd54 restrict default output to 1 line per matching file
  • a20b84f add option to suppress matching info from check output
  • 418e509 fix check args test
  • f61ed72 make --match-expr a required argument

0.5.0

03 Nov 00:14
Compare
Choose a tag to compare

Changelog

67766af preparing for 0.5.0 release
ffa39d3 Merge pull request #28 from sensu/js/add-offset-to-output
48e73b6 disable test on windows
58d8c0d fix tests to work on windows filesystem
a3d3bb5 fix for test on windows
5d96fda add test for error condition with cached file offset is less than 0
0bb36f4 Merge branch 'main' into js/add-offset-to-output
d2aecfe Merge pull request #27 from sensu/js/fix-broken-verbose-check
41d6cd6 make offset < 0 error out with a message
3c374ed make the output for end of log message verbose output
bd37b2f make testing webserver access log lines unique
eb98339 Track file offset for each matching log line, and output as result json
02e46ba fix broken logic to detect that log file is stale
a14b4d9 add test that fails on log rotate when verbose is false

0.4.3

13 Oct 00:32
Compare
Choose a tag to compare

Changelog

953898b preparing for 0.4.3 release
5074d68 Merge pull request #26 from sensu/js/fix-multiple-file-return-status
7036e9e fix for return status when processing multiple files

0.4.2

08 Oct 00:36
Compare
Choose a tag to compare

Changelog

c63a7d4 preparing for 0.4.2 release
ae2a471 Merge pull request #24 from sensu/js/cached-file-offset-fix
a2d424d fix for incorrect end of file logic in state directory. Add additional test

0.4.1

20 Sep 23:28
Compare
Choose a tag to compare

Changelog

4144914 small fix to readme text
ac33994 Add example of using filepath regexp matching to README
0dc57c4 preparing for 0.4.1 release
a59df6a Merge pull request #19 from sensu/js/fix-filepath-regexp
77cda62 make linter happy
008dcff refactor logs variable to no longer be scoped globally
c0bd035 windows specific fix for file path test
ba443e8 fix filepath regexp so that it matches directory as well as filename

0.4.0

10 Sep 22:00
Compare
Choose a tag to compare

Breaking Changes

  • Removed --match-event-status argument and replaced with match number based status controlled by --critical-threshold and --warning-threshold
  • Will now attempt to create state directory if it doesnt not exist

Added

  • Added --missing-ok to suppress errors if requested log file not found
  • Added --critical-threshold to set matching number needed to raise critical event status
  • Added --warning-threshold to set matching number needed to raise warning event status
  • Added --warning-only to make sure only warning event status is sent (even if critical threshold reached)
  • Added --critical-only to make sure only critical event status is sent

Fixed

  • Will now correctly traverse subdirectories of --log-path when looking for file names that match the regexp provided by --log-file-expr
  • Silenced annotation override information messages when check annotations are used.

0.3.0

07 Aug 06:11
Compare
Choose a tag to compare

Changelog

415ae92 update goreleaser to ignore freebsd arm64
7ceb7a5 update goreleaser workflow
aa3ce65 preparing to release 0.3.0
b1036b7 Merge pull request #12 from sensu/js/sdk-refactor
8d34144 update changelog with pending changes
410afbc update changelog with pending changes
a3b65de update changelog with pending changes
535aff5 use fmt instead of log package for verbose and error output
7c12ad2 fix linter warning
f3ee323 create test for stdin detection logic
c18ba4e update comment to match new logic
4d5c4c0 more test coverage
50a345b don't run file permission related error condition tests on Windows
a340827 more test coverage
a572e41 more test coverage
a778e67 fix corner case when inverseMatching is set to true, but no state exists yet
f1dc9ed do not run directory permissions write error test on windows
c995cf9 fix gitignore to allow for tests to work
f1dbaf6 make linter happy
c931e7a update testing to include refactored processLogFile function
f8892b1 make linter happy
2c57b8d refactor log file processing to ensure only 1 open file at a time
9fae6a9 refactor state files into binary files using encoding/gob
25a6fde provide /var/log as the sane default for --log-path
ad28bbc remove snake case variable
f8f38e9 add missing error handling situation
228bc73 refactor to use corev2 instead of types
f396b15 fix typo in Readme
76b47a7 add inverse-match to envvar table
7e4b4db fix typo in Readme
158046d fix typo in Readme
a2dcc47 make linter happy
2517f7a implement inverse match
8ae689b update SendEvent tests
93eccb0 update readme to match refectored code
df8f385 more work on handling cases when event sending is disabled
e3f688d validate cases where event passed through stdin is required or not
b862b40 check to make sure state directory exists or abort with error
1d23c9b slightly better logic for handling if file is updated/replaced after we've read to the end in previous read
3212317 update .gitignore
cf7eb57 add event.go file for output event manipulation functions in main package
f311e2f refactor sendEvent
7833c1a add lint github action workflow
e12f4fa more refactor to better handle state on disk
ea4d782 refactor to use sensu-plugin-sdk

0.2.0

21 Aug 18:03
d12cb70
Compare
Choose a tag to compare

Changelog

d12cb70 Merge pull request #7 from sensu/feature/ignore-initial-run
265c1e4 Words are hard
8a53ac8 Bump changelog date for 0.2.0
38650ca Re-order functions
78d4a22 Set offset on initialization to file size
66352a7 Use state file to determine first run, not offset
003b1cf Add -ignore-initial-run flag and update changelog