{"id":40851620,"url":"https://github.com/fdns/dnszeppelin-clickhouse","last_synced_at":"2026-01-21T23:39:34.485Z","repository":{"id":64305836,"uuid":"102641162","full_name":"fdns/dnszeppelin-clickhouse","owner":"fdns","description":"A Go binary that send DNS statistics to a clickhouse database","archived":false,"fork":false,"pushed_at":"2018-01-20T21:51:34.000Z","size":1181,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T10:07:05.793Z","etag":null,"topics":["clickhouse","dns","dnszeppelin","docker","go","pcap"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/fdns.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":"2017-09-06T17:59:21.000Z","updated_at":"2024-04-17T08:00:48.000Z","dependencies_parsed_at":"2023-01-15T10:30:49.800Z","dependency_job_id":null,"html_url":"https://github.com/fdns/dnszeppelin-clickhouse","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/fdns/dnszeppelin-clickhouse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdns%2Fdnszeppelin-clickhouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdns%2Fdnszeppelin-clickhouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdns%2Fdnszeppelin-clickhouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdns%2Fdnszeppelin-clickhouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fdns","download_url":"https://codeload.github.com/fdns/dnszeppelin-clickhouse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdns%2Fdnszeppelin-clickhouse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28646950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["clickhouse","dns","dnszeppelin","docker","go","pcap"],"created_at":"2026-01-21T23:39:33.961Z","updated_at":"2026-01-21T23:39:34.480Z","avatar_url":"https://github.com/fdns.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DnsZeppelin-ClickHouse\n[![Build Status](https://travis-ci.org/fdns/dnszeppelin-clickhouse.svg?branch=master)](https://travis-ci.org/fdns/dnszeppelin-clickhouse)\n\nA implementation of the library https://github.com/fdns/dnszeppelin using ClickHouse\n\n## Setting up ClickHouse\n\nYou must import the file tables.sql to your ClickHouse database manually. It will create the DNS_LOG table where the data is inserted, and different views with the aggregated data.\nYou can execute this using docker with the following command\n\n```sh\ncat tables.sql | docker run -i -a stdin --rm --net=host yandex/clickhouse-client --multiquery\n```\n\n## Example\n\nTo run the capturer on eth0\n\n```sh\n./dnszeppelin-clickhouse -serverName localserver -clickhouseAddress localhost:9000 -devName eth0\n```\n\n## Docker\nYou can run an example using docker-compose inside the docker folder. This contain godnscaptureclickhouse, clickhouse and grafana.\nYou will need to create the tables manually and upload the file `docker/grafana/panel.json` to grafana when creating a new panel.\n\nlo is the default device listened, and you can change it in `docker/docker-compose.yml`\n```sh\n(cd docker \u0026\u0026 docker-compose up -d)\n# Wait for clickhouse to start\ncat tables.sql | docker run -i -a stdin --rm --net=host yandex/clickhouse-client --multiquery\n```\n\n## Arguments\n\n|Argument|Description|\n|--- | --- |\n|devName|Device used to capture|\n|pcapFile|Pcap filename to run|\n|filter|BPF filter applied to the packet stream. Note that if port is selected, the packets will not be defragged.|\n|port|Port selected to filter packets|\n|gcTime|Time in seconds to garbage collect the tcp assembly and ip defragmentation|\n|clickhouseAddress|Address of the clickhouse database to save the results|\n|clickhouseDelay|Number of seconds to batch the packets|\n|serverName|Name of the server used to index the metrics|\n|batchSize|Minimun capacity of the cache array used to send data to clickhouse. Set close to the queries per second received to prevent allocations|\n|resultChannelSize|Size of the result processor channel size|\n|packetHandlerChannelSize|Size of the packet handler channel|\n|packetHandlers|Number of routines used to handle received packets|\n|tcpHandlers|Number of routines used to handle tcp assembly|\n|tcpAssemblyChannelSize|Size of the tcp assembler|\n|tcpResultChannelSize|Size of the tcp result channel|\n|defraggerChannelSize|Size of the channel to send packets to be defragged|\n|defraggerChannelReturnSize|Size of the channel where the defragged packets are returned|\n|cpuprofile|write cpu profile to file|\n|memprofile|write memory profile to file|\n|loggerFilename|Show the file name and number of the logged string|\n|packetLimit|Limit of packets logged to clickhouse every iteration. Default 0 (disabled)|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdns%2Fdnszeppelin-clickhouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdns%2Fdnszeppelin-clickhouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdns%2Fdnszeppelin-clickhouse/lists"}