{"id":20491720,"url":"https://github.com/dalibo/logsaw","last_synced_at":"2026-04-20T07:31:58.695Z","repository":{"id":139466869,"uuid":"1370742","full_name":"dalibo/logsaw","owner":"dalibo","description":"a log watcher remembering what it already parsed","archived":false,"fork":false,"pushed_at":"2014-05-23T07:20:11.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-05T17:40:46.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dalibo.png","metadata":{"files":{"readme":"README","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}},"created_at":"2011-02-15T19:11:17.000Z","updated_at":"2018-12-31T10:54:10.000Z","dependencies_parsed_at":"2023-04-08T06:48:51.653Z","dependency_job_id":null,"html_url":"https://github.com/dalibo/logsaw","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dalibo/logsaw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalibo%2Flogsaw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalibo%2Flogsaw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalibo%2Flogsaw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalibo%2Flogsaw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dalibo","download_url":"https://codeload.github.com/dalibo/logsaw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalibo%2Flogsaw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32037860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":[],"created_at":"2024-11-15T17:25:41.200Z","updated_at":"2026-04-20T07:31:58.678Z","avatar_url":"https://github.com/dalibo.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"logsaw.pl\n    logsaw.pl - retrieve and filter your logs\n\n    Version 1.0\n\nSYNOPSIS\n      logsaw.pl [-d|--debug] [-?|--help] [-H|--show-filename] [-n|--line-number] [--conf path_to_config_file]\n\nDESCRIPTION\n    This program reads a bunch of log files generated by a program and sends\n    the interesting messages to stdout. It supports log files rotated and\n    optionnaly compressed by logrotate or another similar mecanism.\n\nOPTIONS\n    -d, --debug: output some debug informations.\n    -?, --help: show this help page.\n    -H, --show-filename: show log filenames in the output.\n    -n, --line-number: show line number of the entrey in the logfile.\n    -f, --conf: configuration file. By default \"$HOME/.logsaw\".\n\nCONFIGURATION\n    The configuration file can these entries :\n\n    * LOGFILES is a regular expression matching every filename we want to\n      scrutinize. They have to be in the same directory for instance :\n      postgresql-8.4-main-[0-9]{4}-[0-9]{2}.log\". By default, match all\n      files.\n\n    * LOGDIR is the directory where the LOGFILES are located, eg.\n      \"/var/log/postgres\". By default './'.\n\n    * REGEX is a rule to match for a line to be kept in the result. The\n      rules are perl regular expressions. The configuration file can have as\n      many REGEX than rules needed. By default, match all line.\n\n    * NOTREGEX is a rule to match for a line to be ignored in the result. \n      The rules are perl regular expressions. The configuration file can have \n      as many REGEX than rules needed. By default, match all lines. If you put \n      REGEX and NOTREGEX at the time in the configuration, both are applied: a \n      line has to match a REGEX and not match any NOTREGEX to be displayed.\n\n    * PAGER give an arbitrary command to open and read log files if IO::Zlib\n      is not available. For instance \"zcat -f\" or \"gzip -dfc\".\n\n    The next parameters set where to start processing log files on the next\n    call of logsaw and are updated by itself. If not set, logsaw will parse\n    all matching log files from the begining.\n\n    * FILEID is the cheksum of the last seen file\n\n    * OFFSET is the position in this file\n\nSAMPLE\n    The following configuration file will:\n\n    * match any line containing the FATAL, ERROR or WARNING strings\n\n    * against all files in the directory \"/var/log/postgres\"\n\n    * matching \"postgresql\\.log\" (eg. postgresql.log, postgresql.log.1,\n      postgresql.log.2.gz, ...)\n\n    * using \"zcat -f\" to open files\n\n        LOGDIR=/var/log/postgres\n        LOGFILES=postgresql\\.log\n        PAGER=zcat -f\n        REGEX=FATAL\n        REGEX=ERROR\n        REGEX=WARNING\n\n      Note that on a system with IO::Zlib installed, PAGER is not required.\n\nAUTHORS\n      Dalibo's team. http://www.dalibo.org\n\nLICENSING\n    This program is open source, licensed under the simplified BSD license.\n    For license terms, see the LICENSE provided with the sources.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalibo%2Flogsaw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdalibo%2Flogsaw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalibo%2Flogsaw/lists"}