{"id":13474031,"url":"https://github.com/boynet/cf-logdna-worker","last_synced_at":"2026-02-20T20:29:52.705Z","repository":{"id":71019124,"uuid":"154522115","full_name":"boynet/cf-logdna-worker","owner":"boynet","description":"simple cloudflare worker recipe to send logs into logdna","archived":false,"fork":false,"pushed_at":"2020-11-23T07:09:57.000Z","size":28,"stargazers_count":26,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-30T07:45:13.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boynet.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}},"created_at":"2018-10-24T15:10:28.000Z","updated_at":"2024-07-23T06:48:05.000Z","dependencies_parsed_at":"2024-01-05T20:58:56.195Z","dependency_job_id":"799d1492-2f2f-4fd5-8090-1a34dd9edae3","html_url":"https://github.com/boynet/cf-logdna-worker","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/boynet%2Fcf-logdna-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boynet%2Fcf-logdna-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boynet%2Fcf-logdna-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boynet%2Fcf-logdna-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boynet","download_url":"https://codeload.github.com/boynet/cf-logdna-worker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245731577,"owners_count":20663210,"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":[],"created_at":"2024-07-31T16:01:08.978Z","updated_at":"2026-02-20T20:29:52.628Z","avatar_url":"https://github.com/boynet.png","language":"JavaScript","funding_links":[],"categories":["Workers"],"sub_categories":["Recipes"],"readme":"# cf-dnalog-worker\nsimple cloudflare worker recipe to send logs into [logdna](https://logdna.com/)\n\n## how to use\ncopy index.js content into your worker\nchange myApp and myHostName into whatever you want, read the logdna [Ingest API](https://docs.logdna.com/v1.0/reference#api)\n\n* maxRequestsPerBatch - how many requests to maximum batch per sending, by default it send all the batched requests once per 10 seconds\n\n## about compiledPass\n\nyou should precompile your logdna ingestion key and store it in the compilePass parameters, you can simply type in console `btoa(username+':'+password)` where username is your ingestion key and password keep empty, and put the results into the parameter to save some cpu time(probably)\n\n\nI left all the console.log command to better help you debug\n\n### logged parameters:\n\n+ user agent\n+ referer\n+ ip\n+ countryCode\n+ url\n+ colo\n+ workerInception\n+ workerId\n+ method\n+ x_forwarded_for\n+ asn\n+ status\n+ originTime\n+ CF-Cache-Status\n+ CF-Ray\n+ tlsCipher\n+ tlsVersion\n+ clientTrustScore","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboynet%2Fcf-logdna-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboynet%2Fcf-logdna-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboynet%2Fcf-logdna-worker/lists"}