Combining Field Values Into New Field


(Walker) #1

Using the below in pipeline:

  mutate {
    add_field => {
      "geoip.location.coordinates" => "%{geoip.location.lat},%{geoip.location.lon}"
    }
  }

Does not result in something like 37.425,-122.00 but rather %{geoip.location.lat},%{geoip.location.lon}. What am I doing wrong?


(Robert Cowart) #2

Should be...

  mutate {
    add_field => {
      "[geoip][location][coordinates]" => "%{[geoip][location][lat]},%{[geoip][location][lon]}"
    }
  }

Hopefully that helps.

Rob

Robert Cowart (rob@koiossian.com)
www.koiossian.com
True Turnkey SOLUTIONS for the Elastic Stack


(Walker) #3

That did it, thanks a lot!


(system) #4

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