En anglais/français
Hello, I want to set up a map with the number of tweets per country. I get the tweet well but impossible to set up the map. Here is what I currently have:
twitter.conf
input {
twitter {
consumer_key => "XX"
consumer_secret => "XX"
oauth_token => "270589955-XX"
oauth_token_secret => "X"
keywords => [ "ios12","iphonexs" ]
full_tweet => true
type => "twitter"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
manage_template => true
document_type => "tweet"
template => "/home/redho/Téléchargements/ELK/logstash-6.4.0/config/twitter_template.json"
template_name => "twitter"
template_overwrite => "true"
index => "twitter"
}
stdout { codec => rubydebug }
}
template
{
"template": "twitter",
"order": 1,
"settings": {
"number_of_shards": 1,
"index.mapping.total_fields.limit": "2500"
},
"mappings": {
"tweet": {
"_all": {
"enabled": false
},
"dynamic_templates" : [ {
"message_field" : {
"match" : "message",
"match_mapping_type" : "string",
"mapping" : {
"type" : "string", "index" : "analyzed", "omit_norms" : true
}
}
}, {
"string_fields" : {
"match" : "*",
"match_mapping_type" : "string",
"mapping" : {
"type" : "string", "index" : "analyzed", "omit_norms" : true,
"fields" : {
"raw" : {"type": "string", "index" : "not_analyzed", "ignore_above" : 256}
}
}
}
} ],
"properties": {
"text": {
"type": "string"
},
"coordinates": {
"properties": {
"coordinates": {
"type": "geo_point"
},
"type": {
"type": "string"
}
}
}
}
}
}
}
I have nothing in result :
Bonjour, je souhaite mettre en place une carte avec le nombre de tweet par pays. Je récupère bien les tweet mais impossible de mettre en place la carte. Voici ce que j'ai actuellement.