{"id":18643348,"url":"https://github.com/tkuchiki/log2ltsv","last_synced_at":"2026-05-20T14:13:50.348Z","repository":{"id":70076163,"uuid":"102740901","full_name":"tkuchiki/log2ltsv","owner":"tkuchiki","description":"Convert apache and nginx access log to ltsv format","archived":false,"fork":false,"pushed_at":"2017-11-15T06:59:10.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-17T17:07:59.757Z","etag":null,"topics":["apache","cli","go","golang","log","ltsv","nginx"],"latest_commit_sha":null,"homepage":"","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/tkuchiki.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":"2017-09-07T13:33:59.000Z","updated_at":"2022-11-09T05:01:10.000Z","dependencies_parsed_at":"2023-06-26T01:59:53.518Z","dependency_job_id":null,"html_url":"https://github.com/tkuchiki/log2ltsv","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tkuchiki/log2ltsv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkuchiki%2Flog2ltsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkuchiki%2Flog2ltsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkuchiki%2Flog2ltsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkuchiki%2Flog2ltsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkuchiki","download_url":"https://codeload.github.com/tkuchiki/log2ltsv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkuchiki%2Flog2ltsv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266936533,"owners_count":24009418,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"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":["apache","cli","go","golang","log","ltsv","nginx"],"created_at":"2024-11-07T06:06:32.926Z","updated_at":"2026-05-20T14:13:50.267Z","avatar_url":"https://github.com/tkuchiki.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# log2ltsv\napache and nginx access log to ltsv format\n\n## Installation\n\nDownload from https://github.com/tkuchiki/log2ltsv/releases\n\n## Usage\n\n```console\nusage: log2ltsv [\u003cflags\u003e]\n\napache and nginx access log to ltsv format\n\nFlags:\n  --help            Show context-sensitive help (also try --help-long and --help-man).\n  --format=\"nginx\"  access log format (apache or nginx)\n  --file=FILE       access log\n  --version         Show application version.\n```\n\n## Example\n\n### Apache\n\n```diff\n- LogFormat \"%h %l %u %t \\\"%r\\\" %\u003es %b \\\"%{Referer}i\\\" \\\"%{User-Agent}i\\\"\" combined\n+ LogFormat \"%h %l %u %t \\\"%r\\\" %\u003es %b \\\"%{Referer}i\\\" \\\"%{User-Agent}i\\\" %T\" combined\n```\n\n```console\n$ cat logs/apache.access.log\n127.0.0.1 - - [03/Sep/2017:12:23:39 +0000] \"GET / HTTP/1.1\" 403 3839 \"-\" \"curl/7.47.1\" 1\n$ cat logs/apache.access.log | ./log2ltsv --format apache\nuser:- \ttime:2017-09-03T12:23:39+00:00\tmethod:GET\turi:/\tstatus:403\tsize:3839\treqtime:1\tapptime:1\n```\n\n### Nginx\n\n```diff\nlog_format  main  '$remote_addr - $remote_user [$time_local] \"$request\" '\n                  '$status $body_bytes_sent \"$http_referer\" '\n-                  '\"$http_user_agent\" \"$http_x_forwarded_for\"';\n+                  '\"$http_user_agent\" \"$http_x_forwarded_for\" '\n+                  '$request_time $upstream_response_time';\n```\n\n```console\n$ cat logs/nginx.access.log\n127.0.0.1 - - [03/Sep/2017:12:21:17 +0000] \"GET / HTTP/1.1\" 200 3770 \"-\" \"curl/7.47.1\" \"-\" 0.0 0.1\n$ cat logs/nginx.access.log | ./log2ltsv\nuser:-\ttime:2017-09-03T12:21:17+00:00\tmethod:GET\turi:/\tstatus:200\tsize:3770\treqtime:0.0\tapptime:0.1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkuchiki%2Flog2ltsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkuchiki%2Flog2ltsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkuchiki%2Flog2ltsv/lists"}