{"id":20612851,"url":"https://github.com/servercentral/eslogs","last_synced_at":"2025-12-05T03:04:51.824Z","repository":{"id":57230386,"uuid":"167894966","full_name":"ServerCentral/eslogs","owner":"ServerCentral","description":"A command-line tool for searching logs stored in elasticsearch.","archived":false,"fork":false,"pushed_at":"2019-03-04T16:28:15.000Z","size":58,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T05:03:26.683Z","etag":null,"topics":["cli","elasticsearch","logstash"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ServerCentral.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}},"created_at":"2019-01-28T03:46:27.000Z","updated_at":"2020-01-31T13:31:08.000Z","dependencies_parsed_at":"2022-09-15T00:10:40.402Z","dependency_job_id":null,"html_url":"https://github.com/ServerCentral/eslogs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ServerCentral%2Feslogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ServerCentral%2Feslogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ServerCentral%2Feslogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ServerCentral%2Feslogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ServerCentral","download_url":"https://codeload.github.com/ServerCentral/eslogs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242261155,"owners_count":20098706,"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","elasticsearch","logstash"],"created_at":"2024-11-16T11:08:05.297Z","updated_at":"2025-12-05T03:04:46.803Z","avatar_url":"https://github.com/ServerCentral.png","language":"JavaScript","readme":"Introduction\n===\neslogs is a command-line tool for searching system logs stored in elasticsearch. \n\nIt takes a simple search phrase and returns log lines that match that search.\n\nInstallation\n===\n* `npm install -g eslogs`\n* Edit `~/.eslogs.json` or `/etc/eslogs.json` to match your elasticsearch configuration.\n* `eslogs --help`\n\nUsage\n===\n```\nUsage: eslogs index [options]\n  \nOptions:\n-q query           A free-text search.\n-s n               Return n latest results. Higher sizes take longer. Default 100.\n-h name            Only show logs from hosts that match this name.\n-t time            Start searching backwards from this date. Default 'now'.\n--version          Show version number.\n  \nExamples:\neslogs logstash-*\neslogs logstash-* -q error\neslogs logstash-* -q \"192.168.1.100\"\neslogs logstash-* -q \"\\\"192.168.1.100\\\" AND error\"\neslogs logstash-* -q \"failed with error\"\neslogs logstash-* -q error -t \"24 hours ago\"\neslogs logstash-* -q error -t \"monday\"\neslogs logstash-* -q error -t \"12/25/2018 midnight\"\neslogs logstash-* -q error -h myhost\neslogs logstash-* -q error -h 192.168.1.1\neslogs logstash-* -q error -s 10000 | less -S\nwatch eslogs logstash-* -q error -s 30\n```\n\nExample config\n===\n```\n{\n  \"host\": \"localhost:9200\",\n  \"indices\": {\n    \"logstash-*\": {\n      \"messageKey\": \"message\",\n      \"timestampKey\": \"@timestamp\",\n      \"hostnameKey\": \"host\"    \n    }\n  }\n }\n```\n\nHelp\n===\nFile a github issue if you are having trouble.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fservercentral%2Feslogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fservercentral%2Feslogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fservercentral%2Feslogs/lists"}