H3C SecPath F5030日志外发无法体现日志内容
(0)
无法体现内容?比如?或者来张图?
(0)
怎么发图片,他显示〈003〉〈004〉〈000〉〈001〉j??del〈000〉〈000〉〈000〉这样
日志服务器可以收到 F5030 发来 syslog 报文,有时间戳、主机名,但是缺少策略、会话、攻击、操作审计等业务日志正文内容;防火墙本地日志中心可以看到完整日志,外发 syslog 只有头部。
⚠️F5030 (V7) 两套完全独立日志输出机制,非常容易混淆:
很多人只配置 info‑center loghost,没有配置 customlog 快速日志,业务安全日志就不会外发 syslog 服务器,服务器只能收到系统日志,看不到策略 / 会话审计内容。
customlog快速日志配置。info‑center 只管系统事件,安全业务日志不走 info‑center。system‑view
info‑center enable
# 配置syslog日志主机,系统日志输出
info‑center loghost 10.x.x.x vpn‑instance public port 514
info‑center loghost level informational
# 取消定制格式,第三方日志服务器优先标准格式,避免乱码解析失败
undo info‑center format
export 后面填写需要外发的日志类型,根据现场按需勾选,不要漏写;vpn‑instance 填写防火墙去往日志服务器的虚拟路由器(一般 public)H3C。
#开启快速日志输出
customlog enable
#配置快速日志主机,业务审计日志输出syslog服务器
customlog host vpn‑instance public 10.x.x.x port 514 export security‑policy session attack‑defense dpi url‑filter nat
#可选:日志时间使用本地时区时间,默认UTC格林威治时间
customlog timestamp localtime
export 参数说明:
security‑policy:安全策略日志(permit/deny 策略匹配日志)session:会话创建 / 销毁日志nat:NAT 转换日志attack‑defense:攻击防护日志dpi url‑filter ips anti‑virus sandbox:深度安全业务日志
安全策略本身必须开启日志记录,否则不会产生业务日志。
display security‑policy rule name xxx
log session‑start / log session‑endlog deny‑packet策略没有开启 log,防火墙不会生成这条流量的业务日志,自然不会外发 syslog。
session statistics enable
不开启 session statistics,不会生成会话日志。
info‑center loghost和customlog host的vpn‑instance必须填写防火墙访问日志服务器所使用的虚拟路由器。
例如日志服务器在公网,vpn‑instance public;如果管理网是另一个 vrf,则填写对应 vrf 名称。 ping 测试:
ping vpn‑instance public 10.x.x.x确认防火墙可达日志服务器。 ⚠️ping 通不等于 UDP514 放行,中间网络 ACL / 防火墙不能拦截 UDP514 端口。
#查看info‑center是否配置模块过滤
display info‑center filter
display info‑center logging suppress module
informational(level 6)。info‑center logging suppress module,会抑制部分模块日志输出,需要 undo 取消。不要随意配置
info‑center format cmcc / rfc5424 / sgcc,部分第三方 syslog 平台无法解析定制格式,出现日志正文丢失、乱码;执行undo info‑center format恢复标准 RFC3164 格式H3C。
#查看info‑center日志主机配置
display info‑center loghost
#查看快速日志输出配置(customlog)
display customlog configuration
display customlog statistics
#观察报文发送计数,如果发送计数一直在增长,说明防火墙已经发出业务日志;服务器收不到则排查网络、服务器解析。
#查看防火墙本地是否生成业务日志(确认日志源本身存在)
display logbuffer security‑policy
display logbuffer session
display customlog statistics发送计数器持续上涨 → 防火墙已经发出业务日志报文,问题出在中间网络(UDP514 拦截)或者 syslog 服务器解析格式不兼容。session statistics enable,会话日志无法生成。(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
怎么发图片,他显示〈003〉〈004〉〈000〉〈001〉j??del〈000〉〈000〉〈000〉这样