Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

World map don't handle longitude/latidude with a minus #5419

Closed
goliwok opened this issue Dec 17, 2018 · 3 comments
Closed

World map don't handle longitude/latidude with a minus #5419

goliwok opened this issue Dec 17, 2018 · 3 comments

Comments

@goliwok
Copy link

goliwok commented Dec 17, 2018

Expected Behavior

I create a stream that get latitude and longitude from messages and generate a world map with these messages. It works only when these data doesn't contain a minus.

Current Behavior

When the longitude/latitude contains some minus, the map could’t be generated
I try to generate the map by message -> world map.
The contains something like this : "54.68410,-25.31700"

Possible Solution

Steps to Reproduce (for bugs)

  1. send latitude/longitude (with a minus inside) from your node server.
  2. select one message with the data from above.
  3. try to create a world map with the message field.

Context

Your Environment

  • Graylog Version: 2.2.3
  • Elasticsearch Version: 2.4.4
  • MongoDB Version: 3.2.11
  • Operating System: Debian 4.9.65
  • Browser version: chrome 70.0.3538.110

capture d ecran 2018-12-17 a 23 01 39

@dennisoelkers
Copy link
Member

There are two problems here:

1.) Your geodata is in your message field. This is not a good practice and will not work with Graylog. You need to store your geodata in a separate field in your documents.
2.) It looks like you try to create a world map for your source field (guessing from the fact that in your screen shot the dropdown for the source field is expanded). You will need to create a world map from the dropdown of the field you stored your geodata in.

As it seems like this is not a bug in Graylog, I am closing this issue. If you have additional information and/or I misunderstood the issue, feel free to reopen it.

@jalogisch
Copy link
Contributor

actually, I can verify this issue on my current GL 2.5 and ES6.5.3 installation.

grafik

The mapping of this field is the following:

  "dst_addr_geolocation": {
            "type": "geo_point"
          },

@jalogisch jalogisch reopened this Dec 18, 2018
@jalogisch
Copy link
Contributor

after changing the mapping of the geolocation field to keyword it is possible to view the world map again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants