Documentation
¶
Index ¶
- Variables
- type AgentSeverity
- type CEF
- func (cef *CEF) Act() string
- func (cef *CEF) AgentDNSDomain() string
- func (cef *CEF) AgentNtDomain() string
- func (cef *CEF) AgentSeverity() AgentSeverity
- func (cef *CEF) AgentTranslatedAddress() net.IP
- func (cef *CEF) AgentTranslatedZoneExternalID() string
- func (cef *CEF) AgentTranslatedZoneKey() int64
- func (cef *CEF) AgentTranslatedZoneURI() string
- func (cef *CEF) AgentZoneExternalID() string
- func (cef *CEF) AgentZoneKey() int64
- func (cef *CEF) AgentZoneURI() string
- func (cef *CEF) Agt() net.IP
- func (cef *CEF) Ahost() string
- func (cef *CEF) Aid() string
- func (cef *CEF) Amac() net.HardwareAddr
- func (cef *CEF) App() string
- func (cef *CEF) Art() string
- func (cef *CEF) At() string
- func (cef *CEF) Atz() string
- func (cef *CEF) Av() string
- func (cef *CEF) C6a1() net.IP
- func (cef *CEF) C6a1Label() string
- func (cef *CEF) C6a3() net.IP
- func (cef *CEF) C6a3Label() string
- func (cef *CEF) C6a4() net.IP
- func (cef *CEF) C6a4Label() string
- func (cef *CEF) CEFVersion() int
- func (cef *CEF) Cat() string
- func (cef *CEF) Cfp1() float32
- func (cef *CEF) Cfp1Label() string
- func (cef *CEF) Cfp2() float32
- func (cef *CEF) Cfp2Label() string
- func (cef *CEF) Cfp3() float32
- func (cef *CEF) Cfp3Label() string
- func (cef *CEF) Cfp4() float32
- func (cef *CEF) Cfp4Label() string
- func (cef *CEF) Cn1() int64
- func (cef *CEF) Cn1Label() string
- func (cef *CEF) Cn2() int64
- func (cef *CEF) Cn2Label() string
- func (cef *CEF) Cn3() int64
- func (cef *CEF) Cn3Label() string
- func (cef *CEF) Cnt() int
- func (cef *CEF) Cs1() string
- func (cef *CEF) Cs1Label() string
- func (cef *CEF) Cs2() string
- func (cef *CEF) Cs2Label() string
- func (cef *CEF) Cs3() string
- func (cef *CEF) Cs3Label() string
- func (cef *CEF) Cs4() string
- func (cef *CEF) Cs4Label() string
- func (cef *CEF) Cs5() string
- func (cef *CEF) Cs5Label() string
- func (cef *CEF) Cs6() string
- func (cef *CEF) Cs6Label() string
- func (cef *CEF) CustomerExternalID() string
- func (cef *CEF) CustomerKey() int64
- func (cef *CEF) CustomerURI() string
- func (cef *CEF) DZoneKey() int64
- func (cef *CEF) DestinatioTranslatedZoneExternalID() string
- func (cef *CEF) DestinationDNSDomain() string
- func (cef *CEF) DestinationServiceName() string
- func (cef *CEF) DestinationTranslatedAddress() net.IP
- func (cef *CEF) DestinationTranslatedPort() int
- func (cef *CEF) DestinationTranslatedZoneKey() int64
- func (cef *CEF) DestinationTranslatedZoneURI() string
- func (cef *CEF) DestinationZoneExternalID() string
- func (cef *CEF) DestinationZoneURI() string
- func (cef *CEF) DeviceCustomDate1() string
- func (cef *CEF) DeviceCustomDate1Label() string
- func (cef *CEF) DeviceCustomDate2() string
- func (cef *CEF) DeviceCustomDate2Label() string
- func (cef *CEF) DeviceDNSDomain() string
- func (cef *CEF) DeviceDirection() int
- func (cef *CEF) DeviceEventClassID() string
- func (cef *CEF) DeviceExternalID() string
- func (cef *CEF) DeviceFacility() string
- func (cef *CEF) DeviceInboundInterface() string
- func (cef *CEF) DeviceNtDomain() string
- func (cef *CEF) DeviceOutboundInterface() string
- func (cef *CEF) DevicePayloadID() string
- func (cef *CEF) DeviceProcessName() string
- func (cef *CEF) DeviceProduct() string
- func (cef *CEF) DeviceTranslatedAddress() net.IP
- func (cef *CEF) DeviceTranslatedZoneExternalID() string
- func (cef *CEF) DeviceTranslatedZoneKey() int64
- func (cef *CEF) DeviceTranslatedZoneURI() string
- func (cef *CEF) DeviceVendor() string
- func (cef *CEF) DeviceVersion() string
- func (cef *CEF) DeviceZoneExternalID() string
- func (cef *CEF) DeviceZoneKey() int64
- func (cef *CEF) DeviceZoneURI() string
- func (cef *CEF) Dhost() string
- func (cef *CEF) Dlat() float64
- func (cef *CEF) Dlong() float64
- func (cef *CEF) Dntdom() string
- func (cef *CEF) Dpid() int
- func (cef *CEF) Dpriv() string
- func (cef *CEF) Dproc() string
- func (cef *CEF) Dpt() int
- func (cef *CEF) Dst() net.IP
- func (cef *CEF) Dtz() string
- func (cef *CEF) Duid() string
- func (cef *CEF) Duser() string
- func (cef *CEF) Dvc() net.IP
- func (cef *CEF) Dvchost() string
- func (cef *CEF) Dvcmac() net.HardwareAddr
- func (cef *CEF) Dvcpid() int
- func (cef *CEF) End() string
- func (cef *CEF) EventID() int64
- func (cef *CEF) ExternalID() string
- func (cef *CEF) FileCreateTime() string
- func (cef *CEF) FileHash() string
- func (cef *CEF) FileID() string
- func (cef *CEF) FileModificationTime() string
- func (cef *CEF) FilePath() string
- func (cef *CEF) FilePermission() string
- func (cef *CEF) FileType() string
- func (cef *CEF) FlexDate1() string
- func (cef *CEF) FlexDate1Label() string
- func (cef *CEF) FlexString1() string
- func (cef *CEF) FlexString1Label() string
- func (cef *CEF) FlexString2() string
- func (cef *CEF) FlexString2Label() string
- func (cef *CEF) Fname() string
- func (cef *CEF) Fsize() int64
- func (cef *CEF) In() int64
- func (cef *CEF) MarshalText() (text []byte, err error)
- func (cef *CEF) Msg() string
- func (cef *CEF) Name() string
- func (cef *CEF) OldFileCreateTime() string
- func (cef *CEF) OldFileHash() string
- func (cef *CEF) OldFileID() string
- func (cef *CEF) OldFileModificationTime() string
- func (cef *CEF) OldFileName() string
- func (cef *CEF) OldFilePath() string
- func (cef *CEF) OldFilePermission() string
- func (cef *CEF) OldFileSize() int64
- func (cef *CEF) OldFileType() string
- func (cef *CEF) Out() int
- func (cef *CEF) Outcome() string
- func (cef *CEF) Proto() string
- func (cef *CEF) RawEvent() string
- func (cef *CEF) Reason() string
- func (cef *CEF) Request() string
- func (cef *CEF) RequestClientApplication() string
- func (cef *CEF) RequestContext() string
- func (cef *CEF) RequestCookies() string
- func (cef *CEF) RequestMethod() string
- func (cef *CEF) Rt() string
- func (cef *CEF) STranslatedZoneKey() int64
- func (cef *CEF) SZoneKey() int64
- func (cef *CEF) SetAct(v string) *CEF
- func (cef *CEF) SetAgentDNSDomain(v string) *CEF
- func (cef *CEF) SetAgentNtDomain(v string) *CEF
- func (cef *CEF) SetAgentSeverity(v AgentSeverity) *CEF
- func (cef *CEF) SetAgentTranslatedAddress(v net.IP) *CEF
- func (cef *CEF) SetAgentTranslatedZoneExternalID(v string) *CEF
- func (cef *CEF) SetAgentTranslatedZoneKey(v int64) *CEF
- func (cef *CEF) SetAgentTranslatedZoneURI(v string) *CEF
- func (cef *CEF) SetAgentZoneExternalID(v string) *CEF
- func (cef *CEF) SetAgentZoneKey(v int64) *CEF
- func (cef *CEF) SetAgentZoneURI(v string) *CEF
- func (cef *CEF) SetAgt(v net.IP) *CEF
- func (cef *CEF) SetAhost(v string) *CEF
- func (cef *CEF) SetAid(v string) *CEF
- func (cef *CEF) SetAmac(v net.HardwareAddr) *CEF
- func (cef *CEF) SetApp(v string) *CEF
- func (cef *CEF) SetArt(v string) *CEF
- func (cef *CEF) SetAt(v string) *CEF
- func (cef *CEF) SetAtz(v string) *CEF
- func (cef *CEF) SetAv(v string) *CEF
- func (cef *CEF) SetC6a1(v net.IP) *CEF
- func (cef *CEF) SetC6a1Label(v string) *CEF
- func (cef *CEF) SetC6a3(v net.IP) *CEF
- func (cef *CEF) SetC6a3Label(v string) *CEF
- func (cef *CEF) SetC6a4(v net.IP) *CEF
- func (cef *CEF) SetC6a4Label(v string) *CEF
- func (cef *CEF) SetCEFVersion(v int) *CEF
- func (cef *CEF) SetCat(v string) *CEF
- func (cef *CEF) SetCfp1(v float32) *CEF
- func (cef *CEF) SetCfp1Label(v string) *CEF
- func (cef *CEF) SetCfp2(v float32) *CEF
- func (cef *CEF) SetCfp2Label(v string) *CEF
- func (cef *CEF) SetCfp3(v float32) *CEF
- func (cef *CEF) SetCfp3Label(v string) *CEF
- func (cef *CEF) SetCfp4(v float32) *CEF
- func (cef *CEF) SetCfp4Label(v string) *CEF
- func (cef *CEF) SetCn1(v int64) *CEF
- func (cef *CEF) SetCn1Label(v string) *CEF
- func (cef *CEF) SetCn2(v int64) *CEF
- func (cef *CEF) SetCn2Label(v string) *CEF
- func (cef *CEF) SetCn3(v int64) *CEF
- func (cef *CEF) SetCn3Label(v string) *CEF
- func (cef *CEF) SetCnt(v int) *CEF
- func (cef *CEF) SetCs1(v string) *CEF
- func (cef *CEF) SetCs1Label(v string) *CEF
- func (cef *CEF) SetCs2(v string) *CEF
- func (cef *CEF) SetCs2Label(v string) *CEF
- func (cef *CEF) SetCs3(v string) *CEF
- func (cef *CEF) SetCs3Label(v string) *CEF
- func (cef *CEF) SetCs4(v string) *CEF
- func (cef *CEF) SetCs4Label(v string) *CEF
- func (cef *CEF) SetCs5(v string) *CEF
- func (cef *CEF) SetCs5Label(v string) *CEF
- func (cef *CEF) SetCs6(v string) *CEF
- func (cef *CEF) SetCs6Label(v string) *CEF
- func (cef *CEF) SetCustomerExternalID(v string) *CEF
- func (cef *CEF) SetCustomerKey(v int64) *CEF
- func (cef *CEF) SetCustomerURI(v string) *CEF
- func (cef *CEF) SetDZoneKey(v int64) *CEF
- func (cef *CEF) SetDestinatioTranslatedZoneExternalID(v string) *CEF
- func (cef *CEF) SetDestinationDNSDomain(v string) *CEF
- func (cef *CEF) SetDestinationServiceName(v string) *CEF
- func (cef *CEF) SetDestinationTranslatedAddress(v net.IP) *CEF
- func (cef *CEF) SetDestinationTranslatedPort(v int) *CEF
- func (cef *CEF) SetDestinationTranslatedZoneKey(v int64) *CEF
- func (cef *CEF) SetDestinationTranslatedZoneURI(v string) *CEF
- func (cef *CEF) SetDestinationZoneExternalID(v string) *CEF
- func (cef *CEF) SetDestinationZoneURI(v string) *CEF
- func (cef *CEF) SetDeviceCustomDate1(v string) *CEF
- func (cef *CEF) SetDeviceCustomDate1Label(v string) *CEF
- func (cef *CEF) SetDeviceCustomDate2(v string) *CEF
- func (cef *CEF) SetDeviceCustomDate2Label(v string) *CEF
- func (cef *CEF) SetDeviceDNSDomain(v string) *CEF
- func (cef *CEF) SetDeviceDirection(v int) *CEF
- func (cef *CEF) SetDeviceEventClassID(v string) *CEF
- func (cef *CEF) SetDeviceExternalID(v string) *CEF
- func (cef *CEF) SetDeviceFacility(v string) *CEF
- func (cef *CEF) SetDeviceInboundInterface(v string) *CEF
- func (cef *CEF) SetDeviceNtDomain(v string) *CEF
- func (cef *CEF) SetDeviceOutboundInterface(v string) *CEF
- func (cef *CEF) SetDevicePayloadID(v string) *CEF
- func (cef *CEF) SetDeviceProcessName(v string) *CEF
- func (cef *CEF) SetDeviceProduct(v string) *CEF
- func (cef *CEF) SetDeviceTranslatedAddress(v net.IP) *CEF
- func (cef *CEF) SetDeviceTranslatedZoneExternalID(v string) *CEF
- func (cef *CEF) SetDeviceTranslatedZoneKey(v int64) *CEF
- func (cef *CEF) SetDeviceTranslatedZoneURI(v string) *CEF
- func (cef *CEF) SetDeviceVendor(v string) *CEF
- func (cef *CEF) SetDeviceVersion(v string) *CEF
- func (cef *CEF) SetDeviceZoneExternalID(v string) *CEF
- func (cef *CEF) SetDeviceZoneKey(v int64) *CEF
- func (cef *CEF) SetDeviceZoneURI(v string) *CEF
- func (cef *CEF) SetDhost(v string) *CEF
- func (cef *CEF) SetDlat(v float64) *CEF
- func (cef *CEF) SetDlong(v float64) *CEF
- func (cef *CEF) SetDntdom(v string) *CEF
- func (cef *CEF) SetDpid(v int) *CEF
- func (cef *CEF) SetDpriv(v string) *CEF
- func (cef *CEF) SetDproc(v string) *CEF
- func (cef *CEF) SetDpt(v int) *CEF
- func (cef *CEF) SetDst(v net.IP) *CEF
- func (cef *CEF) SetDtz(v string) *CEF
- func (cef *CEF) SetDuid(v string) *CEF
- func (cef *CEF) SetDuser(v string) *CEF
- func (cef *CEF) SetDvc(v net.IP) *CEF
- func (cef *CEF) SetDvchost(v string) *CEF
- func (cef *CEF) SetDvcmac(v net.HardwareAddr) *CEF
- func (cef *CEF) SetDvcpid(v int) *CEF
- func (cef *CEF) SetEnd(v string) *CEF
- func (cef *CEF) SetEventID(v int64) *CEF
- func (cef *CEF) SetExternalID(v string) *CEF
- func (cef *CEF) SetFileCreateTime(v string) *CEF
- func (cef *CEF) SetFileHash(v string) *CEF
- func (cef *CEF) SetFileID(v string) *CEF
- func (cef *CEF) SetFileModificationTime(v string) *CEF
- func (cef *CEF) SetFilePath(v string) *CEF
- func (cef *CEF) SetFilePermission(v string) *CEF
- func (cef *CEF) SetFileType(v string) *CEF
- func (cef *CEF) SetFlexDate1(v string) *CEF
- func (cef *CEF) SetFlexDate1Label(v string) *CEF
- func (cef *CEF) SetFlexString1(v string) *CEF
- func (cef *CEF) SetFlexString1Label(v string) *CEF
- func (cef *CEF) SetFlexString2(v string) *CEF
- func (cef *CEF) SetFlexString2Label(v string) *CEF
- func (cef *CEF) SetFname(v string) *CEF
- func (cef *CEF) SetFsize(v int64) *CEF
- func (cef *CEF) SetIn(v int64) *CEF
- func (cef *CEF) SetMsg(v string) *CEF
- func (cef *CEF) SetName(v string) *CEF
- func (cef *CEF) SetOldFileCreateTime(v string) *CEF
- func (cef *CEF) SetOldFileHash(v string) *CEF
- func (cef *CEF) SetOldFileID(v string) *CEF
- func (cef *CEF) SetOldFileModificationTime(v string) *CEF
- func (cef *CEF) SetOldFileName(v string) *CEF
- func (cef *CEF) SetOldFilePath(v string) *CEF
- func (cef *CEF) SetOldFilePermission(v string) *CEF
- func (cef *CEF) SetOldFileSize(v int64) *CEF
- func (cef *CEF) SetOldFileType(v string) *CEF
- func (cef *CEF) SetOut(v int) *CEF
- func (cef *CEF) SetOutcome(v string) *CEF
- func (cef *CEF) SetProto(v string) *CEF
- func (cef *CEF) SetRawEvent(v string) *CEF
- func (cef *CEF) SetReason(v string) *CEF
- func (cef *CEF) SetRequest(v string) *CEF
- func (cef *CEF) SetRequestClientApplication(v string) *CEF
- func (cef *CEF) SetRequestContext(v string) *CEF
- func (cef *CEF) SetRequestCookies(v string) *CEF
- func (cef *CEF) SetRequestMethod(v string) *CEF
- func (cef *CEF) SetRt(v string) *CEF
- func (cef *CEF) SetSTranslatedZoneKey(v int64) *CEF
- func (cef *CEF) SetSZoneKey(v int64) *CEF
- func (cef *CEF) SetShost(v string) *CEF
- func (cef *CEF) SetSlat(v float64) *CEF
- func (cef *CEF) SetSlong(v float64) *CEF
- func (cef *CEF) SetSmac(v net.HardwareAddr) *CEF
- func (cef *CEF) SetSntdom(v string) *CEF
- func (cef *CEF) SetSourceDNSDomain(v string) *CEF
- func (cef *CEF) SetSourceServiceName(v string) *CEF
- func (cef *CEF) SetSourceTranslatedAddress(v net.IP) *CEF
- func (cef *CEF) SetSourceTranslatedPort(v int) *CEF
- func (cef *CEF) SetSourceTranslatedZoneExternalID(v string) *CEF
- func (cef *CEF) SetSourceTranslatedZoneURI(v string) *CEF
- func (cef *CEF) SetSourceZoneExternalID(v string) *CEF
- func (cef *CEF) SetSourceZoneURI(v string) *CEF
- func (cef *CEF) SetSpid(v int) *CEF
- func (cef *CEF) SetSpriv(v string) *CEF
- func (cef *CEF) SetSproc(v string) *CEF
- func (cef *CEF) SetSpt(v int) *CEF
- func (cef *CEF) SetSrc(v net.IP) *CEF
- func (cef *CEF) SetStart(v string) *CEF
- func (cef *CEF) SetSuid(v string) *CEF
- func (cef *CEF) SetSuser(v string) *CEF
- func (cef *CEF) SetType(v int) *CEF
- func (cef *CEF) Shost() string
- func (cef *CEF) Slat() float64
- func (cef *CEF) Slong() float64
- func (cef *CEF) Smac() net.HardwareAddr
- func (cef *CEF) Sntdom() string
- func (cef *CEF) SourceDNSDomain() string
- func (cef *CEF) SourceServiceName() string
- func (cef *CEF) SourceTranslatedAddress() net.IP
- func (cef *CEF) SourceTranslatedPort() int
- func (cef *CEF) SourceTranslatedZoneExternalID() string
- func (cef *CEF) SourceTranslatedZoneURI() string
- func (cef *CEF) SourceZoneExternalID() string
- func (cef *CEF) SourceZoneURI() string
- func (cef *CEF) Spid() int
- func (cef *CEF) Spriv() string
- func (cef *CEF) Sproc() string
- func (cef *CEF) Spt() int
- func (cef *CEF) Src() net.IP
- func (cef *CEF) Start() string
- func (cef *CEF) Suid() string
- func (cef *CEF) Suser() string
- func (cef *CEF) Type() int
- func (cef *CEF) UnmarshalText(text []byte) (err error)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrBadCEFVersion = errors.New("cef: bad CEF version") ErrBadAgentSeverity = errors.New("cef: bad agent severity") ErrBadExtension = errors.New("cef: bad extension") )
var ErrHeaderFieldsNum = errors.New("cef: number of header fields less than 7")
Functions ¶
This section is empty.
Types ¶
type AgentSeverity ¶
type AgentSeverity int
AgentSeverity is a string or integer and it reflects the importance of the event.
The valid string values are: Unknown, Low, Medium, High, and Very-High. The valid integer values are: 0-3=Low, 4-6=Medium, 7- 8=High, and 9- 10=Very-High
const ( AgentSeverityLow0 AgentSeverity = iota AgentSeverityLow1 AgentSeverityLow2 AgentSeverityLow3 AgentSeverityMedium4 AgentSeverityMedium5 AgentSeverityMedium6 AgentSeverityHigh7 AgentSeverityHigh8 AgentSeverityVeryHigh9 AgentSeverityVeryHigh10 )
func (AgentSeverity) String ¶
func (s AgentSeverity) String() string
type CEF ¶
type CEF struct {
// contains filtered or unexported fields
}
func (*CEF) AgentDNSDomain ¶
The DNS domain name of the ArcSight connector that processed the event.
func (*CEF) AgentNtDomain ¶
func (*CEF) AgentSeverity ¶
func (cef *CEF) AgentSeverity() AgentSeverity
agentSeverity is a string or integer and it reflects the importance of the event. l The valid string values are: Unknown, Low, Medium, High, and Very-High. l The valid integer values are: 0-3=Low, 4-6=Medium, 7- 8=High, and 9- 10=Very-High
func (*CEF) AgentTranslatedAddress ¶
func (*CEF) AgentTranslatedZoneExternalID ¶
func (*CEF) AgentTranslatedZoneKey ¶
ID of an agentTranslatedZone resource reference.
func (*CEF) AgentTranslatedZoneURI ¶
func (*CEF) AgentZoneExternalID ¶
func (*CEF) AgentZoneKey ¶
ID of an agentZone resource reference.
func (*CEF) AgentZoneURI ¶
func (*CEF) Amac ¶
func (cef *CEF) Amac() net.HardwareAddr
The MAC address of the ArcSight connector that processed the event.
func (*CEF) App ¶
Application level protocol, example: HTTP, HTTPS, SSHv2, Telnet, POP, IMPA, IMAPS, and so on.
func (*CEF) Art ¶
The time at which information about the event was received by the ArcSight connector.
func (*CEF) C6a1 ¶
One of the four IPv6 address fields available to map fields that do not apply to any other in this dictionary. TIP: For tips on using these fields, see the guidelines defined under User-Defined Extensions.
func (*CEF) C6a1Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) C6a3 ¶
One of the four IPv6 address fields available to map fields that do not apply to any other in this dictionary. TIP: For tips on using these fields, see the guidelines defined under User-Defined Extensions.
func (*CEF) C6a3Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) C6a4 ¶
One of the four IPv6 address fields available to map fields that do not apply to any other in this dictionary. TIP: For tips on using these fields, see the guidelines defined under User-Defined Extensions.
func (*CEF) C6a4Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) CEFVersion ¶
CEF Version is an integer and identifies the version of the CEF format. Event consumers use this information to determine what the following fields represent. The current CEF format versions are: l 0 (CEF:0) - for CEF Specification version 0.1 l 1 (CEF:1)- for CEF Specification version 1.x For example, for CEF Specification version 1.2, the value of the CEF Version header field will be "1".
func (*CEF) Cat ¶
Represents the category assigned by the originating device. Devices often use their own categorization schema to classify event. Example: “/Monitor/Disk/Read”
func (*CEF) Cfp1 ¶
One of our floating point fields available to map fields that do not apply to any other in this dictionary.
func (*CEF) Cfp1Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) Cfp2 ¶
One of the four floating point fields available to map fields that do not apply to any other in this dictionary.
func (*CEF) Cfp2Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) Cfp3 ¶
One of the four floating point fields available to map fields that do not apply to any other in this dictionary.
func (*CEF) Cfp3Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) Cfp4 ¶
One of the four floating point fields available to map fields that do not apply to any other in this dictionary.
func (*CEF) Cfp4Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) Cn1 ¶
One of the three number fields available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible.
func (*CEF) Cn1Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) Cn2 ¶
One of the three number fields available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible.
func (*CEF) Cn2Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field. Implementing ArcSight Common Event Format (CEF) - Version 26 ArcS
func (*CEF) Cn3 ¶
One of the three number fields available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible.
func (*CEF) Cn3Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) Cnt ¶
A count associated with this event. How many times was this same event observed? Count can be omitted if it is 1.
func (*CEF) Cs1 ¶
One of the six strings available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. TIP : For tips on using these fields, see the guidelines defined under User- Defined Extensions
func (*CEF) Cs1Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) Cs2 ¶
One of the six strings available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. TIP: For tips on using these fields, see the guidelines defined under User-Defined Extensions.
func (*CEF) Cs2Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field
func (*CEF) Cs3 ¶
One of the six strings available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. TIP: For tips on using these fields, see the guidelines defined under User-Defined Extensions.
func (*CEF) Cs3Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) Cs4 ¶
One of the six strings available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. TIP : For tips on using these fields, see the guidelines defined under User- Defined Extensions
func (*CEF) Cs4Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) Cs5 ¶
One of six strings available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. TIP : For tips on using these fields, see the guidelines defined under User- Defined Extensions.
func (*CEF) Cs5Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field
func (*CEF) Cs6 ¶
One of six strings available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. TIP : For tips on using these fields, see the guidelines defined under User- Defined Extensions.
func (*CEF) Cs6Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) CustomerExternalID ¶
func (*CEF) CustomerURI ¶
func (*CEF) DestinatioTranslatedZoneExternalID ¶
func (*CEF) DestinationDNSDomain ¶
The DNS domain part of the complete fully qualified domain name (FQDN).
func (*CEF) DestinationServiceName ¶
The service targeted by this event. Example: “sshd”
func (*CEF) DestinationTranslatedAddress ¶
Identifies the translated destination that the event refers to in an IP network. The format is an IPv4 address. Example: “192.168.10.1”
func (*CEF) DestinationTranslatedPort ¶
Port after it was translated; for example, a firewall. Valid port numbers are 0 to 65535
func (*CEF) DestinationTranslatedZoneKey ¶
ID of a destinationTranslate dZone resource reference.
func (*CEF) DestinationTranslatedZoneURI ¶
The URI for the Translated Zone that the destination asset has been assigned to in ArcSight.
func (*CEF) DestinationZoneExternalID ¶
func (*CEF) DestinationZoneURI ¶
The URI for the Zone that the destination asset has been assigned to in ArcSight.
func (*CEF) DeviceCustomDate1 ¶
One of two timestamp fields available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. TIP : For tips on using these fields, see the guidelines defined under User- Defined Extensions.
func (*CEF) DeviceCustomDate1Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) DeviceCustomDate2 ¶
One of the two timestamp fields available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. TIP: For tips on using these fields, see the guidelines defined under User-Defined Extensions
func (*CEF) DeviceCustomDate2Label ¶
All custom fields have a corresponding label field. Each of these fields is a string and describes the purpose of the custom field.
func (*CEF) DeviceDNSDomain ¶
The DNS domain part of the complete fully qualified domain name (FQDN).
func (*CEF) DeviceDirection ¶
Any information about what direction the observed communication has taken. The following values are supported: “0” for inbound or “1” for outbound
func (*CEF) DeviceEventClassID ¶
deviceEventClassId is a unique identifier for each event-type. This can be a string or an integer. deviceEventClassId identifies the type of event reported. In the intrusion detection system (IDS) world, each signature or rule that detects certain activity has a unique deviceEventClassId assigned. This is a requirement for other types of devices as well, and helps correlation engines process the events. It is also known as Signature ID. Note: The ‘=’, ‘%’ , and ‘#’characters must be escaped in the vulnerability string that are mapped to deviceEventClassId , and if they are present in the description or name of the vulnerability. However, these characters must not be escaped when used as a delimiter
func (*CEF) DeviceExternalID ¶
A name that uniquely identifies the device generating this event.
func (*CEF) DeviceFacility ¶
The facility generating this event. For example, Syslog has an explicit facility associated with every event.
func (*CEF) DeviceInboundInterface ¶
Interface on which the packet or data entered the device.
func (*CEF) DeviceNtDomain ¶
The Windows domain name of the device address.
func (*CEF) DeviceOutboundInterface ¶
Interface on which the packet or data left the device
func (*CEF) DevicePayloadID ¶
Unique identifier for the payload associated with the event.
func (*CEF) DeviceProcessName ¶
Process name associated with the event. An example might be the process generating the syslog entry in UNIX.
func (*CEF) DeviceProduct ¶
deviceProduct, deviceVendor, and deviceVersion are strings that uniquely identify the type of device that sent the message. No two products might use the same deviceVendor and deviceProduct pair. There is no central authority managing these pairs. Event producers must ensure that they assign unique name pairs.
func (*CEF) DeviceTranslatedAddress ¶
Identifies the translated device address that the event refers to in an IP network. The format is an IPv4 address. Example: “192.168.10.1”
func (*CEF) DeviceTranslatedZoneExternalID ¶
func (*CEF) DeviceTranslatedZoneKey ¶
ID of a deviceTranslatedZone resource reference.
func (*CEF) DeviceTranslatedZoneURI ¶
The URI for the Translated Zone that the device asset has been assigned to in ArcSight.
func (*CEF) DeviceVendor ¶
deviceProduct, deviceVendor, and deviceVersion are strings that uniquely identify the type of device that sent the message. No two products might use the same deviceVendor and deviceProduct pair. There is no central authority managing these pairs. Event producers must ensure that they assign unique name pairs.
func (*CEF) DeviceVersion ¶
deviceProduct, deviceVendor, and deviceVersion are strings that uniquely identify the type of device that sent the message. No two products might use the same deviceVendor and deviceProduct pair. There is no central authority managing these pairs. Event producers must ensure that they assign unique name pairs.
func (*CEF) DeviceZoneExternalID ¶
func (*CEF) DeviceZoneKey ¶
ID of a deviceZone resource reference.
func (*CEF) DeviceZoneURI ¶
Thee URI for the Zone that the device asset has been assigned to in ArcSight.
func (*CEF) Dhost ¶
Identifies the destination that an event refers to in an IP network. The format must be a fully qualified domain name (FQDN) associated with the destination node, when a node is available. Examples: “host.domain.com” or “host”.
func (*CEF) Dpid ¶
Provides the ID of the destination process associated with the event. For example, if an event contains process ID 105, “105” is the process ID
func (*CEF) Dpriv ¶
The typical values are “Administrator”, “User”, and “Guest”. This identifies the destination user’s privileges. In UNIX, for example, activity executed on the root user would be identified with destinationUser Privileges of “Administrator”.
func (*CEF) Dst ¶
Identifies the destination address that the event refers to in an IP network. The format is an IPv4 address. Example: “192.168.10.1”
func (*CEF) Duid ¶
Identifies the destination user by ID. For example, in UNIX, the root user is generally associated with user ID 0
func (*CEF) Duser ¶
Identifies the destination user by name. This is the user associated with the event’s destination. Email addresses are often mapped into the UserName fields. The recipient is a candidate to put into this field.
func (*CEF) Dvc ¶
Identifies the device address that an event refers to in an IP network. The format is an IPv4 address. Example: “192.168.10.1”.
func (*CEF) Dvchost ¶
The format should be a fully qualified domain name (FQDN) associated with the device node, when a node is available. Example: “host.domain.com” or “host”.
func (*CEF) Dvcmac ¶
func (cef *CEF) Dvcmac() net.HardwareAddr
Six colon-separated hexadecimal numbers. Example: “00:0D:60:AF:1B:61”
func (*CEF) End ¶
The time at which the activity related to the event ended. The format is MMM dd yyyy HH:mm:ss or milliseconds since epoch (Jan 1st1970). An example would be reporting the end of a session.
func (*CEF) ExternalID ¶
The ID used by an originating device. They are usually increasing numbers, associated with events.
func (*CEF) FileCreateTime ¶
Time when the file was created.
func (*CEF) FileModificationTime ¶
Time when the file was last modified.
func (*CEF) FilePath ¶
Full path to the file, including file name itself. Example: C:\Program Files \WindowsNT\Access ories\ wordpad.exe or /usr/bin/zip
func (*CEF) FlexDate1 ¶
A timestamp field available to map a timestamp that does not apply to any other defined timestamp field in this dictionary. Use all flex fields sparingly and seek a more specific, dictionary supplied field when possible. These fields are typically reserved for customer use and should not be set by vendors unless necessary.
func (*CEF) FlexDate1Label ¶
The label field is a string and describes the purpose of the flex field.
func (*CEF) FlexString1 ¶
One of four floating point fields available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. These fields are typically reserved for customer use and should not be set by vendors unless necessary.
func (*CEF) FlexString1Label ¶
The label field is a string and describes the purpose of the flex field
func (*CEF) FlexString2 ¶
One of four floating point fields available to map fields that do not apply to any other in this dictionary. Use sparingly and seek a more specific, dictionary supplied field when possible. These fields are typically reserved for customer use and should not be set by vendors unless necessary.
func (*CEF) FlexString2Label ¶
The label field is a string and describes the purpose of the flex field.
func (*CEF) In ¶
Number of bytes transferred inbound, relative to the source to destination relationship, meaning that data was flowing from source to destination.
func (*CEF) MarshalText ¶
Example ¶
package main import ( "fmt" "net" "go.m8.ru/cef" ) func main() { log := new(cef.CEF) log.SetCEFVersion(0) log.SetDeviceVendor("Security") log.SetDeviceProduct("threatmanager") log.SetDeviceVersion("1.0") log.SetDeviceEventClassID("100") log.SetName("worm successfully stopped") log.SetAgentSeverity(cef.AgentSeverityVeryHigh10) log.SetSrc(net.ParseIP("10.0.0.1")) log.SetDst(net.ParseIP("2.1.2.2")) log.SetSpt(1232) text, err := log.MarshalText() fmt.Printf("%s\n", text) fmt.Println(err) }
Output: CEF:0|Security|threatmanager|1.0|100|worm successfully stopped|10|dst=2.1.2.2 spt=1232 src=10.0.0.1 <nil>
func (*CEF) Msg ¶
An arbitrary message giving more details about the event. Multi-line entries can be produced by using \n as the new line separator.
func (*CEF) Name ¶
name is a string representing a human- readable and understandable description of the event. The event name must not contain information that is specifically mentioned in other fields. For example: "Port scan from 10.0.0.1 targeting 20.1.1.1" is not a good event name. It must be: "Port scan". The other information is redundant and can be picked up from the rest of the fields
func (*CEF) OldFileCreateTime ¶
Time when old file was created.
func (*CEF) OldFileModificationTime ¶
Time when old file was last modified.
func (*CEF) OldFilePath ¶
Full path to the old file, including the file name itself. Examples: c:\Program Files\ WindowsNT\Accesso ries \wordpad.exe or /usr/bin/zip
func (*CEF) OldFilePermission ¶
Permissions of the old file.
func (*CEF) OldFileType ¶
Type of the old file (pipe, socket, etc.)
func (*CEF) Out ¶
Number of bytes transferred outbound relative to the source to destination relationship. For example, the byte number of data flowing from the destination to the source.
func (*CEF) Proto ¶
Identifies the Layer-4 protocol used. The possible values are protocols such as TCP or UDP
func (*CEF) Reason ¶
The reason an audit event was generated. For example “badd password” or “unknown user”. This could also be an error or return code. Example: “0x1234”
func (*CEF) Request ¶
In the case of an HTTP request, this field contains the URL accessed. The URL should contain the protocol as well. Example: “http://www/secure. com”
func (*CEF) RequestClientApplication ¶
The User-Agent associated with the request.
func (*CEF) RequestContext ¶
Description of the content from which the request originated (for example, HTTP Referrer)
func (*CEF) RequestCookies ¶
Cookies associated with the request.
func (*CEF) RequestMethod ¶
The method used to access a URL. Possible values: “POST”, “GET”, etc.
func (*CEF) Rt ¶
The time at which the event related to the activity was received. The format is MMM dd yyyy HH:mm:ss or milliseconds since epoch (Jan 1st 1970)
func (*CEF) STranslatedZoneKey ¶
ID of a sourceTranslatedZon e resource reference.
func (*CEF) SetAgentDNSDomain ¶
SetAgentDNSDomain sets "agentDNSDomain" field.
func (*CEF) SetAgentNtDomain ¶
SetAgentNtDomain sets "agentNtDomain" field.
func (*CEF) SetAgentSeverity ¶
func (cef *CEF) SetAgentSeverity(v AgentSeverity) *CEF
SetAgentSeverity sets "agentSeverity" field.
func (*CEF) SetAgentTranslatedAddress ¶
SetAgentTranslatedAddress sets "agentTranslatedAddress" field.
func (*CEF) SetAgentTranslatedZoneExternalID ¶
SetAgentTranslatedZoneExternalID sets "agentTranslatedZoneExternalID" field.
func (*CEF) SetAgentTranslatedZoneKey ¶
SetAgentTranslatedZoneKey sets "agentTranslatedZoneKey" field.
func (*CEF) SetAgentTranslatedZoneURI ¶
SetAgentTranslatedZoneURI sets "agentTranslatedZoneURI" field.
func (*CEF) SetAgentZoneExternalID ¶
SetAgentZoneExternalID sets "agentZoneExternalID" field.
func (*CEF) SetAgentZoneKey ¶
SetAgentZoneKey sets "agentZoneKey" field.
func (*CEF) SetAgentZoneURI ¶
SetAgentZoneURI sets "agentZoneURI" field.
func (*CEF) SetC6a1Label ¶
SetC6a1Label sets "c6a1Label" field.
func (*CEF) SetC6a3Label ¶
SetC6a3Label sets "c6a3Label" field.
func (*CEF) SetC6a4Label ¶
SetC6a4Label sets "c6a4Label" field.
func (*CEF) SetCEFVersion ¶
SetCEFVersion sets "cefVersion" field.
func (*CEF) SetCfp1Label ¶
SetCfp1Label sets "cfp1Label" field.
func (*CEF) SetCfp2Label ¶
SetCfp2Label sets "cfp2Label" field.
func (*CEF) SetCfp3Label ¶
SetCfp3Label sets "cfp3Label" field.
func (*CEF) SetCfp4Label ¶
SetCfp4Label sets "cfp4Label" field.
func (*CEF) SetCn1Label ¶
SetCn1Label sets "cn1Label" field.
func (*CEF) SetCn2Label ¶
SetCn2Label sets "cn2Label" field.
func (*CEF) SetCn3Label ¶
SetCn3Label sets "cn3Label" field.
func (*CEF) SetCs1Label ¶
SetCs1Label sets "cs1Label" field.
func (*CEF) SetCs2Label ¶
SetCs2Label sets "cs2Label" field.
func (*CEF) SetCs3Label ¶
SetCs3Label sets "cs3Label" field.
func (*CEF) SetCs4Label ¶
SetCs4Label sets "cs4Label" field.
func (*CEF) SetCs5Label ¶
SetCs5Label sets "cs5Label" field.
func (*CEF) SetCs6Label ¶
SetCs6Label sets "cs6Label" field.
func (*CEF) SetCustomerExternalID ¶
SetCustomerExternalID sets "customerExternalID" field.
func (*CEF) SetCustomerKey ¶
SetCustomerKey sets "customerKey" field.
func (*CEF) SetCustomerURI ¶
SetCustomerURI sets "customerURI" field.
func (*CEF) SetDZoneKey ¶
SetDZoneKey sets "dZoneKey" field.
func (*CEF) SetDestinatioTranslatedZoneExternalID ¶
SetDestinatioTranslatedZoneExternalID sets "destinatioTranslatedZoneExternalID" field.
func (*CEF) SetDestinationDNSDomain ¶
SetDestinationDNSDomain sets "destinationDNSDomain" field.
func (*CEF) SetDestinationServiceName ¶
SetDestinationServiceName sets "destinationServiceName" field.
func (*CEF) SetDestinationTranslatedAddress ¶
SetDestinationTranslatedAddress sets "destinationTranslatedAddress" field.
func (*CEF) SetDestinationTranslatedPort ¶
SetDestinationTranslatedPort sets "destinationTranslatedPort" field.
func (*CEF) SetDestinationTranslatedZoneKey ¶
SetDestinationTranslatedZoneKey sets "destinationTranslatedZoneKey" field.
func (*CEF) SetDestinationTranslatedZoneURI ¶
SetDestinationTranslatedZoneURI sets "destinationTranslatedZoneURI" field.
func (*CEF) SetDestinationZoneExternalID ¶
SetDestinationZoneExternalID sets "destinationZoneExternalID" field.
func (*CEF) SetDestinationZoneURI ¶
SetDestinationZoneURI sets "destinationZoneURI" field.
func (*CEF) SetDeviceCustomDate1 ¶
SetDeviceCustomDate1 sets "deviceCustomDate1" field.
func (*CEF) SetDeviceCustomDate1Label ¶
SetDeviceCustomDate1Label sets "deviceCustomDate1Label" field.
func (*CEF) SetDeviceCustomDate2 ¶
SetDeviceCustomDate2 sets "deviceCustomDate2" field.
func (*CEF) SetDeviceCustomDate2Label ¶
SetDeviceCustomDate2Label sets "deviceCustomDate2Label" field.
func (*CEF) SetDeviceDNSDomain ¶
SetDeviceDNSDomain sets "deviceDNSDomain" field.
func (*CEF) SetDeviceDirection ¶
SetDeviceDirection sets "deviceDirection" field.
func (*CEF) SetDeviceEventClassID ¶
SetDeviceEventClassID sets "deviceEventClassID" field.
func (*CEF) SetDeviceExternalID ¶
SetDeviceExternalID sets "deviceExternalID" field.
func (*CEF) SetDeviceFacility ¶
SetDeviceFacility sets "deviceFacility" field.
func (*CEF) SetDeviceInboundInterface ¶
SetDeviceInboundInterface sets "deviceInboundInterface" field.
func (*CEF) SetDeviceNtDomain ¶
SetDeviceNtDomain sets "deviceNtDomain" field.
func (*CEF) SetDeviceOutboundInterface ¶
SetDeviceOutboundInterface sets "deviceOutboundInterface" field.
func (*CEF) SetDevicePayloadID ¶
SetDevicePayloadID sets "devicePayloadID" field.
func (*CEF) SetDeviceProcessName ¶
SetDeviceProcessName sets "deviceProcessName" field.
func (*CEF) SetDeviceProduct ¶
SetDeviceProduct sets "deviceProduct" field.
func (*CEF) SetDeviceTranslatedAddress ¶
SetDeviceTranslatedAddress sets "deviceTranslatedAddress" field.
func (*CEF) SetDeviceTranslatedZoneExternalID ¶
SetDeviceTranslatedZoneExternalID sets "deviceTranslatedZoneExternalID" field.
func (*CEF) SetDeviceTranslatedZoneKey ¶
SetDeviceTranslatedZoneKey sets "deviceTranslatedZoneKey" field.
func (*CEF) SetDeviceTranslatedZoneURI ¶
SetDeviceTranslatedZoneURI sets "deviceTranslatedZoneURI" field.
func (*CEF) SetDeviceVendor ¶
SetDeviceVendor sets "deviceVendor" field.
func (*CEF) SetDeviceVersion ¶
SetDeviceVersion sets "deviceVersion" field.
func (*CEF) SetDeviceZoneExternalID ¶
SetDeviceZoneExternalID sets "deviceZoneExternalID" field.
func (*CEF) SetDeviceZoneKey ¶
SetDeviceZoneKey sets "deviceZoneKey" field.
func (*CEF) SetDeviceZoneURI ¶
SetDeviceZoneURI sets "deviceZoneURI" field.
func (*CEF) SetDvcmac ¶
func (cef *CEF) SetDvcmac(v net.HardwareAddr) *CEF
SetDvcmac sets "dvcmac" field.
func (*CEF) SetExternalID ¶
SetExternalID sets "externalID" field.
func (*CEF) SetFileCreateTime ¶
SetFileCreateTime sets "fileCreateTime" field.
func (*CEF) SetFileHash ¶
SetFileHash sets "fileHash" field.
func (*CEF) SetFileModificationTime ¶
SetFileModificationTime sets "fileModificationTime" field.
func (*CEF) SetFilePath ¶
SetFilePath sets "filePath" field.
func (*CEF) SetFilePermission ¶
SetFilePermission sets "filePermission" field.
func (*CEF) SetFileType ¶
SetFileType sets "fileType" field.
func (*CEF) SetFlexDate1 ¶
SetFlexDate1 sets "flexDate1" field.
func (*CEF) SetFlexDate1Label ¶
SetFlexDate1Label sets "flexDate1Label" field.
func (*CEF) SetFlexString1 ¶
SetFlexString1 sets "flexString1" field.
func (*CEF) SetFlexString1Label ¶
SetFlexString1Label sets "flexString1Label" field.
func (*CEF) SetFlexString2 ¶
SetFlexString2 sets "flexString2" field.
func (*CEF) SetFlexString2Label ¶
SetFlexString2Label sets "flexString2Label" field.
func (*CEF) SetOldFileCreateTime ¶
SetOldFileCreateTime sets "oldFileCreateTime" field.
func (*CEF) SetOldFileHash ¶
SetOldFileHash sets "oldFileHash" field.
func (*CEF) SetOldFileID ¶
SetOldFileID sets "oldFileID" field.
func (*CEF) SetOldFileModificationTime ¶
SetOldFileModificationTime sets "oldFileModificationTime" field.
func (*CEF) SetOldFileName ¶
SetOldFileName sets "oldFileName" field.
func (*CEF) SetOldFilePath ¶
SetOldFilePath sets "oldFilePath" field.
func (*CEF) SetOldFilePermission ¶
SetOldFilePermission sets "oldFilePermission" field.
func (*CEF) SetOldFileSize ¶
SetOldFileSize sets "oldFileSize" field.
func (*CEF) SetOldFileType ¶
SetOldFileType sets "oldFileType" field.
func (*CEF) SetRawEvent ¶
SetRawEvent sets "rawEvent" field.
func (*CEF) SetRequestClientApplication ¶
SetRequestClientApplication sets "requestClientApplication" field.
func (*CEF) SetRequestContext ¶
SetRequestContext sets "requestContext" field.
func (*CEF) SetRequestCookies ¶
SetRequestCookies sets "requestCookies" field.
func (*CEF) SetRequestMethod ¶
SetRequestMethod sets "requestMethod" field.
func (*CEF) SetSTranslatedZoneKey ¶
SetSTranslatedZoneKey sets "sTranslatedZoneKey" field.
func (*CEF) SetSZoneKey ¶
SetSZoneKey sets "sZoneKey" field.
func (*CEF) SetSourceDNSDomain ¶
SetSourceDNSDomain sets "sourceDNSDomain" field.
func (*CEF) SetSourceServiceName ¶
SetSourceServiceName sets "sourceServiceName" field.
func (*CEF) SetSourceTranslatedAddress ¶
SetSourceTranslatedAddress sets "sourceTranslatedAddress" field.
func (*CEF) SetSourceTranslatedPort ¶
SetSourceTranslatedPort sets "sourceTranslatedPort" field.
func (*CEF) SetSourceTranslatedZoneExternalID ¶
SetSourceTranslatedZoneExternalID sets "sourceTranslatedZoneExternalID" field.
func (*CEF) SetSourceTranslatedZoneURI ¶
SetSourceTranslatedZoneURI sets "sourceTranslatedZoneURI" field.
func (*CEF) SetSourceZoneExternalID ¶
SetSourceZoneExternalID sets "sourceZoneExternalID" field.
func (*CEF) SetSourceZoneURI ¶
SetSourceZoneURI sets "sourceZoneURI" field.
func (*CEF) Shost ¶
Identifies the source that an event refers to in an IP network. The format should be a fully qualified domain name (FQDN) associated with the source node, when a mode is available. Examples: “host” or “host.domain.com”.
func (*CEF) Smac ¶
func (cef *CEF) Smac() net.HardwareAddr
Six colon-separated hexadecimal numbers. Example: “00:0D:60:AF:1B:61”
func (*CEF) SourceDNSDomain ¶
The DNS domain part of the complete fully qualified domain name (FQDN).
func (*CEF) SourceServiceName ¶
The service that is responsible for generating this event.
func (*CEF) SourceTranslatedAddress ¶
Identifies the translated source that the event refers to in an IP network. The format is an IPv4 address. Example: “192.168.10.1”.
func (*CEF) SourceTranslatedPort ¶
A port number after being translated by, for example, a firewall. Valid port numbers are 0 to 65535.
func (*CEF) SourceTranslatedZoneExternalID ¶
func (*CEF) SourceTranslatedZoneURI ¶
The URI for the Translated Zone that the destination asset has been assigned to in ArcSight.
func (*CEF) SourceZoneExternalID ¶
func (*CEF) SourceZoneURI ¶
The URI for the Zone that the source asset has been assigned to in ArcSight.
func (*CEF) Spriv ¶
The typical values are “Administrator”, “User”, and “Guest”. It identifies the source user’s privileges. In UNIX, for example, activity executed by the root user would be identified with “Administrator”.
func (*CEF) Src ¶
Identifies the source that an event refers to in an IP network. The format is an IPv4 address. Example: “192.168.10.1”.
func (*CEF) Start ¶
The time when the activity the event referred to started. The format is MMM dd yyyy HH:mm:ss or milliseconds since epoch (Jan 1st 1970)
func (*CEF) Suid ¶
Identifies the source user by ID. This is the user associated with the source of the event. For example, in UNIX, the root user is generally associated with user ID 0.
func (*CEF) Suser ¶
Identifies the source user by name. Email addresses are also mapped into the UserName fields. The sender is a candidate to put into this field.
func (*CEF) Type ¶
0 means base event, 1 means aggregated, 2 means correlation, and 3 means action. This field can be omitted for base events (type 0)
func (*CEF) UnmarshalText ¶
Example ¶
package main import ( "fmt" "go.m8.ru/cef" ) func main() { log := new(cef.CEF) text := "CEF:0|Security|threatmanager|1.0|100|worm successfully stopped|10|dst=2.1.2.2 spt=1232 src=10.0.0.1" err := log.UnmarshalText([]byte(text)) fmt.Println(log.CEFVersion()) fmt.Println(log.DeviceVendor()) fmt.Println(log.DeviceProduct()) fmt.Println(log.DeviceVersion()) fmt.Println(log.DeviceEventClassID()) fmt.Println(log.Name()) fmt.Println(log.AgentSeverity()) fmt.Printf("dst=%v spt=%v src=%v\n", log.Dst(), log.Spt(), log.Src()) fmt.Println(err) }
Output: 0 Security threatmanager 1.0 100 worm successfully stopped Very-High dst=2.1.2.2 spt=1232 src=10.0.0.1 <nil>