{"id":15031905,"url":"https://github.com/marirs/leef2hashmap-rs","last_synced_at":"2026-04-08T14:02:42.479Z","repository":{"id":57676906,"uuid":"489189788","full_name":"marirs/leef2hashmap-rs","owner":"marirs","description":"A Simple LEEF Parser to a HashMap ","archived":false,"fork":false,"pushed_at":"2022-06-17T05:09:07.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T12:32:35.190Z","etag":null,"topics":["ibm","ibm-leef","leef","parser","rust","rust-crate","rust-lang","rust-language","rust-library"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/marirs.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}},"created_at":"2022-05-06T02:27:57.000Z","updated_at":"2022-05-10T03:12:09.000Z","dependencies_parsed_at":"2022-09-11T16:11:03.929Z","dependency_job_id":null,"html_url":"https://github.com/marirs/leef2hashmap-rs","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/marirs%2Fleef2hashmap-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fleef2hashmap-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fleef2hashmap-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fleef2hashmap-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marirs","download_url":"https://codeload.github.com/marirs/leef2hashmap-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243382783,"owners_count":20282007,"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":["ibm","ibm-leef","leef","parser","rust","rust-crate","rust-lang","rust-language","rust-library"],"created_at":"2024-09-24T20:16:52.124Z","updated_at":"2025-12-28T14:20:07.517Z","avatar_url":"https://github.com/marirs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LEEF to HashMap\n[![Linux Arm7](https://github.com/marirs/cef2hashmap-rs/actions/workflows/linux_arm.yml/badge.svg)](https://github.com/marirs/cef2hashmap-rs/actions/workflows/linux_arm.yml)\n[![Linux x86_64](https://github.com/marirs/cef2hashmap-rs/actions/workflows/linux_x86_64.yml/badge.svg)](https://github.com/marirs/cef2hashmap-rs/actions/workflows/linux_x86_64.yml)\n[![macOS](https://github.com/marirs/cef2hashmap-rs/actions/workflows/macos.yml/badge.svg)](https://github.com/marirs/cef2hashmap-rs/actions/workflows/macos.yml)\n[![Windows](https://github.com/marirs/cef2hashmap-rs/actions/workflows/windows.yml/badge.svg)](https://github.com/marirs/cef2hashmap-rs/actions/workflows/windows.yml)\n\nConvert a syslog LEEF string or a regular LEEF string to a HashMap object.\n\n### Requirements\n- Rust 1.56+ (2021 edition)\n\n### Example Usage\n\n```toml\n[dependencies]\nleef2hashmap = \"0.1.3\"\n```\n\nand then\n\n```rust\nuse leef2hashmap::LeefToHashMap;\n\nfn main() {\n    let example = \"\u003c134\u003e2022-02-14T03:17:30-08:00 2001:db8:3333:4444:5555:6666:7777:8888 Jan 18 11:07:53 198.76.5.4 LEEF:1.0|VMware Carbon_Black|App Control|8.6.0.155|NEW_PORT_DISCOVERD|\u003ctab\u003e|src=172.5.6.67\u003ctab\u003edst=172.50.123.1\u003ctab\u003esev=5\u003ctab\u003ecat=anomaly\u003ctab\u003emsg=there are spaces in this message\";\n    println!(\"{:#?}\", example.to_hashmap(true));\n}\n```\n- pass `false` to `.to_hashmap(false)` if you don't want to preserve the original event\n\n---\nLicense: MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarirs%2Fleef2hashmap-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarirs%2Fleef2hashmap-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarirs%2Fleef2hashmap-rs/lists"}