Categorygithub.com/opera/logpeck
modulepackage
0.0.3
Repository: https://github.com/opera/logpeck.git
Documentation: pkg.go.dev

# README

Logpeck - A Simple, RESTful Log Collector

Build Status Documentation Status

Objectives

Logpeck aims to be an easy-to-use module that parsing and collecting contents from log file and posting into ElasticSearch. We want to control collection tasks remotely with HTTP API (NONE configuration file).

We highly recommend to install logpeck-kibana-plugin into Kibana. With this plugin, we can control all machines and collection tasks conveniently. At the same time, we can take advantage of powerful searching and visualization features of Kibana.

Build & Launch

go build cmd/logpeckd/logpeckd.go

./logpeckd -config logpeckd.conf

We can also use supervisor or other service management software to manage logpeck process.

Try RESTful API

  1. Add a new task first. (Want more task config, filter, json, long, etc.? see here.)
curl -XPOST http://127.0.0.1:7117/peck_task/add -d {
  	"Name":"SystemLog",
	"LogPath":"/var/log/syslog",
	"ESConfig":{
	  	"Hosts":["127.0.0.1:9200"],
		"Index":"syslog",
		"Type":"raw"
	}
}
Add Success
  1. Start task.
curl -XPOST http://127.0.0.1:7117/peck_task/start -d {
  	"Name":"SystemLog"
}
Start Success
  1. Stop task
curl -XPOST http://127.0.0.1:7117/peck_task/stop -d {
  	"Name":"SystemLog"
}
  1. Remove task
curl -XPOST http://127.0.0.1:7117/peck_task/remove -d {
  	"Name":"SystemLog"
}
  1. List tasks
curl -XPOST http://127.0.0.1:7117/peck_task/list

Documentation

Dependencies

Saulte to all these excellent projects.

Discussion

Any suggestions or questions, please create an issue to feedback.

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author