Aaron,
Well, now I feel a little foolish. Perhaps it was from my initial attempt
to put --logfile at the end of the command instead of before the action:
$ curator delete --older-than 8 --logfile /tmp/curator.log
usage: curator [-h] [-v] [--host HOST] [--url_prefix URL_PREFIX] [--port
PORT]
[--ssl] [--auth AUTH] [-t TIMEOUT] [--master-only] [-n] [-D]
[--loglevel LOG_LEVEL] [-l LOG_FILE] [--logformat LOGFORMAT]
{show,allocation,alias,snapshot,close,bloom,optimize,delete}
...
curator: error: unrecognized arguments: --logfile /tmp/curator.log
So I changed it to -l before I moved it, based on the error message above.
But you're correct: It does accept both forms of the option:
# For testing: Works fine and stores the log in /tmp/curator.log
$ curator --logfile /tmp/curator.log delete --older-than 8
# Older CentOS server; it's 2.7.5 on my MacBook (Mavericks) and
# HP laptop (Ubuntu 14.04 LTS):
$ python --version
Python 2.6.6
# Latest released version:
$ curator --version
curator 1.2.2
Brian
On Tuesday, August 5, 2014 8:18:24 PM UTC-4, Aaron Mildenstein wrote:
>
> Hmm. What version of python are you using? I am able to use --logfile
> or -l interchangeably.
>
> I'm glad you like Curator, and I like KELTIC :) Nice acronym.
>
>
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/764826ca-3da6-419e-807a-f940cd86a8a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.