title: Logstash/Kibana GeoIP not working
body: <p>I am attempting to create GeoIP data using an ELK stack, which can be visualized in Kibana.</p>
  
  <p>I have recently installed an ELK stack (Elastic Search, Logstash, and Kibana) on a virtual instance of Ubuntu Server 14.04. I am using Bro to capture logs.</p>
  
  <p>Everything to do with capturing the logs, parsing them, and viewing them in Kibana is working great, except for GeoIP (one of the most interesting features!).</p>
  
  <p>The GeoIP portion of my logstash config file looks like this;</p>
  
  <pre><code>geoip {
    add_tag =&gt; [ "geoip" ]
    database =&gt; "/etc/logstash/GeoLiteCity.dat" 
    source =&gt; "id.orig_h"
    target =&gt; "geoip"
    add_field =&gt; [ "[geoip][coordinates]", "%{[geoip][longitude]}"]
    add_field =&gt; [ "[geoip][coordinates]", "%{[geoip][latitude]}" ]
  }
  mutate {
    convert =&gt; [ "[geoip][coordinates]", "float" ]
  }
  </code></pre>
  
  <p>I had gotten that part of the filter from <a href="https://www.digitalocean.com/community/tutorials/how-to-map-user-location-with-geoip-and-elk-elasticsearch-logstash-and-kibana" rel="nofollow">the following guide to setup GeoIP with Kibana.</a> I have also seen that filter used in a few other places.
  I have attempted to simplify the filter (just source, target, database), but no luck.</p>
  
  <p>When I do a curl request for my index, especially with the add_tag ["geoip"] it returns blank data;</p>
  
  <pre><code>"geoip" : {
          "dynamic" : "true",
          "properties" : {
            "location" : {
              "type" : "geo_point"
            }
          }
  </code></pre>
  
  <p>Finally, here is some scrubbed data that I have taken directly from Kibana, in JSON format;</p>
  
  <pre><code>{
    "_index": "logstash-2015.11.12",
    "_type": "bro-conn_log",
    "_id": "*****",
    "_score": null,
    "_source": {
      "message": [
        "*****"
      ],
      "@version": "1",
      "@timestamp": "2015-11-12T13:43:16.205Z",
      "host": "elk",
      "path": "/nsm/bro/logs/current/conn.log",
      "type": "bro-conn_log",
      "ts": "*****",
      "uid": "*****",
      "id.orig_h": "*****",
      "id.orig_p": *****,
      "id.resp_h": "*****",
      "id.resp_p": *****,
      "proto": "*****",
      "service": "*****",
      "duration": *****,
      "orig_bytes": *****,
      "resp_bytes": *****,
      "conn_state": "*****",
      "local_orig": "*****",
      "missed_bytes": *****,
      "history": "*****",
      "orig_pkts": *****,
      "orig_ip_bytes": *****,
      "resp_pkts": *****,
      "resp_ip_bytes": *****,
      "tunnel_parents": "*****",
      "column21": "(empty)",
      "conn_state_full": "*****"
    },
    "fields": {
      "@timestamp": [
        1447335796205
      ]
    },
    "sort": [
      1447335796205
    ]
  }
  </code></pre>
  
  <p>To summarize: I am attempting to get GeoIP data working with an ELK stack. Despite following guides describing how to do exactly that, the GeoIP field will not display in Kibana. Any advice would be GREATLY appreciated.</p>