{"id":19557150,"url":"https://github.com/gingray/logcli","last_synced_at":"2025-07-13T00:34:41.341Z","repository":{"id":56881889,"uuid":"160426395","full_name":"gingray/logcli","owner":"gingray","description":"command line tool for fetch logs from remote server and make light preprocessing [alpha version]","archived":false,"fork":false,"pushed_at":"2019-05-13T11:57:12.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-10T13:48:01.435Z","etag":null,"topics":["cli","gem","logs","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/gingray.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-04T22:23:08.000Z","updated_at":"2023-02-14T01:05:56.000Z","dependencies_parsed_at":"2022-08-20T13:00:45.442Z","dependency_job_id":null,"html_url":"https://github.com/gingray/logcli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gingray/logcli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingray%2Flogcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingray%2Flogcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingray%2Flogcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingray%2Flogcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gingray","download_url":"https://codeload.github.com/gingray/logcli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gingray%2Flogcli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265075561,"owners_count":23707510,"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":["cli","gem","logs","ruby"],"created_at":"2024-11-11T04:40:28.198Z","updated_at":"2025-07-13T00:34:41.285Z","avatar_url":"https://github.com/gingray.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logcli\n\nlogcli is tool for easy working with logs but its opionated my work flow to working with logs looks like\nfetch json logs from lines and than push it to elasticsearch for future analytics my logs stored\nas JSON objects. Example how my logs look like\n```text\nI, [2019-05-09T17:00:16.049805 #57671]  INFO -- : {\"evt_type\":\"FileUpload\":\"info\",\"time\":\"2019-05-09T15:00:16+0000\",\"payload\":{\"time_elapsed_human\":\"00:00:00.874\",\"time_elapsed\":0.874553},\"trace_id\":\"cd5916a6-14b7-4628-bdda-334e4285a4e0\"}\n```\nas you can see there a log prefixer like `I, [2019-05-09T17:00:16.049805 #57671]  INFO -- : `\nthat's why its not a JSON but than goes a JSON object that I want to extract\nI'm using this command to extract JSON from log line\n```bash\nlogcli extract_json --filenames=log1.log log2.log\n```\n\nas result tool create in the SAME directory files with names `log1_json.log, log2_json.log`\n\nthan I'm push data to ES for analytics using ES + Kibana\n\n```bash\nlogcli elasticsearch --filenames=events_json.log --elasticsearch_url=http://localhost:9201\n```\n\n```bash\nlogcli --help #for more command line options\n```\n\ntool using batch API and push 100 records and the time\n\nPretty dummy stuff hah\n\n## Development\n\nIn active - passive development\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/logcli. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Logcli project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/logcli/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgingray%2Flogcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgingray%2Flogcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgingray%2Flogcli/lists"}