Geolocation 0 message error

Hi, we are trying to add geolocation plugin to our working Graylog server and followed guidelines but there is no messages received by pipeline, fields (country, city …) and map is not showing at all.

rule “GeoIP lookup: src_ip”




let geo = lookup(“geoip”, to_string($message.src_ip));

set_field(“src_ip_geo_location”, geo[“coordinates”]);

set_field(“src_ip_geo_country”, geo[“country”].iso_code);

set_field(“src_ip_geo_city”, geo[“city”].names.en);


  1. First check your lookup table, if it returns correct geoip field if you type some internet IP in Lookup Tables section?
  2. I don’t see field src_ip in your example message screenshot.
  3. Maps requires geoip fields with coordinates to be present by geoip lookup to show world map.
  4. Check if you correctly setup your pipeline - assign pipeline rule to right stage (e.g. 0) and setup pipeline connection.
  5. Try to debug pipeline rule with debug function, and check logs:
    add line to your pipeline rule:
    debug(concat("Src_ip: ", to_string($message.src_ip)));
    And then check graylog log four debug function output:
    sudo tail -f /var/log/graylog-server/server.log

I was able to get mine to work, by setting my message processor order like this.

And then I set my stage to -1 in my environment.

It didnt come through right away, i think i waited like15 to 20 minutes. Sorry its been awhile.


Agree with @shoothub you need those field to make it happen.

Hope this helps

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