Documentation
¶
Index ¶
Constants ¶
View Source
const ES_INDEX = "moxsoar_tracker_idx"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DebugTracker ¶
type DebugTracker struct { }
func GetDebugTracker ¶
func GetDebugTracker() *DebugTracker
func (*DebugTracker) Track ¶
func (t *DebugTracker) Track(request *http.Request, message *TrackMessage)
type ElkTracker ¶
func GetElkTracker ¶
func GetElkTracker(settings *settings.Settings) (*ElkTracker, error)
func (*ElkTracker) Track ¶
func (t *ElkTracker) Track(r *http.Request, message *TrackMessage)
type TrackHTTPRequest ¶
type TrackHTTPRequest struct { Method string Form url.Values Header http.Header Body string Host string RemoteAddr string RequestURI string }
Stripped down http.Request message to be in the right format
type TrackMessage ¶
type TrackMessage struct { Timestamp int64 TimestampString string Path string ResponseCode int Request *TrackHTTPRequest }
func BuildTrackMessage ¶
func BuildTrackMessage(r *http.Request, tm *TrackMessage) *TrackMessage
Click to show internal directories.
Click to hide internal directories.