Documentation ¶
Index ¶
- func ExecuteCustomRegex(regex *string, filename *string)
- func IP2Geo(IP string) string
- func ParseCustom(regexString string, log []string) []string
- func ParseLog(field string, log []string) []string
- func ReadFile(fileName string) []string
- func SortMapByValue(values map[string]int) []kv
- func TabelBandwidth(totalSize int)
- func TablePrint(field, field1 string, values map[string]int)
- func TablePrintIP2Loc(field, field1, field2 string, values map[string]int)
- func TopIP2LocCmd(filename *string)
- func TopIpCmd(filename *string)
- func TopMethodCmd(filename *string)
- func TopOccurr(field []string) map[string]int
- func TopRequestCmd(filename *string)
- func TopStatusCmd(filename *string)
- func TotalBandwidth(slice []string) int
- func TotalBandwidthCmd(filename *string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteCustomRegex ¶
func ParseCustom ¶
Parse a custom field from the user
func SortMapByValue ¶
SortMapByValue ... sort map by value
func TablePrint ¶
TablePrint ... print output in table
func TablePrintIP2Loc ¶
TablePrintIP2Loc prints top 10 IPs with their locations
func TopIP2LocCmd ¶
func TopIP2LocCmd(filename *string)
TopIP2LocCmd returns top 10 IPs with their locations
func TopStatusCmd ¶
func TopStatusCmd(filename *string)
TopStatusCmd ... returns top 10 status codes
func TotalBandwidth ¶
TotalBandwidth ... calculate total bandwidt
func TotalBandwidthCmd ¶
func TotalBandwidthCmd(filename *string)
TotlaBandwidthCmd ... returns total bandwidth in KB , MB and GB
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.