{"id":15287086,"url":"https://github.com/davidrr-f/jenklog","last_synced_at":"2026-04-29T11:02:12.701Z","repository":{"id":241301254,"uuid":"805546911","full_name":"DavidRR-F/jenklog","owner":"DavidRR-F","description":"Jenkins Build Log Querying CLI Tool","archived":false,"fork":false,"pushed_at":"2024-12-16T19:01:53.000Z","size":6800,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T00:41:21.408Z","etag":null,"topics":["cli","golang-cli","jenkins","logging"],"latest_commit_sha":null,"homepage":"","language":"Go","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/DavidRR-F.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-24T20:24:54.000Z","updated_at":"2024-12-16T19:15:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"11357b1f-d33a-41a8-9a8b-fc26f19aead4","html_url":"https://github.com/DavidRR-F/jenklog","commit_stats":null,"previous_names":["davidrr-f/jenklog"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/DavidRR-F/jenklog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidRR-F%2Fjenklog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidRR-F%2Fjenklog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidRR-F%2Fjenklog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidRR-F%2Fjenklog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavidRR-F","download_url":"https://codeload.github.com/DavidRR-F/jenklog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidRR-F%2Fjenklog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32422532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"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":["cli","golang-cli","jenkins","logging"],"created_at":"2024-09-30T15:24:09.914Z","updated_at":"2026-04-29T11:02:12.687Z","avatar_url":"https://github.com/DavidRR-F.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jenklog\n\nI often use the jenkins cli as part of my jenkins management workflow. There is one \nsubcommand I always want to use but then I remember that it is horrible to work with \n`jenkins-cli console`. This command is grabs the build logs of a specified pipeline \nand presents them in your terminals stdout. There are two issues I have with\nthis subcommand. One, the encoding is wonky so I will often try and `awk` a\nspecific subset of the logs to no avail. Second, it only gets one build log at a time\nand you have to reference that build by its build id, aka an incrementing number\nno one is keeping track of so you have to open up the gui and check the run\nanyways which defeats the purpose.\n\nSo I made a simple cli tool with more verbose options to grab build logs from\njenkins that you can actually pipe a `grep` too without losing what little hair\nyou probably have left since your probably managing a jenkins instances. Enjoy\n\n#### ***Required Jenkins Plugins***\n- ***Pipeline*** \n- ***Pipeline: Stage View***\n\n# Commands\n\n## Jenklog Auth \n\n```bash \njenklog auth [url] [flags]\n```\n\n| Flags | Description | Required |\n|:-------|:------------|:--------|\n| -t --token | Jenkins authentication token | yes |\n| -u, --user | Username asociated with authentication token | yes |\n\n## Jenklog Job\n\n```bash \njenklog job [jobName] [flags]\n```\n\n| Flags | Description | Required | Default |\n|:-------|:------------|:--------|:--------|\n| -b, --build | Job Build Number | no | last |\n| -s, --stage | Specific Pipeline Stage Name to get | no | all |\n| -p, --prev-count | Number of Build Logs to query preceding the specified build | no | 0 |\n\n### Examples\n\n1. Get Stage Logs from Latest Build\n```bash\n\u003e jenklog job testy -s Test \n\nID: lastBuild\nStage: Test\n\n[Pipeline] echo\nTesting...\n```\n\n2. Get Last Failed\n\n```bash \n\u003e jenklog job testy -b lastFailedBuild\n\nID: lastFailedBuild\n\n[Pipeline] bat \nERROR: NO BAT THIS IS A LINUX AGENT\n\n```\n\n3. Get Build Log 5-3\n\n```bash \n\u003e jenklog job testy -b 5 -p 2 -s Test \n\nID: 5\nStage: Test\n\n[Pipeline] echo\nTesting...\n\nID: 3\nStage: Test\n\n[Pipeline] echo\nTesting...\n```\n\n### TODO\n\n- [ ] Better Auth Types\n- [ ] Jenkins Syslog Querying\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidrr-f%2Fjenklog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidrr-f%2Fjenklog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidrr-f%2Fjenklog/lists"}