No ip is shown on the map panel...
Index mapping:
{
"switch": {
"properties": {
"ClientIP": {
"type": "string"
},
"ClientPort": {
"type": "long"
},
"Protocol": {
"type": "string"
},
"ServerIP": {
"type": "ip"
},
"ServerPort": {
"type": "long"
},
"Status": {
"type": "long"
},
"URL": {
"type": "string"
},
"timestamp": {
"type": "long"
}
}
}
}
Query:
curl -XGET 'http://192.168.119.24:9200/log-20131109/_search?pretty' -d '{
"facets": {
"map": {
"terms": {
"field": "ClientIP",
"size": 100,
"exclude": []
},
"facet_filter": {
"fquery": {
"query": {
"filtered": {
"query": {
"bool": {}
},
"filter": {
"bool": {
"must": [
{
"match_all": {}
},
{
"bool": {
"must": [
{
"match_all": {}
}
]
}
}
]
}
}
}
}
}
}
}
},
"size": 0
}'
Query result by curl returns:
{
"took" : 12,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 34162,
"max_score" : 1.0,
"hits" : [ ]
},
"facets" : {
"map" : {
"_type" : "terms",
"missing" : 1,
"total" : 34161,
"other" : 13541,
"terms" : [ {
"term" : "202.112.114.2",
"count" : 2231
}, {
"term" : "211.151.115.2",
"count" : 2130
//omitted rows
}]
}
}
}
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.