Map twitter

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.

Hi, Did you checked time picker setting ?
Sometime due to 15 min as default time range, we are getting 0 result. because in this condition , there are no any document index into last 15 mins.

Hello,

Yes i have checked time picker. It's at "Today" and i have ~2000 tweets today.

Edit : Now i have only ONE person .. :

Edit 2 : Ok so, map function ONLY with instagram publish on twitter ...

In this case , May be another chances as your location data is not correct.
Would you like to do ES search based on GEO data and post here..

note:- These are my assumptions, as a pre-check

Hello,

I have this :

http://textup.fr/289345CQ

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.