{"id":24087983,"url":"https://github.com/tinybirdco/nginx-logs-analytics","last_synced_at":"2025-08-14T12:43:41.100Z","repository":{"id":113972971,"uuid":"364914638","full_name":"tinybirdco/nginx-logs-analytics","owner":"tinybirdco","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-07T17:33:28.000Z","size":84,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-27T05:25:24.231Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/tinybirdco.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}},"created_at":"2021-05-06T13:10:02.000Z","updated_at":"2021-12-14T10:51:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"e8a32776-8df6-4043-bd3a-4d3d28eb6ec7","html_url":"https://github.com/tinybirdco/nginx-logs-analytics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tinybirdco/nginx-logs-analytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Fnginx-logs-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Fnginx-logs-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Fnginx-logs-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Fnginx-logs-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinybirdco","download_url":"https://codeload.github.com/tinybirdco/nginx-logs-analytics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Fnginx-logs-analytics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270422586,"owners_count":24580829,"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-08-14T02:00:10.309Z","response_time":75,"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":[],"created_at":"2025-01-10T03:56:52.706Z","updated_at":"2025-08-14T12:43:41.082Z","avatar_url":"https://github.com/tinybirdco.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"This project should be used along with tbtail to send and process Nginx logs on Tinybird.\n\nEvents are ingested to a Null Data Source (`nginx_raw`), then the info from the JSON is extracted to columns in `nginx_log`, where all the logs are saved with a TTL of 3 days. From there, materialized views with aggregations on 4 different time frames (monthly, daily, hourly and by 5 mins intervals) are created and saved in other Data Sources\n\n![Diagram of what this project creates](/nginx_logs_diagram.png)\n\nTo replicate the project in your Tintybird account, run\n\n```bash\ngit clone git@github.com:tinybirdco/nginx-logs-analytics.git # clones the data project\ncd nginx-logs-analytics/tb_project sets the working directory to the root dir of the data project\n\ntb auth # will ask for your admin token. You can get it from https://ui.tinybird.co/tokens. Will create a .tinyb file in the current folder\n\nsh push_resources.sh # Creates the full data project on your Tinybird account (Data Sources, Materialized Views, pipes and endpoints)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinybirdco%2Fnginx-logs-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinybirdco%2Fnginx-logs-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinybirdco%2Fnginx-logs-analytics/lists"}