I host on Elastic.co and was able to connect successfully and run a basic query using the Kibana connector and this format of host:
https://.us-west-2.aws.found.io:9243
I had some trouble with the ElasticSearch connector (test connection works, but queries time out), but this worked.
Now, I’m trying to figure out how to run the queries generated by Kibana, but I get the error below. I’m guessing there must be some nested data structures that Redash doesn’t know how to handle? I pretty new to ES so trying learning as I go with it.
Error running query: ‘list’ object has no attribute 'rstrip’
Query:
{"index":"snowplow",
"version": true,
"size": 500,
"sort": [
{
"collector_tstamp": {
"order": "desc",
"unmapped_type": "boolean"
}
}
],
"_source": {
"excludes": []
},
"aggs": {
"2": {
"date_histogram": {
"field": "collector_tstamp",
"calendar_interval": "1m",
"time_zone": "America/Los_Angeles",
"min_doc_count": 1
}
}
},
"stored_fields": [
"*"
],
"script_fields": {
"Server Load Time": {
"script": {
"source": "doc['contexts_org_w3_performance_timing_1.responseStart'].value - doc['contexts_org_w3_performance_timing_1.connectStart'].value",
"lang": "painless"
}
},
"Coupon": {
"script": {
"source": "if (doc['contexts_com_session_variables_1.coupon.keyword'].size() != 0) {\n doc['contexts_com_session_variables_1.coupon.keyword'].value\n}",
"lang": "painless"
}
}
},
"docvalue_fields": [
{
"field": "collector_tstamp",
"format": "date_time"
},
{
"field": "derived_tstamp",
"format": "date_time"
},
{
"field": "dvce_created_tstamp",
"format": "date_time"
},
{
"field": "dvce_sent_tstamp",
"format": "date_time"
},
{
"field": "etl_tstamp",
"format": "date_time"
}
],
"query": {
"bool": {
"must": [],
"filter": [
{
"match_all": {}
},
{
"range": {
"collector_tstamp": {
"format": "strict_date_optional_time",
"gte": "2020-05-04T22:43:07.986Z",
"lte": "2020-05-04T23:43:07.986Z"
}
}
}
],
"should": [],
"must_not": []
}
},
"highlight": {
"pre_tags": [
"@kibana-highlighted-field@"
],
"post_tags": [
"@/kibana-highlighted-field@"
],
"fields": {
"*": {}
},
"fragment_size": 2147483647
}
}