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 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
Click to show internal directories.
Click to hide internal directories.