zinclog

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogsFile = []string{
		"logs/access.log",
		"logs/error.log",
		"logs/slow.log",
		"logs/stat.log",
		"logs/severe.log",
	}
)

Functions

This section is empty.

Types

type Service

type Service struct {
	Name     string
	LogsPath []string `json:",optional"`
}

type ZincLogstash

type ZincLogstash struct {
	BaseURL       string
	Username      string
	Password      string
	Services      []Service
	IndexStrategy string // hourly,daily,monthly,yearly
	// contains filtered or unexported fields
}

ZincLogstash implements log collection and shipping to ZincSearch

func NewZincLogstash

func NewZincLogstash(z *ZincLogstash) *ZincLogstash

NewZincLogstash creates a new ZincLogstash instance

func (*ZincLogstash) SendLog

func (z *ZincLogstash) SendLog(index, data string) error

SendLog sends log data to ZincSearch

func (*ZincLogstash) Start

func (z *ZincLogstash) Start()

Start begins watching all configured log files

func (*ZincLogstash) Stop

func (z *ZincLogstash) Stop()

Stop gracefully stops all file watchers

Jump to

Keyboard shortcuts

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