{"id":21013482,"url":"https://github.com/heavenshell/go-gclogdatesplitkun","last_synced_at":"2026-04-22T18:31:38.699Z","repository":{"id":29259397,"uuid":"32792008","full_name":"heavenshell/go-gclogdatesplitkun","owner":"heavenshell","description":null,"archived":false,"fork":false,"pushed_at":"2015-05-21T14:34:23.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-06T05:00:52.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heavenshell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-24T10:35:23.000Z","updated_at":"2015-03-24T10:49:09.000Z","dependencies_parsed_at":"2022-09-05T15:50:27.457Z","dependency_job_id":null,"html_url":"https://github.com/heavenshell/go-gclogdatesplitkun","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heavenshell/go-gclogdatesplitkun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fgo-gclogdatesplitkun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fgo-gclogdatesplitkun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fgo-gclogdatesplitkun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fgo-gclogdatesplitkun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heavenshell","download_url":"https://codeload.github.com/heavenshell/go-gclogdatesplitkun/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fgo-gclogdatesplitkun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32149394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T17:06:48.269Z","status":"ssl_error","status_checked_at":"2026-04-22T17:06:19.037Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-11-19T09:42:39.611Z","updated_at":"2026-04-22T18:31:38.674Z","avatar_url":"https://github.com/heavenshell.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"gclog date split kun\n====================\n\nSplit Oracle JDK7's `gc.log` by date.\n\nOracle JDK7's `gc.log` lotated by file size.\n\n```\n2015-03-23T23:48:54.474+0900: 5.700: [GC2015-03-24T17:01:54.474+0900: 5.700: [DefNew: 74464K-\u003e8928K(98304K), 0.0110380 secs] 74464K-\u003e8928K(491520K), 0.0110990 secs] [Times: user=0.00 sys=0.00, real=0.01 secs]\n2015-03-23T23:59:57.826+0900: 9.052: [GC2015-03-24T17:01:57.826+0900: 9.052: [DefNew: 74464K-\u003e9964K(98304K), 0.0262860 secs] 74464K-\u003e9964K(491520K), 0.0263670 secs] [Times: user=0.01 sys=0.00, real=0.02 secs]\n2015-03-24T00:00:01.005+0900: 1868.231: [GC2015-03-24T17:32:57.005+0900: 1868.231: [DefNew: 75500K-\u003e12920K(98304K), 0.0456080 secs] 75500K-\u003e12920K(491520K), 0.0457090 secs] [Times: user=0.02 sys=0.01, real=0.05 secs]\n2015-03-24T00:01:10.643+0900: 2573.869: [GC2015-03-24T17:44:42.643+0900: 2573.869: [DefNew: 78456K-\u003e9690K(98304K), 0.0115740 secs] 78456K-\u003e9690K(491520K), 0.0117050 secs] [Times: user=0.01 sys=0.00, real=0.01 secs]\n```\nAbove gc.log are contains `2015-03-24`'s log and `2015-03-25`'s log.\nBut I want to split by date.\n\nFor example, above logs would be like followings after this program executed.\n\n```\n$ go-gclogdatesplitkun read /path/to/gc.log\n$ ls\ngc.log\n2015-3-23_gc.log\n2015-3-24_gc.log\n```\n\nUsage\n-----\n\n```\n$ git checkout https://github.com/heavenshell/go-gclogdatesplitkun.git\n$ go build\n$ ./go-gclogdatesplitkun read /path/to/gc.log\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fgo-gclogdatesplitkun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheavenshell%2Fgo-gclogdatesplitkun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fgo-gclogdatesplitkun/lists"}