{"id":19579801,"url":"https://github.com/abo/graw","last_synced_at":"2026-06-13T11:33:19.789Z","repository":{"id":137069331,"uuid":"61218617","full_name":"abo/graw","owner":"abo","description":"A pattern generator and searcher","archived":false,"fork":false,"pushed_at":"2016-06-25T02:42:30.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-16T20:12:17.979Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abo.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":"2016-06-15T15:23:24.000Z","updated_at":"2024-06-19T11:11:15.226Z","dependencies_parsed_at":null,"dependency_job_id":"ce54beca-136a-472e-8337-500ca110c92f","html_url":"https://github.com/abo/graw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abo/graw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abo%2Fgraw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abo%2Fgraw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abo%2Fgraw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abo%2Fgraw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abo","download_url":"https://codeload.github.com/abo/graw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abo%2Fgraw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34283390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11T07:19:13.107Z","updated_at":"2026-06-13T11:33:19.772Z","avatar_url":"https://github.com/abo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"graw\n====\n[![Build Status](https://travis-ci.org/abo/graw.svg)](https://travis-ci.org/abo/graw)\n[![GoDoc](https://godoc.org/github.com/abo/graw/patn?status.svg)](https://godoc.org/github.com/abo/graw/patn)\n[![Go Report Card](https://goreportcard.com/badge/github.com/abo/graw)](https://goreportcard.com/report/github.com/abo/graw)\n[![Coverage Status](https://coveralls.io/repos/github/abo/graw/badge.svg?branch=master)](https://coveralls.io/github/abo/graw?branch=master)\n\nA pattern generator and searcher\n\n* Auto generate pattern according sample\n* format output by template\n\n\nInstallation\n------------\n\nInstall graw using the \"go get\" command:\n\n    go get github.com/abo/graw\n\nmake sure the $GOPATH/bin is added into $PATH\n\n\nExample\n-------\n\n    ~ abo$ cat nginx_access.log\n    74.125.19.106 - - [15/May/2015:18:27:55] \"GET /product.screen?productId=DC-SG-G02\u0026JSESSIONID=SD10SL4FF4ADFF4976 HTTP 1.1\" 200 3279 \"http://www.buttercupgames.com/oldlink?itemId=EST-26\" \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5\" 559\n    203.223.0.20 - - [15/May/2015:18:30:03] \"POST /category.screen?categoryId=NULL\u0026JSESSIONID=SD4SL3FF4ADFF4991 HTTP 1.1\" 406 1944 \"http://www.buttercupgames.com/product.screen?productId=SF-BVS-G01\" \"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; MS-RTC LM 8; InfoPath.2)\" 417\n    203.223.0.20 - - [15/May/2015:18:30:05] \"GET /category.screen?categoryId=ACCESSORIES\u0026JSESSIONID=SD4SL3FF4ADFF4991 HTTP 1.1\" 200 2006 \"http://www.buttercupgames.com/oldlink?itemId=EST-17\" \"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; MS-RTC LM 8; InfoPath.2)\" 509\n    203.223.0.20 - - [15/May/2015:18:30:06] \"GET /product.screen?productId=BS-AG-G09\u0026JSESSIONID=SD4SL3FF4ADFF4991 HTTP 1.1\" 200 1051 \"http://www.buttercupgames.com/cart.do?action=addtocart\u0026itemId=EST-6\u0026productId=BS-AG-G09\" \"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; MS-RTC LM 8; InfoPath.2)\" 179\n    125.89.78.6 - - [15/May/2015:18:34:10] \"GET /oldlink?itemId=EST-7\u0026JSESSIONID=SD8SL10FF1ADFF5003 HTTP 1.1\" 200 1140 \"http://www.yahoo.com\" \"Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3\" 471\n    125.89.78.6 - - [15/May/2015:18:34:12] \"GET /oldlink?itemId=EST-17\u0026JSESSIONID=SD8SL10FF1ADFF5003 HTTP 1.1\" 200 620 \"http://www.buttercupgames.com/oldlink?itemId=EST-17\" \"Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3\" 590\n    125.89.78.6 - - [15/May/2015:18:34:13] \"GET /product.screen?productId=WC-SH-T02\u0026JSESSIONID=SD8SL10FF1ADFF5003 HTTP 1.1\" 200 2147 \"http://www.buttercupgames.com/cart.do?action=remove\u0026itemId=EST-27\u0026productId=WC-SH-T02\" \"Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3\" 291\n    125.89.78.6 - - [15/May/2015:18:34:15] \"GET /oldlink?itemId=EST-7\u0026JSESSIONID=SD8SL10FF1ADFF5003 HTTP 1.1\" 200 1578 \"http://www.buttercupgames.com/cart.do?action=view\u0026itemId=EST-7\u0026productId=WC-SH-G04\" \"Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3\" 933\n    ~ abo$ cat nginx_access.log | graw 18:27:55\n    18:27:55\n    18:30:03\n    18:30:05\n    18:30:06\n    18:34:10\n    18:34:12\n    18:34:13\n    18:34:15\n    ~ abo$ cat nginx_access.log | graw -format=\"{{index . 1}} -- {{index . 0}}\" /product.screen 74.125.19.106\n    74.125.19.106 -- /product.screen\n    203.223.0.20 -- /category.screen\n    203.223.0.20 -- /category.screen\n    203.223.0.20 -- /product.screen\n    125.89.78.6 -- /oldlink\n    125.89.78.6 -- /oldlink\n    125.89.78.6 -- /product.screen\n    125.89.78.6 -- /oldlink\n\n\nLicense\n-------\n\ngraw is available under the [The MIT License (MIT)](https://opensource.org/licenses/MIT).    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabo%2Fgraw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabo%2Fgraw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabo%2Fgraw/lists"}