{"id":37177173,"url":"https://github.com/log-engine/logengine","last_synced_at":"2026-01-14T20:39:52.604Z","repository":{"id":261394422,"uuid":"869485503","full_name":"log-engine/logengine","owner":"log-engine","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-21T09:00:12.000Z","size":26437,"stargazers_count":5,"open_issues_count":26,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-21T10:19:17.253Z","etag":null,"topics":["log","logging","metrics","monitor","monitoring"],"latest_commit_sha":null,"homepage":"https://logengine.io","language":"TypeScript","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/log-engine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-08T11:30:58.000Z","updated_at":"2025-10-21T09:00:15.000Z","dependencies_parsed_at":"2024-11-06T11:02:15.730Z","dependency_job_id":"957a7957-47d5-4eb1-a601-9f11d0104edc","html_url":"https://github.com/log-engine/logengine","commit_stats":null,"previous_names":["log-engine/logengine"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/log-engine/logengine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log-engine%2Flogengine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log-engine%2Flogengine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log-engine%2Flogengine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log-engine%2Flogengine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/log-engine","download_url":"https://codeload.github.com/log-engine/logengine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log-engine%2Flogengine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["log","logging","metrics","monitor","monitoring"],"created_at":"2026-01-14T20:39:51.853Z","updated_at":"2026-01-14T20:39:52.584Z","avatar_url":"https://github.com/log-engine.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LogEngine\n\n**Système de collecte et gestion de logs centralisé, open-source, léger et performant.**\n\nAlternative self-hosted à Sentry, Datadog ou Loggly pour surveiller vos applications en temps réel.\n\n## Fonctionnalités\n\n- **Collecte de logs** via gRPC (haute performance)\n- **Authentification** par clé API\n- **Rate limiting** (protection anti-spam)\n- **Retry logic** avec backoff exponentiel\n- **Stockage PostgreSQL** robuste\n- **Queue RabbitMQ** pour traitement asynchrone\n- **Graceful shutdown** (aucune perte de données)\n- **Interface admin** React (à venir)\n\n## Démarrage rapide (5 minutes)\n\n### Prérequis\n\n- Go 1.23+\n- Docker (pour PostgreSQL + RabbitMQ)\n\n### Installation\n\n```bash\n# 1. Cloner le repo\ngit clone https://github.com/log-engine/logengine.git\ncd logengine\n\n# 2. Configuration automatique (installe les dépendances, démarre Docker)\nmake setup\n\n# 3. Générer les fichiers protobuf\nmake generate_proto\n\n# 4. Terminal 1 : Serveur gRPC\nmake run_grpc_server\n\n# 5. Terminal 2 : Serveur HTTP\nmake run_http_server\n```\n\n **C'est prêt !** Les serveurs tournent sur :\n- HTTP API : `http://localhost:8080`\n- gRPC : `localhost:30001`\n- RabbitMQ UI : `http://localhost:15672` (guest/guest)\n\n##  Documentation\n\n- **[Guide de démarrage](QUICKSTART.md)** - Installation détaillée et premiers pas\n- **[Guide de contribution](CONTRIBUTING.md)** - Standards de code et formatage\n- **[Architecture](docs/ARCHITECTURE.md)** - Comment ça marche (à venir)\n\n## Tester le système\n\n```bash\n# Tests automatisés complets\nmake test-system\n\n# Tests unitaires\nmake test\n```\n\n##  Commandes principales\n\n```bash\nmake help              # Affiche toutes les commandes disponibles\nmake setup             # Configuration initiale\nmake docker-up         # Démarre PostgreSQL + RabbitMQ\nmake build             # Compile les serveurs\nmake fmt               # Formate le code\nmake lint              # Analyse du code\n```\n\n## Utilisation basique\n\n### 1. Créer une application\n\n```bash\ncurl -X POST http://localhost:8080/api/applications \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"name\": \"My App\"}'\n\n# Réponse : {\"id\": \"...\", \"key\": \"xxx\", \"name\": \"My App\"}\n```\n\n### 2. Envoyer un log\n\n```bash\ngrpcurl -plaintext \\\n  -H \"x-api-key: xxx\" \\\n  -d '{\n    \"level\": \"info\",\n    \"message\": \"Hello LogEngine!\",\n    \"appId\": \"xxx\",\n    \"ts\": \"2025-01-03T10:00:00.000Z\"\n  }' \\\n  localhost:30001 \\\n  logengine_grpc.Logger/addLog\n```\n\n### 3. Consulter les logs\n\n```bash\npsql logengine -c \"SELECT * FROM log ORDER BY ts DESC LIMIT 10;\"\n```\n\n##  Architecture\n\n```\nClient → gRPC Server → RabbitMQ → Consumer → PostgreSQL\n              ↓\n         Rate Limit\n         Auth (API Key)\n         Validation\n```\n\n- **Serveur gRPC** : Réception des logs (port 30001)\n- **Serveur HTTP** : API REST pour admin (port 8080)\n- **RabbitMQ** : Queue pour traitement asynchrone\n- **PostgreSQL** : Stockage persistant\n\n##  Production-Ready\n\n**Retry logic** : Reconnexion automatique si RabbitMQ/PostgreSQL down\n**Rate limiting** : 1000 logs/s par app, 100 req/s par IP\n**Graceful shutdown** : Aucune perte de logs lors des redémarrages\n**Validation** : Vérification stricte des données d'entrée\n**Formatage** : Code standardisé avec gofmt + goimports\n\n##  Contribution\n\nLes contributions sont les bienvenues ! Voir [CONTRIBUTING.md](CONTRIBUTING.md) pour les guidelines.\n\n```bash\n# Setup développement\nmake setup\nmake install-tools\n\n# Avant de commit\nmake fmt\nmake lint\nmake test\n```\n\n##  License\n\nMIT\n\n##  Credits\n\nDéveloppé avec ❤️ par la communauté LogEngine\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog-engine%2Flogengine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flog-engine%2Flogengine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog-engine%2Flogengine/lists"}