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

kibana_index data source limits 100 indexes #45

Open
andresvia opened this issue Aug 4, 2020 · 1 comment
Open

kibana_index data source limits 100 indexes #45

andresvia opened this issue Aug 4, 2020 · 1 comment

Comments

@andresvia
Copy link

andresvia commented Aug 4, 2020

Hi @ewilde.

I'm trying to use your provider.

I have a kibana instance with a bunch of indices, so when I try to use it like this:

data "kibana_index" "foo" {
  filter {
    name = "title"
    values = ["foo"]
  }
}

output "foo" {
  value = data.kibana_index.foo
}

The result is empty despite having an index called foo. (The apply continues without errors, but it should be a failure instead -i think-).

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Outputs:

foo = {}

I looked at the query and realized that go-kibana is making a find query.

/api/saved_objects/_find?fields=title&fields=timeFieldName&fields=fields&per_page=100&type=index-pattern

Limited to 100 results.

I wasn't sure where to create the issue if here or in go-kibana

If you have an idea where should I start looking to fix the issue, please let me know, I can probably take a look and understand more about what the provider is doing and eventually submit a fix/pr.

Thanks.

Update: realized the limit is set here:

@cbrgm
Copy link

cbrgm commented Aug 6, 2021

Hey, this issue is still unresolved, right? I'm currently in the same situation where I'd like to create a lot of instances via terraform. The 100 items limit would be a major drawback. How did you proceed in your case?

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

No branches or pull requests

2 participants