Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is alias supported? #7

Closed
sergii-sakharov opened this issue Jul 25, 2018 · 3 comments
Closed

is alias supported? #7

sergii-sakharov opened this issue Jul 25, 2018 · 3 comments
Assignees

Comments

@sergii-sakharov
Copy link

sergii-sakharov commented Jul 25, 2018

Alias has slightly different def to other actions:

action: alias
description: "Add/Remove selected indices to or from the specified alias"
options:
  name: alias_name
add:
  filters:
  - filtertype: ...
remove:
  filters:
  - filtertype: ...

Specifically filters are inside add or remove which does not seem to be supported by action.pp (unless I'm missing sth here)

Here's the sample config:

      7:
        action: alias
        description: Recreate alias for combined *logstable indices
        options:
          name: logstable_combo
        remove:
          filters:
            - filtertype: none
        add:
          filters:
            - filtertype: pattern
              kind: regex
              value: '.*logstable-.*$'
@mvisonneau
Copy link
Owner

Indeed, thanks. This should be fixed by the latest commit

@mvisonneau mvisonneau self-assigned this Aug 1, 2018
@mvisonneau mvisonneau added the bug label Aug 1, 2018
@sergii-sakharov
Copy link
Author

Still broken with the example above...

@mvisonneau mvisonneau reopened this Sep 2, 2018
@mvisonneau mvisonneau added enhancement and removed bug labels Sep 2, 2018
@mvisonneau
Copy link
Owner

Thanks to @drudnev and #15 it should be fixed now. cc @lynxman :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants