Choosing an output format

By default, the Akita Agent outputs log messages that use ANSI color. You can disable this with the flag --log-format plain.

The Akita Agent can also output its log messages in a JSON format recognized by Datadog. To enable this mode, use the flag --log-format json. An example of the JSON output is shown below:

{"date":"2021-08-05T12:14:36.31869181-05:00","status":"warning","message":"Skipping interface docker0 for collecting packets because of error: failed to read packets from interface docker0: docker0: You don't have permission to capture on that device (socket: Operation not permitted)"}

The JSON format is the default when the AKITA_DEPLOYMENT environment variable is set. You can restore the ANSI color by using --log-format color.