{"id":15090231,"url":"https://github.com/masci/elastic-logs","last_synced_at":"2025-10-05T23:31:43.902Z","repository":{"id":39638240,"uuid":"411302194","full_name":"masci/elastic-logs","owner":"masci","description":"Fetch logs from GitHub workflows and ingest them to Elasticsearch","archived":true,"fork":false,"pushed_at":"2022-05-30T07:31:33.000Z","size":1775,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-13T14:35:10.656Z","etag":null,"topics":["action","actions","elastic","elasticsearch","github-actions","logs","observability"],"latest_commit_sha":null,"homepage":"","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/masci.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":"CODEOWNERS","security":null,"support":null}},"created_at":"2021-09-28T13:52:38.000Z","updated_at":"2024-06-24T20:27:45.000Z","dependencies_parsed_at":"2023-01-04T18:30:37.544Z","dependency_job_id":null,"html_url":"https://github.com/masci/elastic-logs","commit_stats":{"total_commits":94,"total_committers":2,"mean_commits":47.0,"dds":"0.44680851063829785","last_synced_commit":"4fec7a66a2029c0fd5f299cfeef440ceb9d89f71"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masci%2Felastic-logs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masci%2Felastic-logs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masci%2Felastic-logs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masci%2Felastic-logs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masci","download_url":"https://codeload.github.com/masci/elastic-logs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235461388,"owners_count":18994072,"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":["action","actions","elastic","elasticsearch","github-actions","logs","observability"],"created_at":"2024-09-25T09:23:42.096Z","updated_at":"2025-10-05T23:31:38.450Z","avatar_url":"https://github.com/masci.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elastic Logs Action\n\n[![build-test](https://github.com/masci/elastic-logs/actions/workflows/test.yml/badge.svg)](https://github.com/masci/elastic-logs/actions/workflows/test.yml)\n\nThis action collect logs from a workflow run and send them to Elasticsearch\n\n![Kibana](img/kibana.png)\n\n## Usage\n\n```yaml\nsome-job:\n  runs-on: ubuntu-latest\n  steps:\n    - name: checkout\n      uses: actions/checkout@v2\n    - name: build\n      run: this-will-fail\n    - name: elastic-logs\n      if: failure()\n      uses: masci/elastic-logs@v1\n      with:\n        repo-token: ${{ secrets.GITHUB_TOKEN }}\n        cloud-id: ${{ secrets.CLOUD_ID }}\n        username: ${{ secrets.ES_USER }}\n        password: ${{ secrets.ES_PASS }}\n        job-names: build\n```\n\n## Development\n\nInstall the dependencies\n\n```bash\n$ npm install\n```\n\nLint, test and build the typescript and package it for distribution\n\n```bash\n$ npm run all\n```\n\nRun the tests :heavy_check_mark:\n\n```bash\n$ npm test\n\n\u003e elastic-logs-action@1.0.0 test\n\u003e jest\n\n PASS  __tests__/github.test.ts\n  Test jobs list retrieval\n    ✓ Retrieve the list of jobs (4 ms)\n    ✓ Cannot retrieve the list of jobs (1 ms)\n    ✓ Filter jobs by name\n  Test logs retrieval\n    ✓ Retrieve the logs (6 ms)\n    ✓ Cannot retrieve the logs (1 ms)\n\n PASS  __tests__/logs.test.ts\n  Test logs module\n    ✓ conversion (8 ms)\n\n PASS  __tests__/run.test.ts\n  Test config params\n    ✓ Process job-names param (5 ms)\n    ✓ Missing Elastic config params\n\nTest Suites: 3 passed, 3 total\nTests:       8 passed, 8 total\nSnapshots:   0 total\nTime:        3.309 s, estimated 4 s\nRan all test suites.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasci%2Felastic-logs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasci%2Felastic-logs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasci%2Felastic-logs/lists"}