Error sending from logstash to elasticsearch - geo_point expected


(Nicolas Lopez Luna) #1

Hi there,

I'm sending data from logstash to elasticsearch. Apparently there is an error on a field as the warning shows but the strange thing is that I'm sending the same data from another logstash and not errors appears.

Request
curl 'http://logstashServer/logs/' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Referer: http://vmf.vtx-apps.net/embed/universal_v2?asset=exmple-20057&type=live&autoplay=true&pdk=1.0.3&playerMode=jwp6' -H 'Origin: http://vmf.vtx-apps.net' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' --data '{"event":"playing","date":1479309730471,"playerID":"0531434844997","sessionID":"59733570798292","streamname":"example","raid":"20057","hostname":"http://example.com/"}'

STDOUT

{
      "@version" => "1",
    "@timestamp" => "2016-11-16T17:05:09.978Z",
          "type" => "playervtx",
         "event" => "playing",
      "playerID" => "0531434844997",
          "date" => "1479309730000",
     "sessionID" => "59733570798292",
    "streamname" => "exampl",
          "raid" => "20057",
      "hostname" => "http://example.com/",
            "IP" => "190.17.25.160",
            "UA" => {
            "name" => "Chrome",
              "os" => "Mac OS X 10.12.0",
         "os_name" => "Mac OS X",
        "os_major" => "10",
        "os_minor" => "12",
          "device" => "Desktop",
           "major" => "54",
           "minor" => "0",
           "patch" => "2840"
    },
          "tags" => [
        [0] "agent"
    ],
         "geoip" => {
                      "ip" => "190.17.25.160",
           "country_code2" => "AR",
           "country_code3" => "ARG",
            "country_name" => "Argentina",
          "continent_code" => "SA",
             "region_name" => "07",
               "city_name" => "Buenos Aires",
                "latitude" => -34.587500000000006,
               "longitude" => -58.6725,
                "timezone" => "America/Argentina/Buenos_Aires",
        "real_region_name" => "Distrito Federal",
                "location" => [
            [0] -58.6725,
            [1] -34.587500000000006
        ]
    }
}

Any idea of what can it be?

Thanks,
N.


(Nicolas Lopez Luna) #2

Adding error log from the logstash.stdout:

ERROR

