Back to Influxdb

kapacitord run

content/kapacitor/v1/reference/cli/kapacitord/run.md

latest2.3 KB
Original Source

The kapacitord run starts and runs the Kapacitor server.

Usage

sh
kapacitord run [flags]

Flags

FlagDescriptionInput
-blacklist-cidrsBlacklist CIDRs for most HTTP GET/POST operationsComma-separated list of CIDRs
-configPath to Kapacitor configuration fileConfiguration filepath
-disable-handlersDisable alert handlersComma-separated list of alert-handlers
-hostnameOverride the hostname in the Kapacitor configuration fileHostname
-pidfileWrite process ID to a filePID filepath
-log-fileWrite logs to a fileLog filepath
-log-levelSet the log leveldebug, info, or error

Examples

Run Kapacitor with default settings

sh
kapacitord run

Run Kapacitor with custom configuration settings

sh
kapacitord run -config /path/to/kapacitor.conf

Disable alert handlers

Disabling alert handlers can be useful for security reasons--for example, disabling the exec handler on a shared system.

sh
kapacitord run -disable-handlers exec,mqtt

Change Kapacitor logging settings

sh
kapacitord run \
  -log-file /path/to/kapacitor.log \
  -log-level debug

Blacklist HTTP GET or POST operations from specific CIDRs

sh
kapacitord run -blacklist-cidrs 10.10.0.0/16,192.168.200.5/30