# Map twitter

**URL:** <https://discuss.elastic.co/t/map-twitter/149245>\
**Category:** Logstash\
**Created:** [September 20, 2018, 8:05am UTC](https://discuss.elastic.co/t/map-twitter/149245 "2018-09-20T08:05:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![renaudpro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/renaudpro/32/35688_2.png) [@renaudpro](https://discuss.elastic.co/u/renaudpro)\
**Post date:** [September 20, 2018, 8:05am UTC](https://discuss.elastic.co/t/map-twitter/149245/1 "2018-09-20T08:05:45Z")

</div>

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 :

> **[test map twitter - Kibana](https://screenshots.firefox.com/Yco0CBQOl2ck9jpu/localhost)**
>
> From null

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.

---

<div class="post-metadata">

**Author:** ![nandan\_bigdata](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@nandan\_bigdata](https://discuss.elastic.co/u/nandan_bigdata)\
**Post date:** [September 20, 2018, 9:23am UTC](https://discuss.elastic.co/t/map-twitter/149245/2 "2018-09-20T09:23:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![renaudpro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/renaudpro/32/35688_2.png) [@renaudpro](https://discuss.elastic.co/u/renaudpro)\
**Post date:** [September 20, 2018, 9:28am UTC](https://discuss.elastic.co/t/map-twitter/149245/3 "2018-09-20T09:28:05Z")

</div>

Hello,

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

Edit : Now i have only ONE person .. :

> **[test map twitter - Kibana](https://screenshots.firefox.com/XXGyUcoafWhdtMju/localhost)**
>
> From null

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

---

<div class="post-metadata">

**Author:** ![nandan\_bigdata](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@nandan\_bigdata](https://discuss.elastic.co/u/nandan_bigdata)\
**Post date:** [September 20, 2018, 2:54pm UTC](https://discuss.elastic.co/t/map-twitter/149245/4 "2018-09-20T14:54:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![renaudpro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/renaudpro/32/35688_2.png) [@renaudpro](https://discuss.elastic.co/u/renaudpro)\
**Post date:** [September 21, 2018, 12:16pm UTC](https://discuss.elastic.co/t/map-twitter/149245/6 "2018-09-21T12:16:59Z")

</div>

Hello,

I have this :

[http://textup.fr/289345CQ](http://textup.fr/289345CQ)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 19, 2018, 12:17pm UTC](https://discuss.elastic.co/t/map-twitter/149245/7 "2018-10-19T12:17:13Z")

</div>

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