gogix: github.com/ncode/gogix/syslog Index | Files

package syslog

import "github.com/ncode/gogix/syslog"

Index

Package Files

syslog.go

Variables

var Facility = []string{"kern", "user", "mail", "daemon", "auth", "syslog", "lpr",
    "news", "uucp", "cron", "authpriv", "ftp", "ntp", "audit",
    "alert", "at", "local0", "local1", "local2", "local3",
    "local4", "local5", "local6", "local7"}
var LvlRegex = regexp.MustCompile("^<(.+?)>([A-Za-z]{3} .*)")
var Severity = []string{"emerg", "alert", "crit", "err", "warn", "notice", "info", "debug"}

type Graylog2Parsed Uses

type Graylog2Parsed struct {
    Host         string `json:"host"`
    Timestamp    int64  `json:"timestamp"`
    Facility     string `json:"facility"`
    Level        int    `json:"level"`
    Version      string `json:"version"`
    ShortMessage string `json:"short_message"`
}

func Graylog2ParseLog Uses

func Graylog2ParseLog(line string, remote_addr string) Graylog2Parsed

Package syslog imports 7 packages (graph) and is imported by 2 packages. Updated 2016-11-06. Refresh now. Tools for package owners.