ArcSight CEF分析器

cefp的Python项目详细描述


CEFP

ArcSight CEF分析器

用法

作为模块

>>> import cefp
>>> cefp.parse(r'CEF:0|security|threatmanager|1.0|100|detected \\, \| and = in message|10|src=10.0.0.1 act=blocked \\, | and \= dst=1.1.1.1')
{'device': {'event_class_id': '100',
  'product': 'threatmanager',
  'vendor': 'security',
  'version': '1.0'},
 'extension': {'act': 'blocked \\, | and =',
  'dst': '1.1.1.1',
  'src': '10.0.0.1'},
 'name': 'detected \\, | and = in message',
 'severity': '10',
 'version': '0'}

作为命令

$ cefp 'CEF:0|security|threatmanager|1.0|100|detected \\, \| and = in message|10|src=10.0.0.1 act=blocked \\, | and \= dst=1.1.1.1' | jq .
{
  "version": "0",
  "device": {
    "vendor": "security",
    "product": "threatmanager",
    "version": "1.0",
    "event_class_id": "100"
  },
  "name": "detected \\, | and = in message",
  "severity": "10",
  "extension": {
    "src": "10.0.0.1",
    "act": "blocked \\, | and =",
    "dst": "1.1.1.1"
  }
}

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java中使合并排序只使用(n/2+1)额外空间的算法   将随机整数作为唯一ID从java插入mysql   试图通过Maven添加MySQL连接器时的java阻碍   使用CDI从producer为HashMap注入java歧义   java如何解决htmlUnit WrapsDriver错误   使用Java插入段落和子段落的级别   java复选框和文本视图与空白对齐   在Javascript警报中显示Java列表值   java在EclipseLuna的maven项目中构建成功后如何运行   java Spring MVC 3.1请求头字符编码问题[UTF8]   java将DAO公开为web服务   java如何知道@RequestMapping的哪个参数被调用   java如何根据设备启用硬件加速   使用byaccj构建ast时出现java错误   pdf如何使用iText Java垂直显示段落中的内容   java Selenium与Apache Poi在Excel中保存错误消息   安卓gson。JsonSyntaxException:java。lang.illegalstate例外:   Flex应用程序中浏览器缩放的java问题