[[timeout]]
== --timeout

[float]
Summary
~~~~~~~

By default, Curator has a 30 second timeout for most operations (
<<snapshot,snapshot>> and <<optimize,optimize>> being exceptions where the
default is overridden if it is too low). You can override this setting with the
`--timeout` flag.

[float]
Flags
~~~~~

* `--timeout` time in seconds to keep Elasticsearch client connection open.
Default: `30` (seconds).


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

[float]
Example
~~~~~~~

Connect to Elasticsearch instance on host `es.example.org` at port `12345` with
a timeout of 60 seconds:

----------------------------------------------------------------
curator --host es.example.org --port 12345 --timeout 60 <<command>> <<flags>>
----------------------------------------------------------------
