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

Code sample does not contain all the fields described in the Payload #1122

Closed
AmiStrn opened this issue Jun 8, 2021 · 1 comment
Closed

Comments

@AmiStrn
Copy link
Contributor

AmiStrn commented Jun 8, 2021

see:

- lang: cURL
source: >-
curl -X POST https://api.logz.io/v1/search \
-H 'Content-Type: application/json' \
-H 'X-API-TOKEN: <token>' \
-d '{
"size": 10,
"query": {
"bool": {
"must": [{
"range": {
"@timestamp": {
"gte": "now-5m",
"lte": "now"
}
}
}]
}
},
"aggs": {
"byType": {
"terms": {
"field": "type",
"size": 5
}
}
}
}' '

should contain a payload of:

{
	"query": {
		"bool": {
			"must": [{
				"range": {
					"@timestamp": {
						"gte": "now-5m",
						"lte": "now"
					}
				}
			}]
		}
	},
	"from": 10,
	"size": 50,
	"sort": [{}],
	"_source": {
		"includes": "message"
	},
	"post_filter": {},
	"docvalue_fields": {},
	"version": {},
	"store": null,
	"highlight": {},
	"aggregations": {
		"byType": {
			"terms": {
				"field": "type",
				"size": 5
			}
		}
	}
}
@nico-shishkin
Copy link
Collaborator

Solved

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