{:timestamp=>"2016-11-16T13:04:59.947000-0300", :message=>"Failed action. ", :status=>400, :action=>["index", {:_id=>nil, :_index=>"vlive2", :_type=>"playervtx", :_routing=>nil}, #<LogStash::Event:0x1d3974cc @metadata={}, @accessors=#<LogStash::Util::Accessors:0x27230c11 @store={"@version"=>"1", "@timestamp"=>"2016-11-16T16:04:59.648Z", "type"=>"playervtx", "event"=>"playing", "playerID"=>"0531434844997", "date"=>"1479309730000", "sessionID"=>"59733570798292", "streamname"=>"exampl", "raid"=>"20057", "hostname"=>"http://example.com/", "IP"=>"190.17.25.160", "UA"=>{"name"=>"Chrome", "os"=>"Mac OS X 10.12.0", "os_name"=>"Mac OS X", "os_major"=>"10", "os_minor"=>"12", "device"=>"Desktop", "major"=>"54", "minor"=>"0", "patch"=>"2840"}, "tags"=>["agent"], "geoip"=>{"ip"=>"190.17.25.160", "country_code2"=>"AR", "country_code3"=>"ARG", "country_name"=>"Argentina", "continent_code"=>"SA", "region_name"=>"07", "city_name"=>"Buenos Aires", "latitude"=>-34.587500000000006, "longitude"=>-58.6725, "timezone"=>"America/Argentina/Buenos_Aires", "real_region_name"=>"Distrito Federal", "location"=>[-58.6725, -34.587500000000006]}}, @lut={"[geoip][location]"=>[{"ip"=>"190.17.25.160", "country_code2"=>"AR", "country_code3"=>"ARG", "country_name"=>"Argentina", "continent_code"=>"SA", "region_name"=>"07", "city_name"=>"Buenos Aires", "latitude"=>-34.587500000000006, "longitude"=>-58.6725, "timezone"=>"America/Argentina/Buenos_Aires", "real_region_name"=>"Distrito Federal", "location"=>[-58.6725, -34.587500000000006]}, "location"], "[type]"=>[{"@version"=>"1", "@timestamp"=>"2016-11-16T16:04:59.648Z", "type"=>"playervtx", "event"=>"playing", "playerID"=>"0531434844997", "date"=>"1479309730000", "sessionID"=>"59733570798292", "streamname"=>"exampl", "raid"=>"20057", "hostname"=>"http://example.com/", "IP"=>"190.17.25.160", "UA"=>{"name"=>"Chrome", "os"=>"Mac OS X 10.12.0", "os_name"=>"Mac OS X", "os_major"=>"10", "os_minor"=>"12", "device"=>"Desktop", "major"=>"54", "minor"=>"0", "patch"=>"2840"}, "tags"=>["agent"], "geoip"=>{"ip"=>"190.17.25.160", "country_code2"=>"AR", "country_code3"=>"ARG", "country_name"=>"Argentina", "continent_code"=>"SA", "region_name"=>"07", "city_name"=>"Buenos Aires", "latitude"=>-34.587500000000006, "longitude"=>-58.6725, "timezone"=>"America/Argentina/Buenos_Aires", "real_region_name"=>"Distrito Federal", "location"=>[-58.6725, -34.587500000000006]}}, "type"], "type"=>[{"@version"=>"1", "@timestamp"=>"2016-11-16T16:04:59.648Z", "type"=>"playervtx", "event"=>"playing", "playerID"=>"0531434844997", "date"=>"1479309730000", "sessionID"=>"59733570798292", "streamname"=>"exampl", "raid"=>"20057", "hostname"=>"http://example.com/", "IP"=>"190.17.25.160", "UA"=>{"name"=>"Chrome", "os"=>"Mac OS X 10.12.0", "os_name"=>"Mac OS X", "os_major"=>"10", "os_minor"=>"12", "device"=>"Desktop", "major"=>"54", "minor"=>"0", "patch"=>"2840"}, "tags"=>["agent"], "geoip"=>{"ip"=>"190.17.25.160", "country_code2"=>"AR", "country_code3"=>"ARG", "country_name"=>"Argentina", "continent_code"=>"SA", "region_name"=>"07", "city_name"=>"Buenos Aires", "latitude"=>-34.587500000000006, "longitude"=>-58.6725, "timezone"=>"America/Argentina/Buenos_Aires", "real_region_name"=>"Distrito Federal", "location"=>[-58.6725, -34.587500000000006]}}, "type"]}>, @data={"@version"=>"1", "@timestamp"=>"2016-11-16T16:04:59.648Z", "type"=>"playervtx", "event"=>"playing", "playerID"=>"0531434844997", "date"=>"1479309730000", "sessionID"=>"59733570798292", "streamname"=>"exampl", "raid"=>"20057", "hostname"=>"http://example.com/", "IP"=>"190.17.25.160", "UA"=>{"name"=>"Chrome", "os"=>"Mac OS X 10.12.0", "os_name"=>"Mac OS X", "os_major"=>"10", "os_minor"=>"12", "device"=>"Desktop", "major"=>"54", "minor"=>"0", "patch"=>"2840"}, "tags"=>["agent"], "geoip"=>{"ip"=>"190.17.25.160", "country_code2"=>"AR", "country_code3"=>"ARG", "country_name"=>"Argentina", "continent_code"=>"SA", "region_name"=>"07", "city_name"=>"Buenos Aires", "latitude"=>-34.587500000000006, "longitude"=>-58.6725, "timezone"=>"America/Argentina/Buenos_Aires", "real_region_name"=>"Distrito Federal", "location"=>[-58.6725, -34.587500000000006]}}, @metadata_accessors=#<LogStash::Util::Accessors:0x1833a08d @store={}, @lut={}>, @cancelled=false>], :response=>{"create"=>{"_index"=>"vtxlive2", "_type"=>"playervtx", "_id"=>"AVht4leV07hJ5MNuL1kv", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse", "caused_by"=>{"type"=>"parse_exception", "reason"=>"geo_point expected"}}}}, :level=>:warn}
{:timestamp=>"2016-11-16T14:05:03.338000-0300", :message=>"SIGHUP received.", :level=>:warn}

(system) #3

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