Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "state_events": {
- "aliases": {},
- "mappings": {
- "stateevent": {
- "dynamic_templates": [
- {
- "do_no_analyze_tag_strings": {
- "mapping": {
- "index": "not_analyzed",
- "type": "string"
- },
- "match_mapping_type": "string",
- "path_match": "tags.*"
- }
- }
- ],
- "properties": {
- "apiKey": {
- "type": "string",
- "index": "not_analyzed"
- },
- "eventType": {
- "type": "string",
- "index": "not_analyzed"
- },
- "host": {
- "type": "string"
- },
- "labels": {
- "type": "string",
- "index": "not_analyzed"
- },
- "message": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "tags": {
- "properties": {
- "key": {
- "type": "string",
- "index": "not_analyzed"
- },
- "value": {
- "type": "string",
- "index": "not_analyzed"
- }
- }
- },
- "timestamp": {
- "type": "date",
- "format": "epoch_millis"
- }
- }
- }
- },
- "settings": {
- "index": {
- "creation_date": "1484754908073",
- "analysis": {
- "analyzer": {
- "default": {
- "filter": [
- "lowercase"
- ],
- "type": "custom",
- "tokenizer": "keyword"
- }
- }
- },
- "number_of_shards": "5",
- "number_of_replicas": "1",
- "uuid": "H9LGDjQiQIapozYtmbo2zA",
- "version": {
- "created": "2040199"
- }
- }
- },
- "warmers": {}
- }
- }
- {
- "took": 25,
- "timed_out": false,
- "_shards": {
- "total": 5,
- "successful": 5,
- "failed": 0
- },
- "hits": {
- "total": 1,
- "max_score": 1,
- "hits": [
- {
- "_index": "state_events",
- "_type": "stateevent",
- "_id": "AVmyTdNBRJK0EVTphE4j",
- "_score": 1,
- "_source": {
- "eventType": "simulation1",
- "name": "simulation1",
- "timestamp": 1484755157,
- "tags": [
- {
- "key": "foo",
- "value": "bar"
- }
- ],
- "host": "mc",
- "apiKey": "simulator",
- "labels": [],
- "status": "CLEAR"
- }
- }
- ]
- }
- }
- {
- "query": {
- "bool": {
- "must": [
- {
- "range": {
- "timestamp": {
- "gte": "20000110T000000.000Z",
- "lte": "20200119T000000.000Z",
- "format": "basic_date_time"
- }
- }
- }
- ]
- }
- }
- }
- {
- "took": 2,
- "timed_out": false,
- "_shards": {
- "total": 5,
- "successful": 5,
- "failed": 0
- },
- "hits": {
- "total": 0,
- "max_score": null,
- "hits": []
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement