cef2hashmap 0.1.4

A Simple CEF Parser to a HashMap
Documentation
  • Coverage
  • 25%
    2 out of 8 items documented1 out of 1 items with examples
  • Size
  • Source code size: 23.64 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.28 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • marirs/cef2hashmap-rs
    0 3 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • marirs

CEF to HashMap

macOS Linux Arm7 Linux x86_64 Windows

Convert a syslog CEF string or a regular CEF string to a HashMap object.

Requirements

  • Rust 1.56+ (2021 edition)

Example Usage

[dependencies]
cef2hashmap = "0.1.3"

and then

use cef2hashmap::CefToHashMap;

fn main() {
    let example = "<134>2022-02-14T03:17:30-08:00 TEST CEF:0|Vendor|Product|20.0.560|600|User Signed In|3|src=127.0.0.1 suser=Admin target=Admin msg=User signed in from 127.0.0.1 Tenant=Primary TenantId=0 act= cs1Label=Testing Label 1 Key cs1=Testing Label 1 String Value";
    println!("{:#?}", example.to_hashmap(true));
}
  • pass false to .to_hashmap(false) if you don't want to preserve the original event

License: MIT