Skip to content

javierckr/logcheck-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Container based on logcheck: https://logcheck.org/

Usage

For testing container, you can run the following command:

docker run  -ti -v {logsdir}:/var/log/external/:Z -v {logcheckconfigfile}:/etc/logcheck/logcheck.conf -v {logchecklogfilesdir}:/etc/logcheck/logcheck.logfiles.d/ -v {esmtprcfile}:/etc/esmtprc -v {customserverrulefile}:/etc/logcheck/ignore.d.server/local-rule -v {offsetdir}:/var/lib/logcheck/ logcheck
  • logsdir: Directory with logs to be checked, example: /var/log/
  • logcheckconfigfile: Directory with logcheck configuration file, example:logcheck-config-example/logcheck.conf
  • logchecklogfilesdir: Directory with config of logs files to analyze, example: logcheck-config-example/logcheck.logfiles.d/
  • esmtprcfile: File with esmtp configuration for senging email, example: esmtprc.example
  • customserverrulefile: Custom rule for server ignore level, example: logcheck-config-example/ignore.d.server/local-examplerule
  • offsetdir: Persistent volume to store logs read by logcheck

This is intended to be used in kubernetes: https://github.com/javierckr/kube-logcheck

Build from source

Clone the repository and run the following command:

docker build -t logcheck .

About

Logcheck is a simple utility which is designed to allow a system administrator to view the logfiles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •