mirror of
https://github.com/Icinga/icingabeat.git
synced 2025-08-15 14:58:08 +02:00
21 lines
411 B
Go
21 lines
411 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/pflag"
|
|
|
|
"github.com/elastic/beats/metricbeat/beater"
|
|
|
|
cmd "github.com/elastic/beats/libbeat/cmd"
|
|
)
|
|
|
|
// Name of the beat (auditbeat).
|
|
const Name = "auditbeat"
|
|
|
|
// RootCmd for running auditbeat.
|
|
var RootCmd *cmd.BeatsRootCmd
|
|
|
|
func init() {
|
|
var runFlags = pflag.NewFlagSet(Name, pflag.ExitOnError)
|
|
RootCmd = cmd.GenRootCmdWithRunFlags(Name, "", beater.New, runFlags)
|
|
}
|