# Logstash problems with fields (Point to Point)

**URL:** https://discuss.elastic.co/t/logstash-problems-with-fields-point-to-point/277196
**Category:** Logstash
**Created:** [June 28, 2021, 10:01am UTC](https://discuss.elastic.co/t/logstash-problems-with-fields-point-to-point/277196 "2021-06-28T10:01:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Michael\_Dylan\_McAloo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_dylan_mcaloo/32/80928_2.png) [@Michael\_Dylan\_McAloo](https://discuss.elastic.co/u/Michael_Dylan_McAloo)
#### Post date: [June 28, 2021, 10:01am UTC](https://discuss.elastic.co/t/logstash-problems-with-fields-point-to-point/277196/1 "2021-06-28T10:01:16Z")

</div>

I have a problem, I have two IPs one source and one destination, for the source IP Logstash automatically creates a field called "geoip.location" that contains the latitude and longitude of the specific IP, but for the destination IP it does not create any field like the "geoip.location" of the source and I do not know how to perform for example a Point to Point in Kibana without a field with the geolocation of the destination IP.

Logstash code:

```auto
input {
    file {
        path => "/var/log/snort/alert_fast.txt"
        start_position => "beginning"
    }
}

filter {
  dissect { mapping => { "message" => '%{ts} [%{trash}] [%{fd1}] "%{alert}" [%{fd2}} %{ip_ori}:%{port_ori} %{fd3} %{ip_dest}:%{port_dest}' } }
  geoip { source => "ip_ori" }
  geoip { source => "ip_dest" target => "dest" }
}

output {
    elasticsearch {
        hosts => "http://localhost:9200"
        index => "logstash-snort3a"
    }
    stdout { codec => rubydebug }
}

```

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [June 28, 2021, 4:28pm UTC](https://discuss.elastic.co/t/logstash-problems-with-fields-point-to-point/277196/2 "2021-06-28T16:28:48Z")

</div>

The default target for a geoip filter is geoip (assuming ECS compatability is disabled). The [default template](https://github.com/logstash-plugins/logstash-output-elasticsearch/blob/476097712b67e0452099769b2c8b0ef6e63e40eb/lib/logstash/outputs/elasticsearch/templates/ecs-disabled/elasticsearch-7x.json#L33) for an elasticsearch output configures [geoip][location] to be a geo\_point. If you want any other fields to be of type geo\_point then you must supply your own [template](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-templates.html).

---

<div class="post-metadata">

### Author: ![Michael\_Dylan\_McAloo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_dylan_mcaloo/32/80928_2.png) [@Michael\_Dylan\_McAloo](https://discuss.elastic.co/u/Michael_Dylan_McAloo)
#### Post date: [July 1, 2021, 11:23am UTC](https://discuss.elastic.co/t/logstash-problems-with-fields-point-to-point/277196/3 "2021-07-01T11:23:29Z")

</div>

But it is a field that can be used as origin and destination for the kibana "Point to Point" map?

---

<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 29, 2021, 11:23am UTC](https://discuss.elastic.co/t/logstash-problems-with-fields-point-to-point/277196/4 "2021-07-29T11:23:49Z")

</div>

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