When an alias is selected in create correlation rule, it's fields don't get populated in the fields dropdown. This PR uses a different API that can fetch fields for both indices and aliases.
Check List
[x] Commits are signed per the DCO using --signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Description
When an alias is selected in create correlation rule, it's fields don't get populated in the fields dropdown. This PR uses a different API that can fetch fields for both indices and aliases.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.