[[logformat]]
== --logformat

[float]
Summary
~~~~~~~

Change the formatting of the log output. This can be either `default`, or
`logstash` for JSON output.  The default is `default`

[float]
Flags
~~~~~

* `--logformat` TEXT Log output format `[default|logstash]`.

IMPORTANT: This flag must come before any <<commands,command>>.

[float]
Example
~~~~~~~

Set log format to `logstash` and log to `/tmp/curator.log`:

-----------------------------------------------------------------------------
curator --logfile /tmp/curator.log --logformat logstash <<command>> <<flags>>
-----------------------------------------------------------------------------
