{"id":26714834,"url":"https://github.com/timothydodd/logmk","last_synced_at":"2025-06-26T18:32:27.220Z","repository":{"id":251230438,"uuid":"836265157","full_name":"timothydodd/LogMk","owner":"timothydodd","description":"LogMk is a lightweight log monitoring solution for Kubernetes environments.","archived":false,"fork":false,"pushed_at":"2025-06-02T02:15:32.000Z","size":2618,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T12:06:23.775Z","etag":null,"topics":["angular","dotnet","k3s","kubernetes","logging"],"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/timothydodd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MD","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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-31T13:37:59.000Z","updated_at":"2025-06-02T02:15:36.000Z","dependencies_parsed_at":"2024-08-26T14:14:48.656Z","dependency_job_id":"1f585140-3397-48f1-b12e-aa354a3cb512","html_url":"https://github.com/timothydodd/LogMk","commit_stats":null,"previous_names":["timothydodd/logmk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/timothydodd/LogMk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timothydodd%2FLogMk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timothydodd%2FLogMk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timothydodd%2FLogMk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timothydodd%2FLogMk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timothydodd","download_url":"https://codeload.github.com/timothydodd/LogMk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timothydodd%2FLogMk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262122932,"owners_count":23262496,"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","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":["angular","dotnet","k3s","kubernetes","logging"],"created_at":"2025-03-27T13:51:11.823Z","updated_at":"2025-06-26T18:32:27.134Z","avatar_url":"https://github.com/timothydodd.png","language":"C#","readme":"\n![logmk-128](https://github.com/user-attachments/assets/15f1c5b9-f636-4135-b9c2-1cdeb1274bf6)\n\n\n# LogMk\nLogMk is a lightweight log monitoring solution for Kubernetes environments. It monitors pod logs, saves them in a central MySQL database, and provides a web portal for viewing and filtering log activity. Designed for simplicity, LogMk may not be robust enough for large enterprise-scale environments but is perfect for smaller setups or development environments.\n\n## Features\n- Real-Time Log Monitoring: View logs in real-time using the web portal.\n- Centralized Storage: All logs are stored in a MySQL database.\n- Filter and Search: Easily filter and search logs to find specific entries.\n- Simple Deployment: Deploy a .NET 9 worker agent on all Kubernetes nodes to start collecting logs.\n\n\n![image](https://github.com/user-attachments/assets/b77821c6-9caf-4db9-b481-af058a6476fe)\n\n\n\n\n## Components\nLogMk consists of three main components:\n\n1.  .NET 9 Worker Agent\n\nDeployed on all Kubernetes nodes.\nCollects pod logs and sends them to the central API.\n\n2.  Angular 18 Web Portal\n\nProvides a user-friendly interface for viewing and filtering logs.\nUtilizes SignalR for real-time log updates.\n\n3.  .NET 9 API\n\n- Receives log data from the worker agents.\n- Exposes endpoints for the web portal to access log data.\n- Implements SignalR for real-time communication with the web portal.\n\n## Installation\n### Prerequisites\n- Kubernetes Cluster\n- .NET 9 SDK (for building)\n- MySQL Database\n- Angular CLI (for web portal development)\n### Setup\n1. Deploy Worker Agent\n\nBuild and deploy the .NET 9 worker agent on all Kubernetes nodes.\n\n``` bash\n# Example command to build the worker agent\ndotnet build src/LogMkWorkerAgent\n\n# Example command to deploy the agent\nkubectl apply -f deployment.yaml\n```\n\n2. Set Up MySQL Database\n\nCreate a MySQL database to store the logs. Update the connection string in the API configuration.\n\n3. Deploy API\n\nBuild and deploy the .NET 9 API.\n\n``` bash\n\ndotnet build src/LogMkApi\ndotnet publish src/LogMkApi -o /publish\n```\n\n4. Set Up Web Portal\n\nNavigate to the web portal directory and install dependencies.\n\n``` bash\ncd src/LogMkWebPortal\nnpm install\n```\nBuild and serve the web portal.\n\n``` bash\nng build --prod\nng serve\n```\n## Usage\nAccess the web portal via your browser.\nUse the filter and search functionalities to find specific logs.\nMonitor logs in real-time through the SignalR integration.\nThe Api also hosts the web project\n## Contributing\nContributions are welcome! Please fork the repository and submit a pull request.\n\n## License\nMIT License\n\n## Acknowledgements\nThe .NET and Angular communities for their excellent frameworks.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimothydodd%2Flogmk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimothydodd%2Flogmk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimothydodd%2Flogmk/lists"}