Hi,
Having an issue where I'm seeing different results when I run a curator command as a .bat file than I do when I run the same command manually at a command prompt in windows.
If I run the below manually at a command prompt in windows (as in, paste it into a command prompt and hit enter)
C:\temp\curator-3.3.0-win64\curator-3.3.0\curator.exe --loglevel INFO --dry-run --logfile C:\temp\curator-3.3.0-win64\curator-3.3.0\curator.log --host --timeout 180 delete indices --older-than 1 --time-unit days --timestring %Y.%m.%d --prefix casieo_index-
I get
2015-10-07 12:39:22,724 INFO Job starting: delete indices
2015-10-07 12:39:23,025 INFO Pruning Kibana-related indices to prevent accidental deletion.
2015-10-07 12:39:23,025 INFO DRY RUN MODE. No changes will be made.
2015-10-07 12:39:23,049 INFO DRY RUN: delete: casieo_index-2015.10.04
2015-10-07 12:39:23,082 INFO DRY RUN: delete: casieo_index-2015.10.05
If I put the same command in a .bat file and run it (as an administrator), I get:
2015-10-07 12:37:59,855 WARNING No indices matched provided args: {'index': (), 'regex': None, 'newer_than': None, 'prefix': u'casieo_index-', 'exclude': (), 'time_unit': 'days', 'timestring': u'm.d', 'all_indices': False, 'older_than': 1, 'suffix': None}
The same issue occurs if I pull --dry-run out. If I paste the same exact command (except minus the --dry-run) in at the command prompt and hit enter, I get:
2015-10-07 12:44:45,178 INFO Job starting: delete indices
2015-10-07 12:44:45,338 INFO Pruning Kibana-related indices to prevent accidental deletion.
2015-10-07 12:44:45,338 INFO Deleting indices as a batch operation:
2015-10-07 12:44:45,339 INFO ---deleting index casieo_index-2015.10.04
2015-10-07 12:44:45,339 INFO ---deleting index casieo_index-2015.10.05
2015-10-07 12:44:45,483 INFO Job completed successfully.
If I run the .bat (again, as admin) without the --dry-run, I get:
2015-10-07 12:44:31,247 INFO Job starting: delete indices
2015-10-07 12:44:31,352 INFO Pruning Kibana-related indices to prevent accidental deletion.
2015-10-07 12:44:31,352 WARNING No indices matched provided args: {'exclude': (), 'timestring': u'm.d', 'newer_than': None, 'prefix': u'casieo_index-', 'regex': None, 'older_than': 1, 'index': (), 'suffix': None, 'time_unit': 'days', 'all_indices': False}
Any ideas?
Thanks,
Casie