{"id":18770051,"url":"https://github.com/yaroslaff/topip","last_synced_at":"2025-07-22T09:33:45.922Z","repository":{"id":65566597,"uuid":"547977040","full_name":"yaroslaff/topip","owner":"yaroslaff","description":"IPv4 grep and top usage summary for log files","archived":false,"fork":false,"pushed_at":"2025-01-22T22:30:45.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-20T23:38:27.430Z","etag":null,"topics":["cidr","filter","go","golang","grep","ip","ipv4","log","logfile","parsing","sort","top","uniq"],"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/yaroslaff.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,"zenodo":null}},"created_at":"2022-10-08T17:28:47.000Z","updated_at":"2025-01-22T22:30:48.000Z","dependencies_parsed_at":"2025-01-22T23:21:18.621Z","dependency_job_id":"ee8d1fd9-ca76-4f62-b121-c91d646a591d","html_url":"https://github.com/yaroslaff/topip","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/yaroslaff/topip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Ftopip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Ftopip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Ftopip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Ftopip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaroslaff","download_url":"https://codeload.github.com/yaroslaff/topip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Ftopip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266465457,"owners_count":23933127,"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-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["cidr","filter","go","golang","grep","ip","ipv4","log","logfile","parsing","sort","top","uniq"],"created_at":"2024-11-07T19:17:55.933Z","updated_at":"2025-07-22T09:33:45.892Z","avatar_url":"https://github.com/yaroslaff.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# topip\nIPv4 grep and top usage summary for log files.\n\n## Install option 1: precompiled version\n~~~\nwget -O topip https://github.com/yaroslaff/topip/releases/download/0.0.1/topip-`arch` \nchmod +x topip\nmv topip /usr/local/bin\n~~~\n\n## Install option 2: \nIf you have golang installed, use this command\n~~~\ngo install github.com/yaroslaff/topip@latest\n~~~\nIt will install topip inside $GOPATH (often it will be `~/go/bin/topip`)\n\n## Install option 3: Build from sources\n~~~\ngit clone https://github.com/yaroslaff/topip\ncd topip\ngo build .\ncp topip /usr/local/bin \n~~~\n\n## Top mode (default)\nDefault top mode counts occurences of each IP address and print top N (10) results.\n\n~~~\n$ topip /var/log/mail.log\n...\n    8405 92.155.149.266\n    8496 35.142.45.298\n   66340 127.0.0.1\n~~~\n\nor via stdin, something like:\n~~~\ngrep \"SASL LOGIN authentication failed:\" /var/log/mail.log | topip\n~~~\n\nuse `-t N` to override default number of lines (10).\n\n##  Grep mode\n\nGrep mode activated with `-g` or `-i` keys. `-g` print whole lines which has any IP address, `-i` print only IP addresses.\n\nJust grep all lines when we have IP:\n~~~\n# topip -g /var/log/mail.log\nOct  9 05:48:25 mx postfix/smtpd[2166]: connect from unknown[191.211.100.228]\nOct  9 05:48:26 mx postfix/smtpd[2162]: connect from unknown[103.129.202.216]\nOct  9 05:48:30 mx postfix/smtpd[2166]: warning: unknown[191.211.100.228]: SASL LOGIN authentication failed: UGFzc3dvcmQ6\n....\n~~~\n\nor print only IPs:\n~~~\n# topip -i /var/log/mail.log\n191.211.100.228\n103.129.202.216\n191.211.100.228\n~~~","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaroslaff%2Ftopip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaroslaff%2Ftopip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaroslaff%2Ftopip/lists"}