Whenever we execute the sensu-check-log, it throws an error. Here's the image for reference
error_screenshot
Additionally, Here are the few item you would require to replicate the issue
- Log file : sample.log
- Check_Command:
sensu-check-log --log-file /var/tmp/sample.log --match-expr "java.lang.OutOfMemoryError" --state-directory /var/tmp/ --reset-state --critical-threshold 1 --critical-only --warning-threshold 0 --ignore-initial-run --verbose
- Check_config: check.yml.txt