{"id":17147080,"url":"https://github.com/lauraschlimmer/logpusher","last_synced_at":"2026-04-27T16:32:49.066Z","repository":{"id":142981209,"uuid":"69978192","full_name":"lauraschlimmer/logpusher","owner":"lauraschlimmer","description":"Command-line tool to constantly import any kind of logs into a database","archived":false,"fork":false,"pushed_at":"2017-11-30T13:37:21.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T01:33:03.836Z","etag":null,"topics":["eventql","logfile","logfile-import","logfile-upload","mongodb","postgresql","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/lauraschlimmer.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-04T15:20:52.000Z","updated_at":"2017-11-30T13:38:42.000Z","dependencies_parsed_at":"2023-05-27T00:15:26.846Z","dependency_job_id":null,"html_url":"https://github.com/lauraschlimmer/logpusher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lauraschlimmer/logpusher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lauraschlimmer%2Flogpusher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lauraschlimmer%2Flogpusher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lauraschlimmer%2Flogpusher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lauraschlimmer%2Flogpusher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lauraschlimmer","download_url":"https://codeload.github.com/lauraschlimmer/logpusher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lauraschlimmer%2Flogpusher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32345803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["eventql","logfile","logfile-import","logfile-upload","mongodb","postgresql","sqlite"],"created_at":"2024-10-14T21:10:21.469Z","updated_at":"2026-04-27T16:32:49.051Z","avatar_url":"https://github.com/lauraschlimmer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logpusher\n\nA command line tool to import logfiles into a database. New loglines in the file\nare constantly added.\n\nTo specify which parts of the logline should be extracted and imported into the target table, simply define a REGEX with named capturing groups.\nEach group in the REGEX represents a column in the target table.\n\n### Logfile and REGEX\n\n    1475597897 lnd09 /GET / 80\n    1475597905 lnd09 /GET /img/home.png 80\n    1475597936 lnd07 /POST /account/new 80\n    1475597953 lnd03 /GET /about 80\n\nTo store the information of the example logfile in the columns `time`, `server_name`, `http_method` and `path`, the regex could be defined as:\n\n    $ regex=\"(?\u003ctime\u003e\\d+) (?\u003cserver_name\u003e\\w+) (?\u003chttp_method\u003e\\w+) (?\u003cpath\u003e.+)\"\n\n### Usage\n\n    $ logpusher [OPTIONS]\n        -f, --file \u003cfile\u003e                Set the path of the logfile to import\n        -r, --regex \u003cREGEX\u003e              Set the regex\n        -s, --storage \u003cengine\u003e           Set the storage engine\n        -c, --connections \u003cnum\u003e          Set the number of concurrent connections\n            --batch_size \u003cnum\u003e           Set the batch size\n        -d, --database \u003cdb\u003e              Select a database\n        -t, --table \u003ctbl\u003e                Select a destination table\n        -h, --host \u003chostname\u003e            Set the hostname of the storage engine\n        -p, --port \u003cport\u003e                Set the port of the storage engine\n        -u, --user \u003cusername\u003e            Set the username of the storage engine\n        -q, --quiet                      Run quietly\n        -?, --help                       Display this help text and exit\n\n\nNote that some options may vary depending on the storage engine/database system being used\n\n### Database support\n\n#### SQLite\n\nExample: Import `time` and `server_name` from the logfile into the table access_logs\n\n    $ logpusher -s sqlite -f logs.access_logs -r $regex -d \"dev.db\" -t access_logs\n\n\n#### MongoDB\n\nExample: Connect to MongoDB on 127.0.0.1:27017 and import the logfile into the collection access_logs\n\n    $ logpusher -s mongo -f logs.access_logs -r $regex -d dev -t access_logs -h localhost -p 27017\n\n\n#### EventQL\n\nExample: Connect to the EventQL server on localhost:10001 and import the logfile into the table access_logs\n\n    $ logpusher -s eventql -f logs.access_logs -r $regex -d dev -t access_logs -h localhost -p 10001\n\n\n#### PostgreSQL\n\nExample: Connect to PostgreSQL server on localhost:5432 as user dev and import the logfile into the table access_logs\n\n    $ logpusher -s postgresql -f logs.access_logs -r $regex -d dev -t access_logs-h localhost -p 5432 -u dev\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flauraschlimmer%2Flogpusher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flauraschlimmer%2Flogpusher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flauraschlimmer%2Flogpusher/lists"}