diff --git a/src/pages/kb/data-sources/elasticsearch.md b/src/pages/kb/data-sources/elasticsearch.md index ec7dc736a..f37cac565 100644 --- a/src/pages/kb/data-sources/elasticsearch.md +++ b/src/pages/kb/data-sources/elasticsearch.md @@ -32,9 +32,9 @@ of type `Elasticsearch`. { "index": "twitter", "query": "user:kimchy", - "fields": ["@timestamp", "tweet", "user"], - "limit": 15, - "sort": "@timestamp:asc" + "_source": ["@timestamp", "tweet", "user"], + "size": 15, + "sort": {"@timestamp:asc"} } ``` @@ -52,17 +52,9 @@ of type `Elasticsearch`. { "index": "logstash-2015.04.*", "query": "type:events AND eventName:UserUpgrade AND channel:selfserve", - "fields": [ - "@timestamp", - "userId", - "channel", - "utm_source", - "utm_medium", - "utm_campaign", - "utm_content" - ], - "limit": 250, - "sort": "@timestamp:asc" + "_source": ["@timestamp", "userId", "channel", "utm_source", "utm_medium", "utm_campaign", "utm_content"], + "size": 250, + "sort": {"@timestamp:asc"} } ``` @@ -82,14 +74,12 @@ of type `Elasticsearch`. "user": "kimchy" } }, - "fields": ["@timestamp", "tweet", "user"], - "limit": 15, - "sort": "@timestamp:asc" + "_source": ["@timestamp", "tweet", "user"], + "size": 15, + "sort": {"@timestamp:asc"} } ``` ## A note on authentication -Redash has two data sources available for Elasticsearch. You need to use the -Amazon Elasticsearch service source if you're using IAM based authentication. -Otherwise, use the standard data source. +Redash has two data sources available for Elasticsearch. You need to use the Amazon Elasticsearch service source if you're using IAM based authentication. Otherwise, use the standard data source.