parser

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KernelLogParser

type KernelLogParser struct {
}

func (*KernelLogParser) IsIPTablesLogData

func (k *KernelLogParser) IsIPTablesLogData(line string) bool

func (*KernelLogParser) Parse

func (k *KernelLogParser) Parse(line string) ParsedData

type ParsedData

type ParsedData struct {
	Direction       string `json:"direction"`
	Allowed         bool   `json:"allowed"`
	SourceIP        string `json:"src_ip"`
	DestinationIP   string `json:"dst_ip"`
	SourcePort      int    `json:"src_port"`
	DestinationPort int    `json:"dst_port"`
	Protocol        string `json:"protocol"`
	Mark            string `json:"mark"`
	ICMPType        int    `json:"icmp_type"`
	ICMPCode        int    `json:"icmp_code"`
}

Jump to

Keyboard shortcuts

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