pkaramol  
                (Pantelis Karamolegkos)
               
                 
                 
              
                  
                    February 11, 2019,  2:49pm
                   
                   
              1 
               
             
            
              I am using the geoip plugin of logstash to get geographical information about hosts.
I am using
          geoip {
            source => "dst"
          }
 
which seems to work, but creates the following two fields in my elasticsearch documents
How can I concatenate these in a geoip entry?
something like a composite json object in the likes of:
"geoip"  : {
  "properties" : {
    "latitude" : { "type" : "half_float" },
    "longitude" : { "type" : "half_float" }
  }
}
 
             
            
               
               
               
            
            
           
          
            
              
                Igor_Motov  
                (Igor Motov)
               
              
                  
                    February 15, 2019,  9:26pm
                   
                   
              2 
               
             
            
              
How can I concatenate these in a  geoip  entry?
 
There is no geoip type in elasticsearch, I think it might be better to map location as a geo_point . You can do it like this:
"geoip": {
  "properties": {
    ... mapping for all other fields ...
    "location": {
      "type": "geo_point"
    }
  }
} 
             
            
               
               
               
            
            
           
          
            
              
                system  
                (system)
                  Closed 
               
              
                  
                    March 15, 2019,  9:27pm
                   
                   
              3 
               
             
            
              This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.