Documentation
¶
Index ¶
- Variables
- func CheckCharCode(s string) string
- func CloseLogDB()
- func ForEachLog(t string, st, et int64, callBack func(log *LogEnt) bool)
- func ForEachNotify(st, et int64, callBack func(n *NotifyEnt) bool)
- func ForEachSigmaConfig(callBack func(c string, d []byte))
- func ForEachSigmaRules(callBack func(c []byte, path string))
- func GenClientCert(cert, key, cn string)
- func GenServerCert(cert, key, cn string)
- func GetMIBValueString(name string, variable *gosnmp.SnmpPDU, raw bool) string
- func LoadMIBDB()
- func OpenLogDB()
- func PrintDateAndTime(i interface{}) string
- func PrintHintedMIBIntVal(val int32, hint string, us bool) string
- func PrintIPAddress(i interface{}) string
- func PrintMIBStringVal(i interface{}) string
- func SaveLogs(t string, logs []*LogEnt)
- func SaveNotify(n *NotifyEnt)
- type ConfigEnt
- type LogEnt
- type LogType
- type MIBInfo
- type MIBModuleEnt
- type MIBTreeEnt
- type MIBTypeEnt
- type NotifyEnt
Constants ¶
This section is empty.
Variables ¶
View Source
var MIBDB *gomibdb.MIBDB
View Source
var MIBInfoMap = make(map[string]*MIBInfo)
View Source
var MIBModules = []*MIBModuleEnt{}
View Source
var MIBTree = []*MIBTreeEnt{}
View Source
var MIBTypeMap = make(map[string]MIBTypeEnt)
Functions ¶
func CheckCharCode ¶
func ForEachLog ¶
ForEachLogs : for each logs
func ForEachNotify ¶
func ForEachSigmaConfig ¶
ForEachSigmaConfig : for each sigma config data
func ForEachSigmaRules ¶
ForEachSigmaRules : call back with sigma rule data
func GenClientCert ¶
func GenClientCert(cert, key, cn string)
func GenServerCert ¶
func GenServerCert(cert, key, cn string)
func GetMIBValueString ¶
func PrintDateAndTime ¶
func PrintDateAndTime(i interface{}) string
DISPLAY-HINT "2d-1d-1d,1d:1d:1d.1d,1a1d:1d"
func PrintIPAddress ¶
func PrintIPAddress(i interface{}) string
func PrintMIBStringVal ¶
func PrintMIBStringVal(i interface{}) string
func SaveNotify ¶
func SaveNotify(n *NotifyEnt)
Types ¶
type ConfigEnt ¶
type ConfigEnt struct { LogPath string `yaml:"logPath"` SyslogUDPPort int `yaml:"syslogUDPPort"` SyslogTCPPort int `yaml:"syslogTCPPort"` NetFlowPort int `yaml:"netflowPort"` SNMPTrapPort int `yaml:"snmpTrapPort"` // Windows log WinEventLogChannel string `yaml:"winEventLogChannel"` WinEventLogCheckInterval int `yaml:"winEventLogCheckInterval"` WinEventLogCheckStart int `yaml:"winEventLogCheckStart"` WinRemote string `yaml:"winRemote"` WinUser string `yaml:"winUser"` WinPassword string `yaml:"winPassword"` WinAuth string `yaml:"winAuth"` WinLogSJIS bool `yaml:"winSJIS"` // Dst SyslogDst []string `yaml:"syslogDst"` TrapDst []string `yaml:"trapDst"` TrapCommunity string `yaml:"trapCommunity"` // Log retention period (hours) LogRetention int `yaml:"logRetention"` // Notify retention period (days) NotifyRetention int `yaml:"notifyRetention"` // GROK GrokPat []string `yaml:"grockPat"` GrokDef string `yaml:"grokDef"` // Named capture NamedCaptures string `yaml:"namedCaptures"` // Key/Vaue parse KeyValParse bool `yaml:"keyValParse"` // Sigma SigmaRules string `yaml:"sigmaRules"` SigmaConfigs string `yaml:"sigmaConfigs"` SigmaSkipError bool `yaml:"sigmaSkipError"` // SNMP MIB MIBPath string `yaml:"mibPath"` // Debug Debug bool `yaml:"debug"` }
var Config ConfigEnt
type MIBInfo ¶
type MIBInfo struct { OID string Status string Type string Enum string Defval string Units string Index string Description string EnumMap map[int]string Hint string }
func FindMIBInfo ¶
type MIBModuleEnt ¶
読み込んだMIBのリスト
type MIBTreeEnt ¶
type MIBTreeEnt struct { OID string `json:"oid"` Name string `json:"name"` MIBInfo *MIBInfo Children []*MIBTreeEnt `json:"children"` }
Click to show internal directories.
Click to hide internal directories.