cmd

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerCmd = cli.Command{
	Name:  "server",
	Usage: "Starts daemon to run framework",
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  "config",
			Value: "qwatch.yml",
			Usage: "Config file, will overwrite flag default if present.",
		},
		cli.StringFlag{
			Name:  "inputs",
			Value: "gelf",
			Usage: "Comma separated list of inputs to start",
		},
		cli.StringFlag{
			Name:  "outputs",
			Value: "log",
			Usage: "Comma separated list of outputs to start",
		},
		cli.IntFlag{
			Name:  "ticker.interval",
			Value: 15000,
			Usage: "Interval of global ticker in milliseconds",
		},
		cli.IntFlag{
			Name:  "input.docker-gelf.port",
			Value: 12201,
			Usage: "UDP port of GELF collector",
		},
		cli.StringFlag{
			Name:  "input.docker-gelf.host",
			Value: "0.0.0.0",
			Usage: "UDP host of GELF collector",
		},
		cli.StringFlag{
			Name:  "output.elasticsearch.host",
			Value: "localhost",
			Usage: "Elasticsearch host to connect the ES output to",
		},
		cli.IntFlag{
			Name:  "output.elasticsearch.port",
			Value: 9200,
			Usage: "Elasticsearch port to connect the ES output to",
		},
	},
	Action: func(c *cli.Context) error {
		return qserver.ServeQlog(c)
	},
}

ServerCmd provides the flags and the execution

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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