We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
data.elasticsearch
Error when trying to fetch data using elasticsearch data provider
elasticsearch
Fabric version: v0.4.2-rc3 Plugin version: elastic, v0.4.2-rc3 Operating System: macOS
elastic
For the template
config data elasticsearch { cloud_id = "CLOUD-ID" api_key_str = "STR" } document "simple_alerts_overview" { data elasticsearch "alerts" { index = ".alerts-security.alerts-default" query_string = "@timestamp:[now-7d TO now]" size = 10000 } }
data command fails:
data
$ fabric data document.simple_alerts_overview.data.elasticsearch.alerts Jun 18 13:47:18.265 INF Parsing fabric files command=data Jun 18 13:47:18.275 INF Loading plugin resolver command=data includeRemote=false Jun 18 13:47:18.276 INF Loading plugin runner command=data Jun 18 13:47:18.310 INF Loading plugin command=data component=runner name=blackstork/elastic path=.fabric/plugins/blackstork/[email protected] Jun 18 13:47:18.320 INF Loading plugin command=data component=runner name=blackstork/openai path=.fabric/plugins/blackstork/[email protected] Jun 18 13:47:18.328 INF Fetching data command=data target=document.simple_alerts_overview.data.elasticsearch.alerts Jun 18 13:47:18.328 INF Loading document data command=data document=simple_alerts_overview datasource=elasticsearch name=alerts Error: Failed to fetch data rpc error: code = InvalidArgument desc = failed to decode config: unsupported cty type: string $ fabric data document.simple_alerts_overview.data.elasticsearch.alerts --verbose ... [13:47:31] @@@ github.com/blackstork-io/fabric/engine/engine.go:287 INFO Loading document data document : simple_alerts_overview datasource: elasticsearch name : alerts command : data [13:47:31] @@@ github.com/blackstork-io/fabric/plugin/logging.go:81 DEBUG Executing datasource G params : ============ plugin : blackstork/elastic datasource: elasticsearch G config : ============ ! base_url : <nil> * cloud_id : CLOUD-ID api_key_str : <secret> ! api_key : <nil> ! basic_auth_username: <nil> ! basic_auth_password: <nil> ! bearer_auth : <nil> ! ca_certs : <nil> G args : ============ index : .alerts-security.alerts-default ! id : <nil> query_string: @timestamp:[now-7d TO now] ! query : <nil> ! aggs : <nil> ! only_hits : <nil> ! fields : <nil> # size : 10000 component: plugin component: runner command : data [13:47:31] @@@ github.com/blackstork-io/fabric/plugin/pluginapi/v1/plugin.go:127 DEBUG Calling data source name : elasticsearch component: runner command : data [13:47:31] @@@ github.com/blackstork-io/fabric/plugin/pluginapi/v1/plugin.go:129 DEBUG Called data source name : elasticsearch @ took : 345.708µs component: runner command : data Error: Failed to fetch data rpc error: code = InvalidArgument desc = failed to decode config: unsupported cty type: string
The text was updated successfully, but these errors were encountered:
fixed in #209
Sorry, something went wrong.
No branches or pull requests
Description
Error when trying to fetch data using
elasticsearch
data providerEnvironment
Fabric version: v0.4.2-rc3
Plugin version:
elastic
, v0.4.2-rc3Operating System: macOS
Steps to Reproduce
For the template
data
command fails:The text was updated successfully, but these errors were encountered: