# Displaying custom data into the SIEM map

**URL:** <https://discuss.elastic.co/t/displaying-custom-data-into-the-siem-map/267735>\
**Category:** Logstash\
**Created:** [March 19, 2021, 1:32am UTC](https://discuss.elastic.co/t/displaying-custom-data-into-the-siem-map/267735 "2021-03-19T01:32:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Post date:** [March 19, 2021, 1:32am UTC](https://discuss.elastic.co/t/displaying-custom-data-into-the-siem-map/267735/1 "2021-03-19T01:32:50Z")

</div>

Hi im trying to display data in the SIEM map, using ECS, Im getting the data from a database using logstash JDBC

this is the template for the index

```auto
PUT _template/ecs
{
  "mappings": {
    "properties": {
      "@timestamp": {
        "type": "date"
      },
      "destination.geo": {
        "type": "geo_point"
      },
      "source.geo": {
        "type": "geo_point"
      }
    }
  },
  "index_patterns": [
    "ecs-*"
  ]
}

```

and this is what I have tried to do in logstash to set the fields

```auto
add_field => { "[source][geo][location][lat]" => "%{src_lat}"}}
add_field => { "[source][geo][location][lon]" => "%{src_long}"}}
add_field => { "[destination][geo][location][lat]" => "%{dest_lat}"}}
 add_field => { "[destination][geo][location][lon]" => "%{dest_long}"}}

```

and logstash gives me this error: "field must be either [lat], [lon] or [geohash]"

I also tried to put this as a string in the pipeline:

```auto
add_field => { "[destination][geo][location]" => "%{dest_lat}, %{dest_long}"}}}

```

and as an array:

```auto
add_field => { "[destination][geo][location]" => ["%{dest_lat}", "%{dest_long}"]}}

```

but all of the above gives me te error "field must be either [lat], [lon] or [geohash]"

how can i solve this?

---

<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:** [April 16, 2021, 1:33am UTC](https://discuss.elastic.co/t/displaying-custom-data-into-the-siem-map/267735/2 "2021-04-16T01:33:19Z")

</div>

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