{"id":40943267,"url":"https://github.com/stratosphereips/dataset_tools","last_synced_at":"2026-01-22T04:37:29.075Z","repository":{"id":61122800,"uuid":"98113092","full_name":"stratosphereips/dataset_tools","owner":"stratosphereips","description":"A tool set to work with our Stratosphere Laboratory cybersecurity datasets.","archived":false,"fork":false,"pushed_at":"2022-10-10T09:50:37.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-05T01:54:57.832Z","etag":null,"topics":["cybersecurity","data-science","datasets","netflow","network-security","zeek"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stratosphereips.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-07-23T17:10:09.000Z","updated_at":"2024-03-19T21:14:33.000Z","dependencies_parsed_at":"2022-10-11T10:26:59.730Z","dependency_job_id":null,"html_url":"https://github.com/stratosphereips/dataset_tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stratosphereips/dataset_tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratosphereips%2Fdataset_tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratosphereips%2Fdataset_tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratosphereips%2Fdataset_tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratosphereips%2Fdataset_tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stratosphereips","download_url":"https://codeload.github.com/stratosphereips/dataset_tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratosphereips%2Fdataset_tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28654885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":["cybersecurity","data-science","datasets","netflow","network-security","zeek"],"created_at":"2026-01-22T04:37:28.438Z","updated_at":"2026-01-22T04:37:29.067Z","avatar_url":"https://github.com/stratosphereips.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stratosphere Datasets Tools\n[![Docker Image CI](https://github.com/stratosphereips/DatasetsTools/actions/workflows/docker-image.yml/badge.svg)](https://github.com/stratosphereips/DatasetsTools/actions/workflows/docker-image.yml)\n![GitHub last commit (branch)](https://img.shields.io/github/last-commit/stratosphereips/DatasetsTools/main)\n![Docker Pulls](https://img.shields.io/docker/pulls/stratosphereips/datatoolset?color=green)\n\nA set of tools to work with the [Stratosphere datasets](https://www.stratosphereips.org/datasets-overview):\n* `zeek-histograms.py`: create histograms based on Zeek log files.\n* `merge-zeek-files.py`: merge two Zeek log files.\n\n## Zeek Histogram Creator\n\nThe tool ```zeek-histograms.py``` creates histograms from any Zeek flow files. The tool supports bin sizes in hours, minutes and seconds (E.g.: 1h, 1m, or 1s). The flows do not have to be sorted before hand, the tool will recognize its time and place it on the proper bin.\n\nExample:\n\n```bash\n$ python3 zeek-histograms.py -b 10m -f dataset/001-zeek-scenario-malicious/conn.log\n\nZeek logs histogram creator\nHistogram of flows in the zeek file dataset/001-zeek-scenario-malicious/conn.log. Bin size:10m\n\nCurrent time zone in this system is: CET. All flows\n1970-01-01 00:50:19.981745 - 1970-01-01 01:00:19.981745: 1\n1970-01-01 01:00:19.981745 - 1970-01-01 01:10:19.981745: 318 ****************************************************************************************************\n1970-01-01 01:10:19.981745 - 1970-01-01 01:20:19.981745: 166 ****************************************************\n1970-01-01 01:20:19.981745 - 1970-01-01 01:30:19.981745: 152 ***********************************************\n1970-01-01 01:30:19.981745 - 1970-01-01 01:40:19.981745: 152 ***********************************************\n1970-01-01 01:40:19.981745 - 1970-01-01 01:50:19.981745: 160 **************************************************\n1970-01-01 01:50:19.981745 - 1970-01-01 02:00:19.981745: 3\n```\n\n# Docker Image\n\nTo test the `datatoolset` image is working correctly, run the following command. The command will create a new container and run the `zeek-histograms` tool on a Zeek testing dataset: \n```bash\ndocker run --rm -it --name stratosphere_datatoolset stratosphereips/datatoolset:latest python3 zeek-histograms.py -b 10m -f dataset/001-zeek-scenario-malicious/conn.log\n```\n\nUse the public docker image with the latest version and run the tools directly on the container:\n\n```bash\ndocker run -v /full/path/to/logs/:/datasetstool/testing-datasets --name stratosphere_datatoolset --rm -it stratosphereips/datatoolset:latest /bin/bash\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstratosphereips%2Fdataset_tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstratosphereips%2Fdataset_tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstratosphereips%2Fdataset_tools/lists"}