{"id":37224963,"url":"https://github.com/ernestrc/logd","last_synced_at":"2026-01-15T01:44:46.001Z","repository":{"id":52422791,"uuid":"131793705","full_name":"ernestrc/logd","owner":"ernestrc","description":"Logd is a log scanner daemon that exposes a lua API to run arbitrary logic on structured logs.","archived":false,"fork":false,"pushed_at":"2024-04-29T23:51:46.000Z","size":533,"stargazers_count":2,"open_issues_count":10,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-21T17:01:51.013Z","etag":null,"topics":["collector","logging","logs","scanner"],"latest_commit_sha":null,"homepage":"","language":"C","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/ernestrc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-02T03:33:39.000Z","updated_at":"2024-04-29T23:51:50.000Z","dependencies_parsed_at":"2024-04-30T00:41:28.349Z","dependency_job_id":null,"html_url":"https://github.com/ernestrc/logd","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ernestrc/logd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernestrc%2Flogd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernestrc%2Flogd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernestrc%2Flogd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernestrc%2Flogd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ernestrc","download_url":"https://codeload.github.com/ernestrc/logd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernestrc%2Flogd/sbom","scorecard":{"id":381607,"data":{"date":"2025-08-11","repo":{"name":"github.com/ernestrc/logd","commit":"7d51dcfab637fd72ebb0b3b7f174781126daf376"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:2","Warn: containerImage not pinned by hash: Dockerfile:16: pin your Docker image by updating ubuntu:18.04 to ubuntu:18.04@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98","Warn: containerImage not pinned by hash: utils/Dockerfile:2","Warn: containerImage not pinned by hash: utils/Dockerfile:16: pin your Docker image by updating ubuntu:18.04 to ubuntu:18.04@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98","Warn: containerImage not pinned by hash: utils/Dockerfile.centos7:1: pin your Docker image by updating centos:7 to centos:7@sha256:be65f488b7764ad3638f236b7b515b3678369a5124c47b8d32916d6487418ea4","Warn: containerImage not pinned by hash: utils/Dockerfile.debian:1: pin your Docker image by updating debian:stretch to debian:stretch@sha256:c5c5200ff1e9c73ffbf188b4a67eb1c91531b644856b4aefe86a58d2f0cb05be","Warn: containerImage not pinned by hash: utils/Dockerfile.develop:1: pin your Docker image by updating debian:stretch to debian:stretch@sha256:c5c5200ff1e9c73ffbf188b4a67eb1c91531b644856b4aefe86a58d2f0cb05be","Warn: containerImage not pinned by hash: utils/Dockerfile.static:1: pin your Docker image by updating alpine:3.7 to alpine:3.7@sha256:8421d9a84432575381bfabd248f1eb56f3aa21d9d7cd2511583c68c9b7511d10","Warn: containerImage not pinned by hash: utils/Dockerfile.ubuntu:2: pin your Docker image by updating ubuntu:18.04 to ubuntu:18.04@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98","Warn: downloadThenRun not pinned by hash: Dockerfile:10-13","Warn: downloadThenRun not pinned by hash: utils/Dockerfile:10-13","Info:   0 out of   9 containerImage dependencies pinned","Info:   0 out of   2 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T15:34:38.781Z","repository_id":52422791,"created_at":"2025-08-18T15:34:38.781Z","updated_at":"2025-08-18T15:34:38.781Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28441031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"ssl_error","status_checked_at":"2026-01-15T00:55:20.945Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["collector","logging","logs","scanner"],"created_at":"2026-01-15T01:44:45.322Z","updated_at":"2026-01-15T01:44:45.993Z","avatar_url":"https://github.com/ernestrc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logd [![Build Status](https://travis-ci.org/ernestrc/logd.svg)](https://travis-ci.org/ernestrc/logd)\nLogd is a log scanner daemon that exposes a Lua API to run arbitrary logic on structured logs.\n\n## Logd module API\n| Builtin | Description |\n| --- | --- |\n| `function logd.log_get (logptr, key) value` | Get a property from the log |\n| `function logd.log_set (logptr, key, value)` | Set a property to the log |\n| `function logd.log_remove (logptr, key)` | Remove a property from a log |\n| `function logd.log_reset (logptr)` | Reset all log properties |\n| `function logd.log_clone (logptr) logptr` | Make a safe clone of logptr which will be managed by lua's GC. |\n| `function logd.to_str (logptr) str` | Serialize a log into a string |\n| `function logd.to_logptr (table) logptr` | Convert a table into a logptr |\n| `function logd.to_table (logptr) table` | Convert a logptr into a table |\n| `function logd.print (string\\|table\\|logptr)` | Serialize message or table into a log string and print it to the standard output |\n\n| Hook | Description |\n| --- | --- |\n| `function logd.on_log (logptr)` | Logs are scanned and supplied to this handler. Use `logd.log_*` set of functions to manipulate them. |\n| `function logd.on_exit (code, reason)` | Called when collector is gracefully terminating. |\n| `function logd.on_error (error, logptr, at)` | Called when collector failed to scan a log line. Scanning will resume after this function returns. |\n\n## Preloaded Lua modules\n- [logd](#logd-module-api)\n- [uv](https://github.com/luvit/luv)\n- [miniz](https://github.com/luvit/luvi/blob/master/src/lminiz.c) \n\n## Optionally Preloaded Lua modules \nDepending on the build, the following modules are preloaded:\n- [lpeg](http://www.inf.puc-rio.br/~roberto/lpeg/)\n- [openssl](https://github.com/zhaozg/lua-openssl)\n- [zlib](https://github.com/brimworks/lua-zlib)\n\n## Build instructions\nRun configure script and then make:\n```sh\n$ ./configure\n$ make\n$ make install\n```\nIf you have problems linking with a system dependency, you can configure the project to build the dependency from source:\n```sh\n$ ./configure --enable-build-luajit --enable-build-openssl\n$ make\n```\nAlternatively, you can provide your own CFLAGS or LDFLAGS:\n```sh\n$ ./configure CFLAGS='-DOPENSSL_NO_STDIO -DOPENSSL_NO_SM2'\n$ make\n```\nFinally, you can also disable some of the modules:\n```sh\n$ ./configure --without-openssl --without-lpeg\n$ make\n```\nFor a full list of options run `./configure --help`.\n\nPlease refer to the Docker images in [utils](utils) to see some of the common options and CFLAGS used by the different Linux distros.\n\n## MacOS Build instructions\nAssuming you have Homebrew installed:\n```\n$ brew update \u0026\u0026 brew bundle --file=utils/Brewfile\n$ export LIBTOOL=glibtool\n$ export LIBTOOLIZE=glibtoolize\n$ ./configure --enable-build-all\n$ make \u0026\u0026 make install\n```\n\nPlease refer to MacOS section in [.travis.yml](.travis.yml) to see the latest build options.\n\n## Scanning\nThe builtin scanner expects logs to be in the following format:\n```\nYYYY-MM-dd hh:mm:ss\tLEVEL\t[Thread]\tClass\tkey: value...\n```\nIf you need to scan logs in a different format, you can load a dynamic shared object that implements [src/scanner.h](src/scanner.h) via the `--scanner` flag. For static builds (if dlopen is disabled) or if you simply want to build the project with a different builtin scanner, you can configure so with:\n```\n$ ./configure --with-builtin-scanner=my_scanner.c\n```\n\nFor a list of available scanners look for the source files in [src](src) that end in \\_scanner.c.\n\n## Running tests\nConfigure and enable the development build:\n```sh\n$ ./configure --enable-develop\n$ make\n$ make test\n```\n\n## Luvit\nLogd uses Libuv under the hood and is compatible with [Luvit](https://luvit.io) modules. The Luvit runtime and standard modules are not preloaded by default but you can do so by running `lit install luvit/luvit` in your script's directory and then supplying your script to the logd executable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernestrc%2Flogd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fernestrc%2Flogd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernestrc%2Flogd/lists"}