# README
Logpeck - A Simple, RESTful Log Collector
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
- 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
- Start task.
curl -XPOST http://127.0.0.1:7117/peck_task/start -d {
"Name":"SystemLog"
}
Start Success
- Stop task
curl -XPOST http://127.0.0.1:7117/peck_task/stop -d {
"Name":"SystemLog"
}
- Remove task
curl -XPOST http://127.0.0.1:7117/peck_task/remove -d {
"Name":"SystemLog"
}
- List tasks
curl -XPOST http://127.0.0.1:7117/peck_task/list
Documentation
Dependencies
- BurntSushi/toml: configuration management
- Sirupsen/logrus: logging
- bitly/go-simplejson: json parser
- boltdb/bolt: local storage
- go-zoo/bone: http multiplexer
- hpcloud/tail: watching log file
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