cloudfront

package
v0.0.0-...-2326599 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Date = iota
	Time
	EdegeLocation
	SCBytes
	IP
	Method
	Host
	URI
	Status
	Referer
	UserAgent
	Query
	Cookie
	EdgeDefaultResultType
	EdgeRequestId
	HostHeader
	Protocol
	CSByes
	TimeTaken
	ForwardedFor
	SSLProtocol
	SSLCypher
	EdgeResponseResultType
	ProtocolVersion
	FLEStatus
	FLEEncryptedFields
	Port
	TTFB
	EdgeDetailedResultType
	ContentType
	ContentLen
	RangeStart
	RangeEnd
)

Line is a struct that represents a single line in a Cloudfront log file. @see https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html

Variables

This section is empty.

Functions

This section is empty.

Types

type Line

type Line struct {
	Date                   string `csv:"date"`
	Time                   string `csv:"time"`
	EdegeLocation          string `csv:"x-edge-location"`
	SCBytes                string `csv:"sc-bytes"`
	IP                     string `csv:"c-ip"`
	Method                 string `csv:"cs-method"`
	Host                   string `csv:"cs(Host)"`
	URI                    string `csv:"cs-uri-stem"`
	Status                 string `csv:"sc-status"`
	Referer                string `csv:"cs(Referer)"`
	UserAgent              string `csv:"cs(User-Agent)"`
	Query                  string `csv:"cs-uri-query"`
	Cookie                 string `csv:"cs(Cookie)"`
	EdgeDefaultResultType  string `csv:"x-edge-result-type"`
	EdgeRequestId          string `csv:"x-edge-request-id"`
	HostHeader             string `csv:"x-host-header"`
	Protocol               string `csv:"cs-protocol"`
	CSByes                 string `csv:"cs-bytes"`
	TimeTaken              string `csv:"time-taken"`
	ForwardedFor           string `csv:"x-forwarded-for"`
	SSLProtocol            string `csv:"ssl-protocol"`
	SSLCypher              string `csv:"ssl-cipher"`
	EdgeResponseResultType string `csv:"x-edge-response-result-type"`
	ProtocolVersion        string `csv:"cs-protocol-version"`
	FLEStatus              string `csv:"fle-status"`
	FLEEncryptedFields     string `csv:"fle-encrypted-fields"`
	Port                   string `csv:"c-port"`
	TTFB                   string `csv:"time-to-first-byte"`
	EdgeDetailedResultType string `csv:"x-edge-detailed-result-type"`
	ContentType            string `csv:"sc-content-type"`
	ContentLen             string `csv:"sc-content-len"`
	RangeStart             string `csv:"sc-range-start"`
	RangeEnd               string `csv:"sc-range-end"`
}

Line is a struct that represents a single line in a CloudFront log file. @see https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html

func NewLine

func NewLine(record []string) (*Line, error)

NewLine creates a new Line struct from a raw string.

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser() *Parser

func (*Parser) ParseFile

func (p *Parser) ParseFile(in *os.File) ([]*Line, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL