Documentation ¶
Index ¶
- Constants
- func EvePacket2Pcap(event EveEvent) ([]byte, error)
- func EvePayloadToPcap(event EveEvent) ([]byte, error)
- func FormatTimestamp(timestamp time.Time) string
- func FormatTimestampUTC(timestamp time.Time) string
- func ParseTimestamp(timestamp string) (time.Time, error)
- func ProtoNumber(proto string) (layers.IPProtocol, error)
- type EveEvent
- func (e EveEvent) AddTag(tag string)
- func (e EveEvent) DestIp() string
- func (e EveEvent) DestPort() uint16
- func (e EveEvent) EventType() string
- func (e EveEvent) GetAlert() util.JsonMap
- func (e EveEvent) GetAlertSignatureId() (uint64, bool)
- func (e EveEvent) GetMap(key string) util.JsonMap
- func (e EveEvent) GetString(key string) string
- func (e EveEvent) IcmpCode() uint8
- func (e EveEvent) IcmpType() uint8
- func (e EveEvent) MarshalJSON() ([]byte, error)
- func (e EveEvent) Packet() []byte
- func (e EveEvent) Payload() []byte
- func (e EveEvent) Proto() string
- func (e EveEvent) SetTimestamp(ts time.Time)
- func (e EveEvent) SrcIp() string
- func (e EveEvent) SrcPort() uint16
- func (e EveEvent) Timestamp() time.Time
- type EveFilter
- type GeoipFilter
- type TagsFilter
Constants ¶
View Source
const EveTimestampFormat = "2006-01-02T15:04:05.999999999Z0700"
The Eve timestamp format - a slightly modified RFC3339Nano format.
Variables ¶
This section is empty.
Functions ¶
func EvePacket2Pcap ¶
Convert the packet of an EveEvent to a PCAP file. A buffer representing a complete PCAP file is returned.
func EvePayloadToPcap ¶
Given an EvePacket, convert the payload to a PCAP faking out the headers as best we can.
A buffer containing the 1 packet pcap file will be returned.
func FormatTimestamp ¶
func FormatTimestampUTC ¶
func ProtoNumber ¶
func ProtoNumber(proto string) (layers.IPProtocol, error)
Given a protocol name as a string (could be a number), return the IPProtocol for that protocol.
Types ¶
type EveEvent ¶
type EveEvent map[string]interface{}
A EveEvent is an Eve event decoded into map[string]interface{} which contains all the data in its raw format.
func NewEveEventFromBytes ¶
func NewEveEventFromString ¶
func (EveEvent) GetAlertSignatureId ¶
func (EveEvent) MarshalJSON ¶
func (EveEvent) SetTimestamp ¶
type GeoipFilter ¶
type GeoipFilter struct {
// contains filtered or unexported fields
}
func NewGeoipFilter ¶
func NewGeoipFilter(service *geoip.GeoIpService) *GeoipFilter
func (*GeoipFilter) Filter ¶
func (f *GeoipFilter) Filter(event EveEvent)
type TagsFilter ¶
type TagsFilter struct { }
TagsFilter is an Eve filter to ensure that the event has a tags list/array.
func (*TagsFilter) Filter ¶
func (f *TagsFilter) Filter(event EveEvent)
Click to show internal directories.
Click to hide internal directories.