{"id":13587279,"url":"https://github.com/lynix/journalcheck","last_synced_at":"2025-08-08T05:35:08.048Z","repository":{"id":28893966,"uuid":"32418674","full_name":"lynix/journalcheck","owner":"lynix","description":"Simple logcheck Replacement for Usage with journald","archived":false,"fork":false,"pushed_at":"2024-01-25T13:27:27.000Z","size":56,"stargazers_count":25,"open_issues_count":1,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-13T21:05:17.069Z","etag":null,"topics":["bash","journald","logcheck","systemd"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lynix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-03-17T20:33:04.000Z","updated_at":"2025-03-03T14:01:58.000Z","dependencies_parsed_at":"2024-02-13T21:56:40.106Z","dependency_job_id":null,"html_url":"https://github.com/lynix/journalcheck","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/lynix/journalcheck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lynix%2Fjournalcheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lynix%2Fjournalcheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lynix%2Fjournalcheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lynix%2Fjournalcheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lynix","download_url":"https://codeload.github.com/lynix/journalcheck/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lynix%2Fjournalcheck/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269371443,"owners_count":24406264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","journald","logcheck","systemd"],"created_at":"2024-08-01T15:06:08.222Z","updated_at":"2025-08-08T05:35:08.010Z","avatar_url":"https://github.com/lynix.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"journalcheck\n============\n\n(C) Alexander Koch\n\n### A simple replacement for logcheck for usage with journald\n\nJournalcheck aims at being a simple replacement for\n[_logcheck_](http://logcheck.org) when using journald for system logs. It calls\n`journalctl` to obtain all messages that have been recorded since its last\ninvocation, pipes the output through `egrep` with a given set of filters, and\npasses the remaining messages to stdout. Journalcheck therefore works with\nvolatile system logs as well.\n\n## Dependencies\n * systemd (`journalctl`)\n * coreutils (`split`)\n * grep (`egrep`)\n\n## Usage\nJournalcheck is best run as regular user (no need for root privileges!) via\ncron:\n```\nMAILTO=user@localhost\n\n# m  h  dom mon dow   command\n*/30 *  *   *   *     journalcheck\n```\n\nWith a local MTA/MDA set up correctly, you will receive all log entries not\nmatching the white-list by mail. In addition to the ones shipped with\njournalcheck, it looks in _~/.journalcheck.d_ for user-defined filters.\n\nFor cron-less systems making use of systemd .timer units instead, there are\nexample units in _example_. They rely on\n[checkrun.sh](https://github.com/lynix/checkrun.sh) for mail functionality.\n\n## Configuration\nJournalcheck is configurable through the following environment variables\n(default values in brackets):\n\n * `JC_FILTERS_GLOBAL` (*/usr/lib/journalcheck*): Directory for system-wide filters\n * `JC_FILTERS_USER` (*~/.journalcheck.d*): Directory for user-defined filters\n * `JC_CURSOR_FILE` (*~/.journalcheck.cursor*): Last run timestamp file\n * `JC_NUM_THREADS` (no. of logical CPUs): Number of worker threads to spawn\n * `JC_LOGLEVEL` (0..5): Priority (loglevel) filter\n\n## Help Wanted\nAs I only have a limited set of machines and applications running to derive\nfilters from, I rely heavily on contributions in order to provide a universal\nfilter set. Pull requests are welcome!\n\n## License\nJournalcheck is released under the terms of the MIT License, see LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flynix%2Fjournalcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flynix%2Fjournalcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flynix%2Fjournalcheck/lists"}