# Logstash Twitter Input with Coordinates is not working

**URL:** <https://discuss.elastic.co/t/logstash-twitter-input-with-coordinates-is-not-working/46893>\
**Category:** Logstash\
**Created:** [April 10, 2016, 12:40pm UTC](https://discuss.elastic.co/t/logstash-twitter-input-with-coordinates-is-not-working/46893 "2016-04-10T12:40:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Omer\_Uludag](https://avatars.discourse-cdn.com/v4/letter/o/b9e5f3/32.png) [@Omer\_Uludag](https://discuss.elastic.co/u/Omer_Uludag)\
**Post date:** [April 10, 2016, 12:40pm UTC](https://discuss.elastic.co/t/logstash-twitter-input-with-coordinates-is-not-working/46893/1 "2016-04-10T12:40:07Z")

</div>

Hello together,

I am using Logstash in order to ingest data from Twitter.  
I am using the following configuration file:  
input {  
twitter {  
consumer\_key =\> "XXXXXXXXXX"  
consumer\_secret =\> "XXXXXXXXXX"  
oauth\_token =\> "XXXXXXXXXX"  
oauth\_token\_secret =\> "XXXXXXXXXX"  
keywords =\> ["Big Data", "Elasticsearch", "Logstash", "Kibana", "Elastic", "ELK stack"]  
full\_tweet =\> true  
}  
}  
filter {}  
output {  
stdout { codec =\> dots }  
elasticsearch {  
hosts =\> "localhost:9200"  
index =\> "twitter"  
document\_type =\> "tweet"  
template =\> "/usr/local/Cellar/logstash/twitter\_template.json"  
template\_name =\> "twitter"  
}  
}  
And the following template:  
{  
"template" : "twitter",  
"settings" : {  
"index.refresh\_interval" : "1s"  
},  
"mappings" : {  
"_default_" : {  
"\_all" : {"enabled" : true, "omit\_norms" : true},  
"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" : {  
"@version": { "type": "string", "index": "not\_analyzed" },  
"coordinates" : {  
"type" : "object",  
"dynamic" : true,  
"properties" : {  
"coordinates" : { "type" : "geo\_point" }  
}  
},  
"geoip" : {  
"type" : "object",  
"dynamic": true,  
"properties" : {  
"location" : { "type" : "geo\_point" }  
}  
}  
}  
}  
}  
}

However, Kibana does not provide any information about the coordinates. It is clearly that not all of the users will use it, but normally some of them should provide coordinates. Kibana says for this field: "This field is present in your elasticsearch mapping but not in any documents in the search results. You may still be able to visualize or search on it." Do you have any suggestions where the problem may occur? Furthermore, I cannot see the coordinates.coordinates field which is shown in the settings page of Kibana. The coordinates field has a questionmark is icon and not the geolocation icon.

Thank you very much in advance.

Best regards

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 10, 2016, 8:23pm UTC](https://discuss.elastic.co/t/logstash-twitter-input-with-coordinates-is-not-working/46893/2 "2016-04-10T20:23:33Z")

</div>

Try making a tweet that matches one of those keywords and with geolocation set to see if it works.

---

<div class="post-metadata">

**Author:** ![Omer\_Uludag](https://avatars.discourse-cdn.com/v4/letter/o/b9e5f3/32.png) [@Omer\_Uludag](https://discuss.elastic.co/u/Omer_Uludag)\
**Post date:** [April 10, 2016, 10:13pm UTC](https://discuss.elastic.co/t/logstash-twitter-input-with-coordinates-is-not-working/46893/3 "2016-04-10T22:13:48Z")

</div>

Hello Mark,

I already tried this out. I think it must be something internal, since this code worked like for 1 month ago.

---

<div class="post-metadata">

**Author:** ![LinuxArchitects](https://avatars.discourse-cdn.com/v4/letter/l/c0e974/32.png) [@LinuxArchitects](https://discuss.elastic.co/u/LinuxArchitects)\
**Post date:** [May 12, 2017, 10:44am UTC](https://discuss.elastic.co/t/logstash-twitter-input-with-coordinates-is-not-working/46893/4 "2017-05-12T10:44:12Z")

</div>

Same for me :  
Config kibana Version: 5.3.0  
Any change to get it work

 ![](https://us1.discourse-cdn.com/elastic/original/3X/7/5/75edc824a350ffd9bf6b73ab3bd86f0da14b8449.png)

Coordinate are indexed as a Number :

```
"bounding_box": {
    "coordinates": [
      [
        [
          2.224101,
          48.815521
        ],
        [
          2.224101,
          48.902146
        ],
        [
          2.469905,
          48.902146
        ],
        [
          2.469905,
          48.815521
        ]
      ]
    ],
```

---

<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:** [July 6, 2017, 4:26am UTC](https://discuss.elastic.co/t/logstash-twitter-input-with-coordinates-is-not-working/46893/5 "2017-07-06T04:26:38Z")

</div>


