Name: syslog-service
Owner: Elodina
Description: Go based Syslog service that can run within an infrastructure role on Mesos.
Created: 2015-08-18 23:51:40.0
Updated: 2016-01-14 16:51:05.0
Pushed: 2016-04-22 09:26:08.0
Homepage: http://elodina.github.io/syslog-service/
Size: 8005
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Go based Syslog service that can run within an infrastructure role on Mesos.
Get the project
$GOPATH/src/
dir -p github.com/elodina
github.com/elodina
t clone https://github.com/elodina/syslog-service.git
syslog-service
Build the scheduler and the executor
build cli.go
build executor.go
Syslog framework ships with command-line utility to manage schedulers and executors:
# ./cli help
Usage:
help: show this message
scheduler: configure and start scheduler
start: start syslog servers
stop: stop syslog servers
update: update configuration
status: get current status of cluster
More help you can get from ./cli <command> -h
The scheduler is configured through the command line.
# ./cli scheduler <options>
Following options are available:
-master="": Mesos Master addresses.
-api="": Binding host:port for http/artifact server. Optional if SM_API env is set.
-user="": Mesos user. Defaults to current system user.
-log.level="info": Log level. trace|debug|info|warn|error|critical. Defaults to info.
-framework.name="syslog-kafka": Framework name.
-framework.role="*": Framework role.
# ./cli start|stop <options>
Options available:
-api="": Binding host:port for http/artifact server. Optional if SM_API env is set.
# ./cli update <options>
Following options are available:
-api: Binding host:port for http/artifact server. Optional if SM_API env is set.
-producer.properties: Producer.properties file name.
--broker.list: Kafka broker list separated by comma.
-topic: Topic to produce data to.
-tcp.port: TCP port range to accept.
-udp.port: UDP port range to accept.
-num.producers: Number of producers to launch.
-channel.size: Producer buffer size.
port SM_API=http://master:6666
cli scheduler --master master:5050
cli update --broker.list 192.168.3.1:9092 --topic syslog
cli start