{"id":26731749,"url":"https://github.com/3noch/log2sql","last_synced_at":"2025-03-28T00:37:57.893Z","repository":{"id":141673484,"uuid":"43821093","full_name":"3noch/log2sql","owner":"3noch","description":"Parses a log file and writes it to a [SQLite] database for better querying","archived":false,"fork":false,"pushed_at":"2015-09-08T22:41:14.000Z","size":150,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T07:01:59.007Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"CovenantEyes/log2sql","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3noch.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}},"created_at":"2015-10-07T14:24:06.000Z","updated_at":"2022-05-19T14:32:22.000Z","dependencies_parsed_at":"2023-03-13T10:29:56.361Z","dependency_job_id":null,"html_url":"https://github.com/3noch/log2sql","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Flog2sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Flog2sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Flog2sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Flog2sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3noch","download_url":"https://codeload.github.com/3noch/log2sql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245949550,"owners_count":20698916,"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":[],"created_at":"2025-03-28T00:37:56.347Z","updated_at":"2025-03-28T00:37:57.841Z","avatar_url":"https://github.com/3noch.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"log2sql\r\n=======\r\n\r\nParses a log file and writes it to a [SQLite] database for better querying.\r\n\r\nUsage\r\n-----\r\n\r\n`log2sql --help`\r\n\r\nFor example,\r\n\r\n`log2sql -f myfile.log -d \";\" colname1 colname2 colname3 colname4`\r\n\r\nwill parse the file `myfile.log` with four columns, separated by `;`s,\r\nand write the output to `myfile-out.db`.\r\n\r\nLikewise, you could do\r\n\r\n`cat myfile.log | log2sql -d \";\" colname1 colname2 colname3 colname4`\r\n\r\nby leaving the `-f` flag off. This will write a database called\r\n`log-data.db`.\r\n\r\n`log2sql` will always merge superfluous colmuns into the last one.\r\nFor example, if you specify two columns but your data has three, then\r\n`log2sql` will merge the third column into the second.\r\n\r\n\r\nBuilding\r\n--------\r\n\r\nInstall [stack](https://github.com/commercialhaskell/stack) and run `stack setup \u0026\u0026 stack build`.\r\n\r\n\r\nLicense\r\n-------\r\n\r\nCopyright \u0026copy; Covenant Eyes 2015\r\n\r\nThis package is licensed under the [MIT license](http://opensource.org/licenses/mit-license.php)\r\n(see `LICENSE`).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3noch%2Flog2sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3noch%2Flog2sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3noch%2Flog2sql/lists"}