15 lines
912 B
Go
15 lines
912 B
Go
// Package entity 定义服务器安全日志表结构(手写,未跑 gf gen)。
|
||
package entity
|
||
|
||
// ServerSecurityLog 服务器安全监控日志(宿主机采集脚本上报)。
|
||
type ServerSecurityLog struct {
|
||
Id uint64 `json:"id" orm:"id" description:"主键"`
|
||
LogTime string `json:"logTime" orm:"log_time" description:"事件发生时间"`
|
||
SrcIp string `json:"srcIp" orm:"src_ip" description:"来源IP"`
|
||
SrcPort int `json:"srcPort" orm:"src_port" description:"来源端口"`
|
||
DestPort int `json:"destPort" orm:"dest_port" description:"目标端口"`
|
||
EventType string `json:"eventType" orm:"event_type" description:"事件类型 failed_ssh/accepted_ssh/banned/unbanned"`
|
||
Detail string `json:"detail" orm:"detail" description:"日志详情/原文"`
|
||
CreatedAt string `json:"createdAt" orm:"created_at" description:"入库时间"`
|
||
}
|