Many mutate's on filter slow down the startup process: [2017-09-01T13:16:07,030][DEBUG][logstash.agent ] Reading config file {:config_file=>"logstash-pipeline.conf"} process. config file with ~500 of mutates:
input {
file {
type => "place"
path => "${ES_GEONAMES_FILE}"
start_position => "beginning"
sincedb_path => "/dev/null"
ignore_older => 0
}
}
filter {
grok {
match => {"message" => "%{INT:GeonamesId} %{DATA:Name} %{DATA:ASCIIName} %{DATA:AlternateNames} %{DATA:Latitude} %{DATA:Longitude} %{DATA:FeatureClass} %{DATA:FeatureCode} %{DATA:CountryCode} %{DATA:CountryCode2} %{DATA:Admin1Code} %{DATA:Admin2Code} %{DATA:Admin3Code} %{DATA:Admin4Code} %{DATA:Population} %{DATA:Elevation} %{DATA:DEM} %{DATA:Timezone} %{GREEDYDATA:ModificationDate}"}
tag_on_failure => ['grok-failed']
}
date {
locale => "en"
match => ["ModificationDate", "YYYY-MM-dd"]
timezone => "UTC"
target => "ModificationDate"
}
mutate {
convert => { "Latitude" => "float" }
convert => { "Longitude" => "float" }
convert => { "GeonamesId" => "integer" }
convert => { "Population" => "integer" }
convert => { "Elevation" => "integer" }
}
if [Latitude]{
mutate {
add_field => {
"[location][lat]" => "%{Latitude}"
"[location][lon]" => "%{Longitude}"
}
}
}
if [AlternateNames]{
mutate {
split => { "AlternateNames" => "," }
}
}
if [CountryCode2]{
mutate {
split => { "CountryCode2" => "," }
}
}
# autogenerated with https://gist.github.com/panchicore/57483a4c80211f096673b0a4928a0066
if [CountryCode] and [CountryCode] == "WF" { mutate { add_field => ["CountryCode3", "WLF"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "JP" { mutate { add_field => ["CountryCode3", "JPN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "JM" { mutate { add_field => ["CountryCode3", "JAM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "JO" { mutate { add_field => ["CountryCode3", "JOR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "WS" { mutate { add_field => ["CountryCode3", "WSM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "JE" { mutate { add_field => ["CountryCode3", "JEY"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GW" { mutate { add_field => ["CountryCode3", "GNB"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GU" { mutate { add_field => ["CountryCode3", "GUM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GT" { mutate { add_field => ["CountryCode3", "GTM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GS" { mutate { add_field => ["CountryCode3", "SGS"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GR" { mutate { add_field => ["CountryCode3", "GRC"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GQ" { mutate { add_field => ["CountryCode3", "GNQ"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GP" { mutate { add_field => ["CountryCode3", "GLP"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GY" { mutate { add_field => ["CountryCode3", "GUY"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GG" { mutate { add_field => ["CountryCode3", "GGY"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GF" { mutate { add_field => ["CountryCode3", "GUF"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GE" { mutate { add_field => ["CountryCode3", "GEO"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GD" { mutate { add_field => ["CountryCode3", "GRD"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GB" { mutate { add_field => ["CountryCode3", "GBR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GA" { mutate { add_field => ["CountryCode3", "GAB"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GN" { mutate { add_field => ["CountryCode3", "GIN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GM" { mutate { add_field => ["CountryCode3", "GMB"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GL" { mutate { add_field => ["CountryCode3", "GRL"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GI" { mutate { add_field => ["CountryCode3", "GIB"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "GH" { mutate { add_field => ["CountryCode3", "GHA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "PR" { mutate { add_field => ["CountryCode3", "PRI"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "PS" { mutate { add_field => ["CountryCode3", "PSE"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "PW" { mutate { add_field => ["CountryCode3", "PLW"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "PT" { mutate { add_field => ["CountryCode3", "PRT"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "PY" { mutate { add_field => ["CountryCode3", "PRY"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "PA" { mutate { add_field => ["CountryCode3", "PAN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "PF" { mutate { add_field => ["CountryCode3", "PYF"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "PG" { mutate { add_field => ["CountryCode3", "PNG"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "PE" { mutate { add_field => ["CountryCode3", "PER"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "PK" { mutate { add_field => ["CountryCode3", "PAK"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "PH" { mutate { add_field => ["CountryCode3", "PHL"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "PN" { mutate { add_field => ["CountryCode3", "PCN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "PL" { mutate { add_field => ["CountryCode3", "POL"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "PM" { mutate { add_field => ["CountryCode3", "SPM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "ZM" { mutate { add_field => ["CountryCode3", "ZMB"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "ZA" { mutate { add_field => ["CountryCode3", "ZAF"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "ZW" { mutate { add_field => ["CountryCode3", "ZWE"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "ME" { mutate { add_field => ["CountryCode3", "MNE"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MD" { mutate { add_field => ["CountryCode3", "MDA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MG" { mutate { add_field => ["CountryCode3", "MDG"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MF" { mutate { add_field => ["CountryCode3", "MAF"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MA" { mutate { add_field => ["CountryCode3", "MAR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MC" { mutate { add_field => ["CountryCode3", "MCO"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MM" { mutate { add_field => ["CountryCode3", "MMR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "ML" { mutate { add_field => ["CountryCode3", "MLI"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MO" { mutate { add_field => ["CountryCode3", "MAC"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MN" { mutate { add_field => ["CountryCode3", "MNG"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MH" { mutate { add_field => ["CountryCode3", "MHL"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MK" { mutate { add_field => ["CountryCode3", "MKD"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MU" { mutate { add_field => ["CountryCode3", "MUS"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MT" { mutate { add_field => ["CountryCode3", "MLT"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MW" { mutate { add_field => ["CountryCode3", "MWI"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MV" { mutate { add_field => ["CountryCode3", "MDV"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MQ" { mutate { add_field => ["CountryCode3", "MTQ"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MP" { mutate { add_field => ["CountryCode3", "MNP"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MS" { mutate { add_field => ["CountryCode3", "MSR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MR" { mutate { add_field => ["CountryCode3", "MRT"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MY" { mutate { add_field => ["CountryCode3", "MYS"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MX" { mutate { add_field => ["CountryCode3", "MEX"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "MZ" { mutate { add_field => ["CountryCode3", "MOZ"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "FR" { mutate { add_field => ["CountryCode3", "FRA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "FI" { mutate { add_field => ["CountryCode3", "FIN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "FJ" { mutate { add_field => ["CountryCode3", "FJI"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "FK" { mutate { add_field => ["CountryCode3", "FLK"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "FM" { mutate { add_field => ["CountryCode3", "FSM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "FO" { mutate { add_field => ["CountryCode3", "FRO"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CK" { mutate { add_field => ["CountryCode3", "COK"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CI" { mutate { add_field => ["CountryCode3", "CIV"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CH" { mutate { add_field => ["CountryCode3", "CHE"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CO" { mutate { add_field => ["CountryCode3", "COL"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CN" { mutate { add_field => ["CountryCode3", "CHN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CM" { mutate { add_field => ["CountryCode3", "CMR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CL" { mutate { add_field => ["CountryCode3", "CHL"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CC" { mutate { add_field => ["CountryCode3", "CCK"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CA" { mutate { add_field => ["CountryCode3", "CAN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CG" { mutate { add_field => ["CountryCode3", "COG"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CF" { mutate { add_field => ["CountryCode3", "CAF"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CD" { mutate { add_field => ["CountryCode3", "COD"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CZ" { mutate { add_field => ["CountryCode3", "CZE"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CY" { mutate { add_field => ["CountryCode3", "CYP"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CX" { mutate { add_field => ["CountryCode3", "CXR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CS" { mutate { add_field => ["CountryCode3", "SCG"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CR" { mutate { add_field => ["CountryCode3", "CRI"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CW" { mutate { add_field => ["CountryCode3", "CUW"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CV" { mutate { add_field => ["CountryCode3", "CPV"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "CU" { mutate { add_field => ["CountryCode3", "CUB"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SZ" { mutate { add_field => ["CountryCode3", "SWZ"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SY" { mutate { add_field => ["CountryCode3", "SYR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SX" { mutate { add_field => ["CountryCode3", "SXM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SS" { mutate { add_field => ["CountryCode3", "SSD"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SR" { mutate { add_field => ["CountryCode3", "SUR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SV" { mutate { add_field => ["CountryCode3", "SLV"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "ST" { mutate { add_field => ["CountryCode3", "STP"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SK" { mutate { add_field => ["CountryCode3", "SVK"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SJ" { mutate { add_field => ["CountryCode3", "SJM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SI" { mutate { add_field => ["CountryCode3", "SVN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SH" { mutate { add_field => ["CountryCode3", "SHN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SO" { mutate { add_field => ["CountryCode3", "SOM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SN" { mutate { add_field => ["CountryCode3", "SEN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SM" { mutate { add_field => ["CountryCode3", "SMR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SL" { mutate { add_field => ["CountryCode3", "SLE"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SC" { mutate { add_field => ["CountryCode3", "SYC"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SB" { mutate { add_field => ["CountryCode3", "SLB"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SA" { mutate { add_field => ["CountryCode3", "SAU"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SG" { mutate { add_field => ["CountryCode3", "SGP"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SE" { mutate { add_field => ["CountryCode3", "SWE"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "SD" { mutate { add_field => ["CountryCode3", "SDN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "YE" { mutate { add_field => ["CountryCode3", "YEM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "YT" { mutate { add_field => ["CountryCode3", "MYT"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "LB" { mutate { add_field => ["CountryCode3", "LBN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "LC" { mutate { add_field => ["CountryCode3", "LCA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "LA" { mutate { add_field => ["CountryCode3", "LAO"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "LK" { mutate { add_field => ["CountryCode3", "LKA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "LI" { mutate { add_field => ["CountryCode3", "LIE"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "LV" { mutate { add_field => ["CountryCode3", "LVA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "LT" { mutate { add_field => ["CountryCode3", "LTU"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "LU" { mutate { add_field => ["CountryCode3", "LUX"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "LR" { mutate { add_field => ["CountryCode3", "LBR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "LS" { mutate { add_field => ["CountryCode3", "LSO"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "LY" { mutate { add_field => ["CountryCode3", "LBY"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "VA" { mutate { add_field => ["CountryCode3", "VAT"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "VC" { mutate { add_field => ["CountryCode3", "VCT"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "VE" { mutate { add_field => ["CountryCode3", "VEN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "VG" { mutate { add_field => ["CountryCode3", "VGB"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "IQ" { mutate { add_field => ["CountryCode3", "IRQ"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "VI" { mutate { add_field => ["CountryCode3", "VIR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "IS" { mutate { add_field => ["CountryCode3", "ISL"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "IR" { mutate { add_field => ["CountryCode3", "IRN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "IT" { mutate { add_field => ["CountryCode3", "ITA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "VN" { mutate { add_field => ["CountryCode3", "VNM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "IM" { mutate { add_field => ["CountryCode3", "IMN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "IL" { mutate { add_field => ["CountryCode3", "ISR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "IO" { mutate { add_field => ["CountryCode3", "IOT"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "IN" { mutate { add_field => ["CountryCode3", "IND"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "IE" { mutate { add_field => ["CountryCode3", "IRL"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "ID" { mutate { add_field => ["CountryCode3", "IDN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BD" { mutate { add_field => ["CountryCode3", "BGD"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BE" { mutate { add_field => ["CountryCode3", "BEL"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BF" { mutate { add_field => ["CountryCode3", "BFA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BG" { mutate { add_field => ["CountryCode3", "BGR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BA" { mutate { add_field => ["CountryCode3", "BIH"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BB" { mutate { add_field => ["CountryCode3", "BRB"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BL" { mutate { add_field => ["CountryCode3", "BLM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BM" { mutate { add_field => ["CountryCode3", "BMU"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BN" { mutate { add_field => ["CountryCode3", "BRN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BO" { mutate { add_field => ["CountryCode3", "BOL"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BH" { mutate { add_field => ["CountryCode3", "BHR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BI" { mutate { add_field => ["CountryCode3", "BDI"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BJ" { mutate { add_field => ["CountryCode3", "BEN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BT" { mutate { add_field => ["CountryCode3", "BTN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BV" { mutate { add_field => ["CountryCode3", "BVT"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BW" { mutate { add_field => ["CountryCode3", "BWA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BQ" { mutate { add_field => ["CountryCode3", "BES"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BR" { mutate { add_field => ["CountryCode3", "BRA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BS" { mutate { add_field => ["CountryCode3", "BHS"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BY" { mutate { add_field => ["CountryCode3", "BLR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "BZ" { mutate { add_field => ["CountryCode3", "BLZ"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "RU" { mutate { add_field => ["CountryCode3", "RUS"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "RW" { mutate { add_field => ["CountryCode3", "RWA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "RS" { mutate { add_field => ["CountryCode3", "SRB"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "RE" { mutate { add_field => ["CountryCode3", "REU"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "RO" { mutate { add_field => ["CountryCode3", "ROU"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "OM" { mutate { add_field => ["CountryCode3", "OMN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "HR" { mutate { add_field => ["CountryCode3", "HRV"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "HT" { mutate { add_field => ["CountryCode3", "HTI"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "HU" { mutate { add_field => ["CountryCode3", "HUN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "HK" { mutate { add_field => ["CountryCode3", "HKG"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "HN" { mutate { add_field => ["CountryCode3", "HND"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "HM" { mutate { add_field => ["CountryCode3", "HMD"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "EH" { mutate { add_field => ["CountryCode3", "ESH"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "EE" { mutate { add_field => ["CountryCode3", "EST"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "EG" { mutate { add_field => ["CountryCode3", "EGY"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "EC" { mutate { add_field => ["CountryCode3", "ECU"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "ET" { mutate { add_field => ["CountryCode3", "ETH"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "ES" { mutate { add_field => ["CountryCode3", "ESP"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "ER" { mutate { add_field => ["CountryCode3", "ERI"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "UY" { mutate { add_field => ["CountryCode3", "URY"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "UZ" { mutate { add_field => ["CountryCode3", "UZB"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "US" { mutate { add_field => ["CountryCode3", "USA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "UM" { mutate { add_field => ["CountryCode3", "UMI"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "UG" { mutate { add_field => ["CountryCode3", "UGA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "UA" { mutate { add_field => ["CountryCode3", "UKR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "VU" { mutate { add_field => ["CountryCode3", "VUT"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "NI" { mutate { add_field => ["CountryCode3", "NIC"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "NL" { mutate { add_field => ["CountryCode3", "NLD"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "NO" { mutate { add_field => ["CountryCode3", "NOR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "NA" { mutate { add_field => ["CountryCode3", "NAM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "NC" { mutate { add_field => ["CountryCode3", "NCL"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "NE" { mutate { add_field => ["CountryCode3", "NER"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "NF" { mutate { add_field => ["CountryCode3", "NFK"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "NG" { mutate { add_field => ["CountryCode3", "NGA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "NZ" { mutate { add_field => ["CountryCode3", "NZL"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "NP" { mutate { add_field => ["CountryCode3", "NPL"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "NR" { mutate { add_field => ["CountryCode3", "NRU"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "NU" { mutate { add_field => ["CountryCode3", "NIU"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "XK" { mutate { add_field => ["CountryCode3", "XKX"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "KG" { mutate { add_field => ["CountryCode3", "KGZ"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "KE" { mutate { add_field => ["CountryCode3", "KEN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "KI" { mutate { add_field => ["CountryCode3", "KIR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "KH" { mutate { add_field => ["CountryCode3", "KHM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "KN" { mutate { add_field => ["CountryCode3", "KNA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "KM" { mutate { add_field => ["CountryCode3", "COM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "KR" { mutate { add_field => ["CountryCode3", "KOR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "KP" { mutate { add_field => ["CountryCode3", "PRK"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "KW" { mutate { add_field => ["CountryCode3", "KWT"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "KZ" { mutate { add_field => ["CountryCode3", "KAZ"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "KY" { mutate { add_field => ["CountryCode3", "CYM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "DO" { mutate { add_field => ["CountryCode3", "DOM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "DM" { mutate { add_field => ["CountryCode3", "DMA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "DJ" { mutate { add_field => ["CountryCode3", "DJI"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "DK" { mutate { add_field => ["CountryCode3", "DNK"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "DE" { mutate { add_field => ["CountryCode3", "DEU"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "DZ" { mutate { add_field => ["CountryCode3", "DZA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TZ" { mutate { add_field => ["CountryCode3", "TZA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TV" { mutate { add_field => ["CountryCode3", "TUV"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TW" { mutate { add_field => ["CountryCode3", "TWN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TT" { mutate { add_field => ["CountryCode3", "TTO"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TR" { mutate { add_field => ["CountryCode3", "TUR"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TN" { mutate { add_field => ["CountryCode3", "TUN"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TO" { mutate { add_field => ["CountryCode3", "TON"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TL" { mutate { add_field => ["CountryCode3", "TLS"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TM" { mutate { add_field => ["CountryCode3", "TKM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TJ" { mutate { add_field => ["CountryCode3", "TJK"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TK" { mutate { add_field => ["CountryCode3", "TKL"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TH" { mutate { add_field => ["CountryCode3", "THA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TF" { mutate { add_field => ["CountryCode3", "ATF"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TG" { mutate { add_field => ["CountryCode3", "TGO"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TD" { mutate { add_field => ["CountryCode3", "TCD"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "TC" { mutate { add_field => ["CountryCode3", "TCA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AE" { mutate { add_field => ["CountryCode3", "ARE"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AD" { mutate { add_field => ["CountryCode3", "AND"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AG" { mutate { add_field => ["CountryCode3", "ATG"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AF" { mutate { add_field => ["CountryCode3", "AFG"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AI" { mutate { add_field => ["CountryCode3", "AIA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AM" { mutate { add_field => ["CountryCode3", "ARM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AL" { mutate { add_field => ["CountryCode3", "ALB"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AO" { mutate { add_field => ["CountryCode3", "AGO"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AN" { mutate { add_field => ["CountryCode3", "ANT"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AQ" { mutate { add_field => ["CountryCode3", "ATA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AS" { mutate { add_field => ["CountryCode3", "ASM"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AR" { mutate { add_field => ["CountryCode3", "ARG"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AU" { mutate { add_field => ["CountryCode3", "AUS"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AT" { mutate { add_field => ["CountryCode3", "AUT"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AW" { mutate { add_field => ["CountryCode3", "ABW"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AX" { mutate { add_field => ["CountryCode3", "ALA"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "AZ" { mutate { add_field => ["CountryCode3", "AZE"] enable_metric => false }
} else if [CountryCode] and [CountryCode] == "QA" { mutate { add_field => ["CountryCode3", "QAT"] enable_metric => false }
} else { mutate { add_field => ["CountryCode3", "UNKNOWN"] enable_metric => false } }
if [FeatureClass] and [FeatureClass] == "A" { mutate { add_field => ["FeatureClassName", "country, state, region, etc"] enable_metric => false }
} else if [FeatureClass] and [FeatureClass] == "H" { mutate { add_field => ["FeatureClassName", "stream, lake, etc"] enable_metric => false }
} else if [FeatureClass] and [FeatureClass] == "L" { mutate { add_field => ["FeatureClassName", "parks, area, etc"] enable_metric => false }
} else if [FeatureClass] and [FeatureClass] == "P" { mutate { add_field => ["FeatureClassName", "city, village, etc"] enable_metric => false }
} else if [FeatureClass] and [FeatureClass] == "R" { mutate { add_field => ["FeatureClassName", "road, railroad, etc"] enable_metric => false }
} else if [FeatureClass] and [FeatureClass] == "S" { mutate { add_field => ["FeatureClassName", "spot, building, farm, etc"] enable_metric => false }
} else if [FeatureClass] and [FeatureClass] == "T" { mutate { add_field => ["FeatureClassName", "mountain, hill, rock, etc"] enable_metric => false }
} else if [FeatureClass] and [FeatureClass] == "U" { mutate { add_field => ["FeatureClassName", "undersea, etc"] enable_metric => false }
} else if [FeatureClass] and [FeatureClass] == "V" { mutate { add_field => ["FeatureClassName", "forest, heath, etc"] enable_metric => false }
} else { mutate { add_field => ["FeatureClassName", "unknown class"] enable_metric => false } }
if [FeatureCode] and [FeatureCode] == "ADM1" { mutate { add_field => ["FeatureCodeName", "first-order administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ADM1H" { mutate { add_field => ["FeatureCodeName", "historical first-order administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ADM2" { mutate { add_field => ["FeatureCodeName", "second-order administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ADM2H" { mutate { add_field => ["FeatureCodeName", "historical second-order administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ADM3" { mutate { add_field => ["FeatureCodeName", "third-order administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ADM3H" { mutate { add_field => ["FeatureCodeName", "historical third-order administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ADM4" { mutate { add_field => ["FeatureCodeName", "fourth-order administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ADM4H" { mutate { add_field => ["FeatureCodeName", "historical fourth-order administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ADM5" { mutate { add_field => ["FeatureCodeName", "fifth-order administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ADMD" { mutate { add_field => ["FeatureCodeName", "administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ADMDH" { mutate { add_field => ["FeatureCodeName", "historical administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LTER" { mutate { add_field => ["FeatureCodeName", "leased area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PCLH" { mutate { add_field => ["FeatureCodeName", "historical political entity"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PRSH" { mutate { add_field => ["FeatureCodeName", "parish"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ZNB" { mutate { add_field => ["FeatureCodeName", "buffer zone"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "AIRS" { mutate { add_field => ["FeatureCodeName", "seaplane landing area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ANCH" { mutate { add_field => ["FeatureCodeName", "anchorage"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BAY" { mutate { add_field => ["FeatureCodeName", "bay"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BAYS" { mutate { add_field => ["FeatureCodeName", "bays"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BGHT" { mutate { add_field => ["FeatureCodeName", "bight(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BNK" { mutate { add_field => ["FeatureCodeName", "bank(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BNKR" { mutate { add_field => ["FeatureCodeName", "stream bank"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BOG" { mutate { add_field => ["FeatureCodeName", "bog(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CAPG" { mutate { add_field => ["FeatureCodeName", "icecap"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CHN" { mutate { add_field => ["FeatureCodeName", "channel"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CHNL" { mutate { add_field => ["FeatureCodeName", "lake channel(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CHNM" { mutate { add_field => ["FeatureCodeName", "marine channel"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CHNN" { mutate { add_field => ["FeatureCodeName", "navigation channel"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CNFL" { mutate { add_field => ["FeatureCodeName", "confluence"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CNL" { mutate { add_field => ["FeatureCodeName", "canal"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CNLA" { mutate { add_field => ["FeatureCodeName", "aqueduct"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CNLB" { mutate { add_field => ["FeatureCodeName", "canal bend"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CNLD" { mutate { add_field => ["FeatureCodeName", "drainage canal"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CNLI" { mutate { add_field => ["FeatureCodeName", "irrigation canal"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CNLN" { mutate { add_field => ["FeatureCodeName", "navigation canal(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CNLSB" { mutate { add_field => ["FeatureCodeName", "underground irrigation canal(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "COVE" { mutate { add_field => ["FeatureCodeName", "cove(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CRKT" { mutate { add_field => ["FeatureCodeName", "tidal creek(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CRNT" { mutate { add_field => ["FeatureCodeName", "current"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CUTF" { mutate { add_field => ["FeatureCodeName", "cutoff"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DCK" { mutate { add_field => ["FeatureCodeName", "dock(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DCKB" { mutate { add_field => ["FeatureCodeName", "docking basin"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DOMG" { mutate { add_field => ["FeatureCodeName", "icecap dome"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DPRG" { mutate { add_field => ["FeatureCodeName", "icecap depression"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DTCH" { mutate { add_field => ["FeatureCodeName", "ditch"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DTCHD" { mutate { add_field => ["FeatureCodeName", "drainage ditch"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DTCHI" { mutate { add_field => ["FeatureCodeName", "irrigation ditch"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DTCHM" { mutate { add_field => ["FeatureCodeName", "ditch mouth(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ESTY" { mutate { add_field => ["FeatureCodeName", "estuary"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FISH" { mutate { add_field => ["FeatureCodeName", "fishing area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FJD" { mutate { add_field => ["FeatureCodeName", "fjord"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FJDS" { mutate { add_field => ["FeatureCodeName", "fjords"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FLLS" { mutate { add_field => ["FeatureCodeName", "waterfall(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FLTM" { mutate { add_field => ["FeatureCodeName", "mud flat(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FLTT" { mutate { add_field => ["FeatureCodeName", "tidal flat(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GLCR" { mutate { add_field => ["FeatureCodeName", "glacier(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GULF" { mutate { add_field => ["FeatureCodeName", "gulf"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GYSR" { mutate { add_field => ["FeatureCodeName", "geyser"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HBR" { mutate { add_field => ["FeatureCodeName", "harbor(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "INLT" { mutate { add_field => ["FeatureCodeName", "inlet"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "INLTQ" { mutate { add_field => ["FeatureCodeName", "former inlet"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LBED" { mutate { add_field => ["FeatureCodeName", "lake bed(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LGN" { mutate { add_field => ["FeatureCodeName", "lagoon"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LGNS" { mutate { add_field => ["FeatureCodeName", "lagoons"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LK" { mutate { add_field => ["FeatureCodeName", "lake"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LKC" { mutate { add_field => ["FeatureCodeName", "crater lake"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LKN" { mutate { add_field => ["FeatureCodeName", "salt lake"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LKO" { mutate { add_field => ["FeatureCodeName", "oxbow lake"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LKS" { mutate { add_field => ["FeatureCodeName", "lakes"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LKSB" { mutate { add_field => ["FeatureCodeName", "underground lake"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LKSC" { mutate { add_field => ["FeatureCodeName", "crater lakes"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LKSN" { mutate { add_field => ["FeatureCodeName", "salt lakes"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MFGN" { mutate { add_field => ["FeatureCodeName", "salt evaporation ponds"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MGV" { mutate { add_field => ["FeatureCodeName", "mangrove swamp"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MOOR" { mutate { add_field => ["FeatureCodeName", "moor(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MRSH" { mutate { add_field => ["FeatureCodeName", "marsh(es)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MRSHN" { mutate { add_field => ["FeatureCodeName", "salt marsh"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "NRWS" { mutate { add_field => ["FeatureCodeName", "narrows"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OCN" { mutate { add_field => ["FeatureCodeName", "ocean"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OVF" { mutate { add_field => ["FeatureCodeName", "overfalls"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PND" { mutate { add_field => ["FeatureCodeName", "pond"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PNDN" { mutate { add_field => ["FeatureCodeName", "salt pond"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PNDS" { mutate { add_field => ["FeatureCodeName", "ponds"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PNDSF" { mutate { add_field => ["FeatureCodeName", "fishponds"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PNDSN" { mutate { add_field => ["FeatureCodeName", "salt ponds"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "POOL" { mutate { add_field => ["FeatureCodeName", "pool(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RCH" { mutate { add_field => ["FeatureCodeName", "reach"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RDGG" { mutate { add_field => ["FeatureCodeName", "icecap ridge"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RDST" { mutate { add_field => ["FeatureCodeName", "roadstead"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RF" { mutate { add_field => ["FeatureCodeName", "reef(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RFC" { mutate { add_field => ["FeatureCodeName", "coral reef(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RPDS" { mutate { add_field => ["FeatureCodeName", "rapids"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RSV" { mutate { add_field => ["FeatureCodeName", "reservoir(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RSVT" { mutate { add_field => ["FeatureCodeName", "water tank"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RVN" { mutate { add_field => ["FeatureCodeName", "ravine(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SBKH" { mutate { add_field => ["FeatureCodeName", "sabkha(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SD" { mutate { add_field => ["FeatureCodeName", "sound"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SEA" { mutate { add_field => ["FeatureCodeName", "sea"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SHOL" { mutate { add_field => ["FeatureCodeName", "shoal(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SILL" { mutate { add_field => ["FeatureCodeName", "sill"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SPNG" { mutate { add_field => ["FeatureCodeName", "spring(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SPNS" { mutate { add_field => ["FeatureCodeName", "sulphur spring(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SPNT" { mutate { add_field => ["FeatureCodeName", "hot spring(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STM" { mutate { add_field => ["FeatureCodeName", "stream"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STMA" { mutate { add_field => ["FeatureCodeName", "anabranch"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STMB" { mutate { add_field => ["FeatureCodeName", "stream bend"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STMC" { mutate { add_field => ["FeatureCodeName", "canalized stream"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STMD" { mutate { add_field => ["FeatureCodeName", "distributary(-ies)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STMH" { mutate { add_field => ["FeatureCodeName", "headwaters"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STMM" { mutate { add_field => ["FeatureCodeName", "stream mouth(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STMQ" { mutate { add_field => ["FeatureCodeName", "abandoned watercourse"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STMS" { mutate { add_field => ["FeatureCodeName", "streams"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STMSB" { mutate { add_field => ["FeatureCodeName", "lost river"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STRT" { mutate { add_field => ["FeatureCodeName", "strait"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SWMP" { mutate { add_field => ["FeatureCodeName", "swamp"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SYSI" { mutate { add_field => ["FeatureCodeName", "irrigation system"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TNLC" { mutate { add_field => ["FeatureCodeName", "canal tunnel"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WAD" { mutate { add_field => ["FeatureCodeName", "wadi"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WADB" { mutate { add_field => ["FeatureCodeName", "wadi bend"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WADJ" { mutate { add_field => ["FeatureCodeName", "wadi junction"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WADM" { mutate { add_field => ["FeatureCodeName", "wadi mouth"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WADS" { mutate { add_field => ["FeatureCodeName", "wadies"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WHRL" { mutate { add_field => ["FeatureCodeName", "whirlpool"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WLL" { mutate { add_field => ["FeatureCodeName", "well"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WLLS" { mutate { add_field => ["FeatureCodeName", "wells"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WTLD" { mutate { add_field => ["FeatureCodeName", "wetland"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WTRC" { mutate { add_field => ["FeatureCodeName", "watercourse"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WTRH" { mutate { add_field => ["FeatureCodeName", "waterhole(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "AGRC" { mutate { add_field => ["FeatureCodeName", "agricultural colony"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "AMUS" { mutate { add_field => ["FeatureCodeName", "amusement park"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "AREA" { mutate { add_field => ["FeatureCodeName", "area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BSND" { mutate { add_field => ["FeatureCodeName", "drainage basin"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BSNP" { mutate { add_field => ["FeatureCodeName", "petroleum basin"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BTL" { mutate { add_field => ["FeatureCodeName", "battlefield"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CLG" { mutate { add_field => ["FeatureCodeName", "clearing"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CMN" { mutate { add_field => ["FeatureCodeName", "common"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CNS" { mutate { add_field => ["FeatureCodeName", "concession area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "COLF" { mutate { add_field => ["FeatureCodeName", "coalfield"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CONT" { mutate { add_field => ["FeatureCodeName", "continent"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CST" { mutate { add_field => ["FeatureCodeName", "coast"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CTRB" { mutate { add_field => ["FeatureCodeName", "business center"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DEVH" { mutate { add_field => ["FeatureCodeName", "housing development"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FLD" { mutate { add_field => ["FeatureCodeName", "field(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FLDI" { mutate { add_field => ["FeatureCodeName", "irrigated field(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GASF" { mutate { add_field => ["FeatureCodeName", "gasfield"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GRAZ" { mutate { add_field => ["FeatureCodeName", "grazing area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GVL" { mutate { add_field => ["FeatureCodeName", "gravel area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "INDS" { mutate { add_field => ["FeatureCodeName", "industrial area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LAND" { mutate { add_field => ["FeatureCodeName", "arctic land"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LCTY" { mutate { add_field => ["FeatureCodeName", "locality"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MILB" { mutate { add_field => ["FeatureCodeName", "military base"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MNA" { mutate { add_field => ["FeatureCodeName", "mining area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MVA" { mutate { add_field => ["FeatureCodeName", "maneuver area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "NVB" { mutate { add_field => ["FeatureCodeName", "naval base"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OAS" { mutate { add_field => ["FeatureCodeName", "oasis(-es)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OILF" { mutate { add_field => ["FeatureCodeName", "oilfield"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PEAT" { mutate { add_field => ["FeatureCodeName", "peat cutting area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PRK" { mutate { add_field => ["FeatureCodeName", "park"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PRT" { mutate { add_field => ["FeatureCodeName", "port"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "QCKS" { mutate { add_field => ["FeatureCodeName", "quicksand"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RES" { mutate { add_field => ["FeatureCodeName", "reserve"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RESA" { mutate { add_field => ["FeatureCodeName", "agricultural reserve"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RESF" { mutate { add_field => ["FeatureCodeName", "forest reserve"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RESH" { mutate { add_field => ["FeatureCodeName", "hunting reserve"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RESN" { mutate { add_field => ["FeatureCodeName", "nature reserve"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RESP" { mutate { add_field => ["FeatureCodeName", "palm tree reserve"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RESV" { mutate { add_field => ["FeatureCodeName", "reservation"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RESW" { mutate { add_field => ["FeatureCodeName", "wildlife reserve"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RGN" { mutate { add_field => ["FeatureCodeName", "region"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RGNE" { mutate { add_field => ["FeatureCodeName", "economic region"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RGNH" { mutate { add_field => ["FeatureCodeName", "historical region"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RGNL" { mutate { add_field => ["FeatureCodeName", "lake region"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RNGA" { mutate { add_field => ["FeatureCodeName", "artillery range"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SALT" { mutate { add_field => ["FeatureCodeName", "salt area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SNOW" { mutate { add_field => ["FeatureCodeName", "snowfield"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TRB" { mutate { add_field => ["FeatureCodeName", "tribal area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPL" { mutate { add_field => ["FeatureCodeName", "populated place"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLA" { mutate { add_field => ["FeatureCodeName", "seat of a first-order administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLCH" { mutate { add_field => ["FeatureCodeName", "historical capital of a political entity"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLF" { mutate { add_field => ["FeatureCodeName", "farm village"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLH" { mutate { add_field => ["FeatureCodeName", "historical populated place"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLL" { mutate { add_field => ["FeatureCodeName", "populated locality"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLR" { mutate { add_field => ["FeatureCodeName", "religious populated place"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLS" { mutate { add_field => ["FeatureCodeName", "populated places"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLW" { mutate { add_field => ["FeatureCodeName", "destroyed populated place"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CSWY" { mutate { add_field => ["FeatureCodeName", "causeway"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OILP" { mutate { add_field => ["FeatureCodeName", "oil pipeline"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PRMN" { mutate { add_field => ["FeatureCodeName", "promenade"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PTGE" { mutate { add_field => ["FeatureCodeName", "portage"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RD" { mutate { add_field => ["FeatureCodeName", "road"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RDA" { mutate { add_field => ["FeatureCodeName", "ancient road"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RDB" { mutate { add_field => ["FeatureCodeName", "road bend"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RDCUT" { mutate { add_field => ["FeatureCodeName", "road cut"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RDJCT" { mutate { add_field => ["FeatureCodeName", "road junction"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RJCT" { mutate { add_field => ["FeatureCodeName", "railroad junction"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RR" { mutate { add_field => ["FeatureCodeName", "railroad"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RTE" { mutate { add_field => ["FeatureCodeName", "caravan route"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RYD" { mutate { add_field => ["FeatureCodeName", "railroad yard"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ST" { mutate { add_field => ["FeatureCodeName", "street"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STKR" { mutate { add_field => ["FeatureCodeName", "stock route"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TNL" { mutate { add_field => ["FeatureCodeName", "tunnel"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TNLN" { mutate { add_field => ["FeatureCodeName", "natural tunnel"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TNLRD" { mutate { add_field => ["FeatureCodeName", "road tunnel"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TNLRR" { mutate { add_field => ["FeatureCodeName", "railroad tunnel"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TNLS" { mutate { add_field => ["FeatureCodeName", "tunnels"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TRL" { mutate { add_field => ["FeatureCodeName", "trail"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ADMF" { mutate { add_field => ["FeatureCodeName", "administrative facility"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "AGRF" { mutate { add_field => ["FeatureCodeName", "agricultural facility"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "AIRB" { mutate { add_field => ["FeatureCodeName", "airbase"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "AIRF" { mutate { add_field => ["FeatureCodeName", "airfield"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "AIRH" { mutate { add_field => ["FeatureCodeName", "heliport"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "AIRP" { mutate { add_field => ["FeatureCodeName", "airport"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "AMTH" { mutate { add_field => ["FeatureCodeName", "amphitheater"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ANS" { mutate { add_field => ["FeatureCodeName", "ancient site"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "AQC" { mutate { add_field => ["FeatureCodeName", "aquaculture facility"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ARCH" { mutate { add_field => ["FeatureCodeName", "arch"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ASTR" { mutate { add_field => ["FeatureCodeName", "astronomical station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ASYL" { mutate { add_field => ["FeatureCodeName", "asylum"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ATHF" { mutate { add_field => ["FeatureCodeName", "athletic field"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ATM" { mutate { add_field => ["FeatureCodeName", "automatic teller machine"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BANK" { mutate { add_field => ["FeatureCodeName", "bank"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BCN" { mutate { add_field => ["FeatureCodeName", "beacon"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BDG" { mutate { add_field => ["FeatureCodeName", "bridge"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BDGQ" { mutate { add_field => ["FeatureCodeName", "ruined bridge"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BLDG" { mutate { add_field => ["FeatureCodeName", "building(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BLDO" { mutate { add_field => ["FeatureCodeName", "office building"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BP" { mutate { add_field => ["FeatureCodeName", "boundary marker"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BRKS" { mutate { add_field => ["FeatureCodeName", "barracks"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BRKW" { mutate { add_field => ["FeatureCodeName", "breakwater"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BSTN" { mutate { add_field => ["FeatureCodeName", "baling station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BTYD" { mutate { add_field => ["FeatureCodeName", "boatyard"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BUR" { mutate { add_field => ["FeatureCodeName", "burial cave(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BUSTN" { mutate { add_field => ["FeatureCodeName", "bus station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BUSTP" { mutate { add_field => ["FeatureCodeName", "bus stop"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CARN" { mutate { add_field => ["FeatureCodeName", "cairn"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CAVE" { mutate { add_field => ["FeatureCodeName", "cave(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CH" { mutate { add_field => ["FeatureCodeName", "church"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CMP" { mutate { add_field => ["FeatureCodeName", "camp(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CMPL" { mutate { add_field => ["FeatureCodeName", "logging camp"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CMPLA" { mutate { add_field => ["FeatureCodeName", "labor camp"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CMPMN" { mutate { add_field => ["FeatureCodeName", "mining camp"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CMPO" { mutate { add_field => ["FeatureCodeName", "oil camp"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CMPRF" { mutate { add_field => ["FeatureCodeName", "refugee camp"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CMTY" { mutate { add_field => ["FeatureCodeName", "cemetery"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "COMC" { mutate { add_field => ["FeatureCodeName", "communication center"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CRRL" { mutate { add_field => ["FeatureCodeName", "corral(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CSNO" { mutate { add_field => ["FeatureCodeName", "casino"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CSTL" { mutate { add_field => ["FeatureCodeName", "castle"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CSTM" { mutate { add_field => ["FeatureCodeName", "customs house"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CTHSE" { mutate { add_field => ["FeatureCodeName", "courthouse"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CTRA" { mutate { add_field => ["FeatureCodeName", "atomic center"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CTRCM" { mutate { add_field => ["FeatureCodeName", "community center"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CTRF" { mutate { add_field => ["FeatureCodeName", "facility center"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CTRM" { mutate { add_field => ["FeatureCodeName", "medical center"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CTRR" { mutate { add_field => ["FeatureCodeName", "religious center"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CTRS" { mutate { add_field => ["FeatureCodeName", "space center"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CVNT" { mutate { add_field => ["FeatureCodeName", "convent"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DAM" { mutate { add_field => ["FeatureCodeName", "dam"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DAMQ" { mutate { add_field => ["FeatureCodeName", "ruined dam"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DAMSB" { mutate { add_field => ["FeatureCodeName", "sub-surface dam"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DARY" { mutate { add_field => ["FeatureCodeName", "dairy"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DCKD" { mutate { add_field => ["FeatureCodeName", "dry dock"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DCKY" { mutate { add_field => ["FeatureCodeName", "dockyard"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DIKE" { mutate { add_field => ["FeatureCodeName", "dike"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DIP" { mutate { add_field => ["FeatureCodeName", "diplomatic facility"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DPOF" { mutate { add_field => ["FeatureCodeName", "fuel depot"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "EST" { mutate { add_field => ["FeatureCodeName", "estate(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ESTO" { mutate { add_field => ["FeatureCodeName", "oil palm plantation"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ESTR" { mutate { add_field => ["FeatureCodeName", "rubber plantation"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ESTSG" { mutate { add_field => ["FeatureCodeName", "sugar plantation"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ESTT" { mutate { add_field => ["FeatureCodeName", "tea plantation"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FCL" { mutate { add_field => ["FeatureCodeName", "facility"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FNDY" { mutate { add_field => ["FeatureCodeName", "foundry"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FRM" { mutate { add_field => ["FeatureCodeName", "farm"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FRMS" { mutate { add_field => ["FeatureCodeName", "farms"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FRMT" { mutate { add_field => ["FeatureCodeName", "farmstead"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FT" { mutate { add_field => ["FeatureCodeName", "fort"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FY" { mutate { add_field => ["FeatureCodeName", "ferry"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GATE" { mutate { add_field => ["FeatureCodeName", "gate"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GDN" { mutate { add_field => ["FeatureCodeName", "garden(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GHAT" { mutate { add_field => ["FeatureCodeName", "ghat"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GHSE" { mutate { add_field => ["FeatureCodeName", "guest house"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GOSP" { mutate { add_field => ["FeatureCodeName", "gas-oil separator plant"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GOVL" { mutate { add_field => ["FeatureCodeName", "local government office"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GRVE" { mutate { add_field => ["FeatureCodeName", "grave"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HERM" { mutate { add_field => ["FeatureCodeName", "hermitage"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HLT" { mutate { add_field => ["FeatureCodeName", "halting place"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HMSD" { mutate { add_field => ["FeatureCodeName", "homestead"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HSE" { mutate { add_field => ["FeatureCodeName", "house(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HSEC" { mutate { add_field => ["FeatureCodeName", "country house"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HSP" { mutate { add_field => ["FeatureCodeName", "hospital"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HSPC" { mutate { add_field => ["FeatureCodeName", "clinic"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HSPD" { mutate { add_field => ["FeatureCodeName", "dispensary"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HSPL" { mutate { add_field => ["FeatureCodeName", "leprosarium"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HSTS" { mutate { add_field => ["FeatureCodeName", "historical site"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HTL" { mutate { add_field => ["FeatureCodeName", "hotel"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HUT" { mutate { add_field => ["FeatureCodeName", "hut"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HUTS" { mutate { add_field => ["FeatureCodeName", "huts"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "INSM" { mutate { add_field => ["FeatureCodeName", "military installation"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ITTR" { mutate { add_field => ["FeatureCodeName", "research institute"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "JTY" { mutate { add_field => ["FeatureCodeName", "jetty"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LDNG" { mutate { add_field => ["FeatureCodeName", "landing"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LEPC" { mutate { add_field => ["FeatureCodeName", "leper colony"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LIBR" { mutate { add_field => ["FeatureCodeName", "library"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LNDF" { mutate { add_field => ["FeatureCodeName", "landfill"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LOCK" { mutate { add_field => ["FeatureCodeName", "lock(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LTHSE" { mutate { add_field => ["FeatureCodeName", "lighthouse"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MALL" { mutate { add_field => ["FeatureCodeName", "mall"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MAR" { mutate { add_field => ["FeatureCodeName", "marina"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MFG" { mutate { add_field => ["FeatureCodeName", "factory"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MFGB" { mutate { add_field => ["FeatureCodeName", "brewery"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MFGC" { mutate { add_field => ["FeatureCodeName", "cannery"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MFGCU" { mutate { add_field => ["FeatureCodeName", "copper works"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MFGLM" { mutate { add_field => ["FeatureCodeName", "limekiln"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MFGM" { mutate { add_field => ["FeatureCodeName", "munitions plant"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MFGPH" { mutate { add_field => ["FeatureCodeName", "phosphate works"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MFGSG" { mutate { add_field => ["FeatureCodeName", "sugar refinery"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MKT" { mutate { add_field => ["FeatureCodeName", "market"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ML" { mutate { add_field => ["FeatureCodeName", "mill(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MLM" { mutate { add_field => ["FeatureCodeName", "ore treatment plant"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MLO" { mutate { add_field => ["FeatureCodeName", "olive oil mill"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MLSG" { mutate { add_field => ["FeatureCodeName", "sugar mill"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MLSGQ" { mutate { add_field => ["FeatureCodeName", "former sugar mill"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MLSW" { mutate { add_field => ["FeatureCodeName", "sawmill"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MLWND" { mutate { add_field => ["FeatureCodeName", "windmill"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MLWTR" { mutate { add_field => ["FeatureCodeName", "water mill"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MN" { mutate { add_field => ["FeatureCodeName", "mine(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MNAU" { mutate { add_field => ["FeatureCodeName", "gold mine(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MNC" { mutate { add_field => ["FeatureCodeName", "coal mine(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MNCR" { mutate { add_field => ["FeatureCodeName", "chrome mine(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MNCU" { mutate { add_field => ["FeatureCodeName", "copper mine(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MNFE" { mutate { add_field => ["FeatureCodeName", "iron mine(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MNMT" { mutate { add_field => ["FeatureCodeName", "monument"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MNN" { mutate { add_field => ["FeatureCodeName", "salt mine(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MNQR" { mutate { add_field => ["FeatureCodeName", "quarry(-ies)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MOLE" { mutate { add_field => ["FeatureCodeName", "mole"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MSQE" { mutate { add_field => ["FeatureCodeName", "mosque"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MSSN" { mutate { add_field => ["FeatureCodeName", "mission"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MSTY" { mutate { add_field => ["FeatureCodeName", "monastery"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MTRO" { mutate { add_field => ["FeatureCodeName", "metro station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MUS" { mutate { add_field => ["FeatureCodeName", "museum"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "NOV" { mutate { add_field => ["FeatureCodeName", "novitiate"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "NSY" { mutate { add_field => ["FeatureCodeName", "nursery(-ies)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OBPT" { mutate { add_field => ["FeatureCodeName", "observation point"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OBS" { mutate { add_field => ["FeatureCodeName", "observatory"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OBSR" { mutate { add_field => ["FeatureCodeName", "radio observatory"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OILJ" { mutate { add_field => ["FeatureCodeName", "oil pipeline junction"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OILR" { mutate { add_field => ["FeatureCodeName", "oil refinery"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OILT" { mutate { add_field => ["FeatureCodeName", "tank farm"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OILW" { mutate { add_field => ["FeatureCodeName", "oil well"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OPRA" { mutate { add_field => ["FeatureCodeName", "opera house"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PAL" { mutate { add_field => ["FeatureCodeName", "palace"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PGDA" { mutate { add_field => ["FeatureCodeName", "pagoda"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PIER" { mutate { add_field => ["FeatureCodeName", "pier"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PKLT" { mutate { add_field => ["FeatureCodeName", "parking lot"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PMPO" { mutate { add_field => ["FeatureCodeName", "oil pumping station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PMPW" { mutate { add_field => ["FeatureCodeName", "water pumping station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PO" { mutate { add_field => ["FeatureCodeName", "post office"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PP" { mutate { add_field => ["FeatureCodeName", "police post"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PRKGT" { mutate { add_field => ["FeatureCodeName", "park gate"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PRKHQ" { mutate { add_field => ["FeatureCodeName", "park headquarters"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PRN" { mutate { add_field => ["FeatureCodeName", "prison"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PRNJ" { mutate { add_field => ["FeatureCodeName", "reformatory"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PS" { mutate { add_field => ["FeatureCodeName", "power station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PSH" { mutate { add_field => ["FeatureCodeName", "hydroelectric power station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PSTB" { mutate { add_field => ["FeatureCodeName", "border post"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PSTC" { mutate { add_field => ["FeatureCodeName", "customs post"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PSTP" { mutate { add_field => ["FeatureCodeName", "patrol post"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PYR" { mutate { add_field => ["FeatureCodeName", "pyramid"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PYRS" { mutate { add_field => ["FeatureCodeName", "pyramids"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "QUAY" { mutate { add_field => ["FeatureCodeName", "quay"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RDCR" { mutate { add_field => ["FeatureCodeName", "traffic circle"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RECG" { mutate { add_field => ["FeatureCodeName", "golf course"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RECR" { mutate { add_field => ["FeatureCodeName", "racetrack"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "REST" { mutate { add_field => ["FeatureCodeName", "restaurant"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RET" { mutate { add_field => ["FeatureCodeName", "store"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RHSE" { mutate { add_field => ["FeatureCodeName", "resthouse"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RKRY" { mutate { add_field => ["FeatureCodeName", "rookery"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RLG" { mutate { add_field => ["FeatureCodeName", "religious site"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RLGR" { mutate { add_field => ["FeatureCodeName", "retreat"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RNCH" { mutate { add_field => ["FeatureCodeName", "ranch(es)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RSD" { mutate { add_field => ["FeatureCodeName", "railroad siding"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RSGNL" { mutate { add_field => ["FeatureCodeName", "railroad signal"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RSRT" { mutate { add_field => ["FeatureCodeName", "resort"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RSTN" { mutate { add_field => ["FeatureCodeName", "railroad station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RSTP" { mutate { add_field => ["FeatureCodeName", "railroad stop"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RUIN" { mutate { add_field => ["FeatureCodeName", "ruin(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SCH" { mutate { add_field => ["FeatureCodeName", "school"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SCHA" { mutate { add_field => ["FeatureCodeName", "agricultural school"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SCHC" { mutate { add_field => ["FeatureCodeName", "college"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SCHL" { mutate { add_field => ["FeatureCodeName", "language school"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SCHM" { mutate { add_field => ["FeatureCodeName", "military school"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SCHN" { mutate { add_field => ["FeatureCodeName", "maritime school"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SCHT" { mutate { add_field => ["FeatureCodeName", "technical school"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SECP" { mutate { add_field => ["FeatureCodeName", "State Exam Prep Centre"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SHPF" { mutate { add_field => ["FeatureCodeName", "sheepfold"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SHRN" { mutate { add_field => ["FeatureCodeName", "shrine"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SHSE" { mutate { add_field => ["FeatureCodeName", "storehouse"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SLCE" { mutate { add_field => ["FeatureCodeName", "sluice"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SNTR" { mutate { add_field => ["FeatureCodeName", "sanatorium"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SPA" { mutate { add_field => ["FeatureCodeName", "spa"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SPLY" { mutate { add_field => ["FeatureCodeName", "spillway"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SQR" { mutate { add_field => ["FeatureCodeName", "square"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STBL" { mutate { add_field => ["FeatureCodeName", "stable"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STDM" { mutate { add_field => ["FeatureCodeName", "stadium"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STNB" { mutate { add_field => ["FeatureCodeName", "scientific research base"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STNC" { mutate { add_field => ["FeatureCodeName", "coast guard station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STNE" { mutate { add_field => ["FeatureCodeName", "experiment station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STNF" { mutate { add_field => ["FeatureCodeName", "forest station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STNI" { mutate { add_field => ["FeatureCodeName", "inspection station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STNM" { mutate { add_field => ["FeatureCodeName", "meteorological station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STNR" { mutate { add_field => ["FeatureCodeName", "radio station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STNS" { mutate { add_field => ["FeatureCodeName", "satellite station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STNW" { mutate { add_field => ["FeatureCodeName", "whaling station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STPS" { mutate { add_field => ["FeatureCodeName", "steps"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SWT" { mutate { add_field => ["FeatureCodeName", "sewage treatment plant"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "THTR" { mutate { add_field => ["FeatureCodeName", "theater"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TMB" { mutate { add_field => ["FeatureCodeName", "tomb(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TMPL" { mutate { add_field => ["FeatureCodeName", "temple(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TNKD" { mutate { add_field => ["FeatureCodeName", "cattle dipping tank"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TOWR" { mutate { add_field => ["FeatureCodeName", "tower"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TRANT" { mutate { add_field => ["FeatureCodeName", "transit terminal"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TRIG" { mutate { add_field => ["FeatureCodeName", "triangulation station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TRMO" { mutate { add_field => ["FeatureCodeName", "oil pipeline terminal"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TWO" { mutate { add_field => ["FeatureCodeName", "temp work office"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "UNIP" { mutate { add_field => ["FeatureCodeName", "university prep school"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "UNIV" { mutate { add_field => ["FeatureCodeName", "university"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "USGE" { mutate { add_field => ["FeatureCodeName", "united states government establishment"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "VETF" { mutate { add_field => ["FeatureCodeName", "veterinary facility"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WALL" { mutate { add_field => ["FeatureCodeName", "wall"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WALLA" { mutate { add_field => ["FeatureCodeName", "ancient wall"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WEIR" { mutate { add_field => ["FeatureCodeName", "weir(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WHRF" { mutate { add_field => ["FeatureCodeName", "wharf(-ves)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WRCK" { mutate { add_field => ["FeatureCodeName", "wreck"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WTRW" { mutate { add_field => ["FeatureCodeName", "waterworks"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ZNF" { mutate { add_field => ["FeatureCodeName", "free trade zone"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ZOO" { mutate { add_field => ["FeatureCodeName", "zoo"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ASPH" { mutate { add_field => ["FeatureCodeName", "asphalt lake"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ATOL" { mutate { add_field => ["FeatureCodeName", "atoll(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BAR" { mutate { add_field => ["FeatureCodeName", "bar"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BCH" { mutate { add_field => ["FeatureCodeName", "beach"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BCHS" { mutate { add_field => ["FeatureCodeName", "beaches"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BDLD" { mutate { add_field => ["FeatureCodeName", "badlands"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BLDR" { mutate { add_field => ["FeatureCodeName", "boulder field"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BLHL" { mutate { add_field => ["FeatureCodeName", "blowhole(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BLOW" { mutate { add_field => ["FeatureCodeName", "blowout(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BNCH" { mutate { add_field => ["FeatureCodeName", "bench"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BUTE" { mutate { add_field => ["FeatureCodeName", "butte(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CAPE" { mutate { add_field => ["FeatureCodeName", "cape"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CFT" { mutate { add_field => ["FeatureCodeName", "cleft(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CLDA" { mutate { add_field => ["FeatureCodeName", "caldera"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CLF" { mutate { add_field => ["FeatureCodeName", "cliff(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CNYN" { mutate { add_field => ["FeatureCodeName", "canyon"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CONE" { mutate { add_field => ["FeatureCodeName", "cone(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CRDR" { mutate { add_field => ["FeatureCodeName", "corridor"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CRQ" { mutate { add_field => ["FeatureCodeName", "cirque"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CRQS" { mutate { add_field => ["FeatureCodeName", "cirques"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CRTR" { mutate { add_field => ["FeatureCodeName", "crater(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CUET" { mutate { add_field => ["FeatureCodeName", "cuesta(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DLTA" { mutate { add_field => ["FeatureCodeName", "delta"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DPR" { mutate { add_field => ["FeatureCodeName", "depression(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DSRT" { mutate { add_field => ["FeatureCodeName", "desert"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DUNE" { mutate { add_field => ["FeatureCodeName", "dune(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DVD" { mutate { add_field => ["FeatureCodeName", "divide"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ERG" { mutate { add_field => ["FeatureCodeName", "sandy desert"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FAN" { mutate { add_field => ["FeatureCodeName", "fan(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FORD" { mutate { add_field => ["FeatureCodeName", "ford"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FSR" { mutate { add_field => ["FeatureCodeName", "fissure"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GAP" { mutate { add_field => ["FeatureCodeName", "gap"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GRGE" { mutate { add_field => ["FeatureCodeName", "gorge(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HDLD" { mutate { add_field => ["FeatureCodeName", "headland"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HLL" { mutate { add_field => ["FeatureCodeName", "hill"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HLLS" { mutate { add_field => ["FeatureCodeName", "hills"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HMCK" { mutate { add_field => ["FeatureCodeName", "hammock(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HMDA" { mutate { add_field => ["FeatureCodeName", "rock desert"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "INTF" { mutate { add_field => ["FeatureCodeName", "interfluve"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ISL" { mutate { add_field => ["FeatureCodeName", "island"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ISLET" { mutate { add_field => ["FeatureCodeName", "islet"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ISLF" { mutate { add_field => ["FeatureCodeName", "artificial island"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ISLM" { mutate { add_field => ["FeatureCodeName", "mangrove island"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ISLS" { mutate { add_field => ["FeatureCodeName", "islands"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ISLT" { mutate { add_field => ["FeatureCodeName", "land-tied island"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ISTH" { mutate { add_field => ["FeatureCodeName", "isthmus"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "KRST" { mutate { add_field => ["FeatureCodeName", "karst area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LAVA" { mutate { add_field => ["FeatureCodeName", "lava area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LEV" { mutate { add_field => ["FeatureCodeName", "levee"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MESA" { mutate { add_field => ["FeatureCodeName", "mesa(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MND" { mutate { add_field => ["FeatureCodeName", "mound(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MRN" { mutate { add_field => ["FeatureCodeName", "moraine"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MT" { mutate { add_field => ["FeatureCodeName", "mountain"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MTS" { mutate { add_field => ["FeatureCodeName", "mountains"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "NKM" { mutate { add_field => ["FeatureCodeName", "meander neck"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "NTK" { mutate { add_field => ["FeatureCodeName", "nunatak"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "NTKS" { mutate { add_field => ["FeatureCodeName", "nunataks"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PAN" { mutate { add_field => ["FeatureCodeName", "pan"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PANS" { mutate { add_field => ["FeatureCodeName", "pans"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PASS" { mutate { add_field => ["FeatureCodeName", "pass"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PEN" { mutate { add_field => ["FeatureCodeName", "peninsula"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PK" { mutate { add_field => ["FeatureCodeName", "peak"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PKS" { mutate { add_field => ["FeatureCodeName", "peaks"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PLAT" { mutate { add_field => ["FeatureCodeName", "plateau"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PLDR" { mutate { add_field => ["FeatureCodeName", "polder"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PLN" { mutate { add_field => ["FeatureCodeName", "plain(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PROM" { mutate { add_field => ["FeatureCodeName", "promontory(-ies)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PT" { mutate { add_field => ["FeatureCodeName", "point"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PTS" { mutate { add_field => ["FeatureCodeName", "points"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RDGB" { mutate { add_field => ["FeatureCodeName", "beach ridge"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RDGE" { mutate { add_field => ["FeatureCodeName", "ridge(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "REG" { mutate { add_field => ["FeatureCodeName", "stony desert"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RK" { mutate { add_field => ["FeatureCodeName", "rock"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RKFL" { mutate { add_field => ["FeatureCodeName", "rockfall"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RKS" { mutate { add_field => ["FeatureCodeName", "rocks"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SAND" { mutate { add_field => ["FeatureCodeName", "sand area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SBED" { mutate { add_field => ["FeatureCodeName", "dry stream bed"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SCRP" { mutate { add_field => ["FeatureCodeName", "escarpment"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SDL" { mutate { add_field => ["FeatureCodeName", "saddle"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SHOR" { mutate { add_field => ["FeatureCodeName", "shore"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SINK" { mutate { add_field => ["FeatureCodeName", "sinkhole"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SLID" { mutate { add_field => ["FeatureCodeName", "slide"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SLP" { mutate { add_field => ["FeatureCodeName", "slope(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SPIT" { mutate { add_field => ["FeatureCodeName", "spit"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SPUR" { mutate { add_field => ["FeatureCodeName", "spur(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TAL" { mutate { add_field => ["FeatureCodeName", "talus slope"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TRGD" { mutate { add_field => ["FeatureCodeName", "interdune trough(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TRR" { mutate { add_field => ["FeatureCodeName", "terrace"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "UPLD" { mutate { add_field => ["FeatureCodeName", "upland"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "VAL" { mutate { add_field => ["FeatureCodeName", "valley"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "VALG" { mutate { add_field => ["FeatureCodeName", "hanging valley"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "VALS" { mutate { add_field => ["FeatureCodeName", "valleys"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "VLC" { mutate { add_field => ["FeatureCodeName", "volcano"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "APNU" { mutate { add_field => ["FeatureCodeName", "apron"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ARCU" { mutate { add_field => ["FeatureCodeName", "arch"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ARRU" { mutate { add_field => ["FeatureCodeName", "arrugado"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BDLU" { mutate { add_field => ["FeatureCodeName", "borderland"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BKSU" { mutate { add_field => ["FeatureCodeName", "banks"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BNKU" { mutate { add_field => ["FeatureCodeName", "bank"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BSNU" { mutate { add_field => ["FeatureCodeName", "basin"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CDAU" { mutate { add_field => ["FeatureCodeName", "cordillera"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CNSU" { mutate { add_field => ["FeatureCodeName", "canyons"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CNYU" { mutate { add_field => ["FeatureCodeName", "canyon"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CRSU" { mutate { add_field => ["FeatureCodeName", "continental rise"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "DEPU" { mutate { add_field => ["FeatureCodeName", "deep"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "EDGU" { mutate { add_field => ["FeatureCodeName", "shelf edge"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ESCU" { mutate { add_field => ["FeatureCodeName", "escarpment (or scarp)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FANU" { mutate { add_field => ["FeatureCodeName", "fan"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FLTU" { mutate { add_field => ["FeatureCodeName", "flat"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FRZU" { mutate { add_field => ["FeatureCodeName", "fracture zone"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FURU" { mutate { add_field => ["FeatureCodeName", "furrow"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GAPU" { mutate { add_field => ["FeatureCodeName", "gap"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GLYU" { mutate { add_field => ["FeatureCodeName", "gully"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HLLU" { mutate { add_field => ["FeatureCodeName", "hill"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HLSU" { mutate { add_field => ["FeatureCodeName", "hills"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HOLU" { mutate { add_field => ["FeatureCodeName", "hole"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "KNLU" { mutate { add_field => ["FeatureCodeName", "knoll"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "KNSU" { mutate { add_field => ["FeatureCodeName", "knolls"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LDGU" { mutate { add_field => ["FeatureCodeName", "ledge"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LEVU" { mutate { add_field => ["FeatureCodeName", "levee"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MESU" { mutate { add_field => ["FeatureCodeName", "mesa"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MNDU" { mutate { add_field => ["FeatureCodeName", "mound"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MOTU" { mutate { add_field => ["FeatureCodeName", "moat"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MTU" { mutate { add_field => ["FeatureCodeName", "mountain"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PKSU" { mutate { add_field => ["FeatureCodeName", "peaks"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PKU" { mutate { add_field => ["FeatureCodeName", "peak"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PLNU" { mutate { add_field => ["FeatureCodeName", "plain"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PLTU" { mutate { add_field => ["FeatureCodeName", "plateau"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PNLU" { mutate { add_field => ["FeatureCodeName", "pinnacle"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PRVU" { mutate { add_field => ["FeatureCodeName", "province"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RDGU" { mutate { add_field => ["FeatureCodeName", "ridge"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RDSU" { mutate { add_field => ["FeatureCodeName", "ridges"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RFSU" { mutate { add_field => ["FeatureCodeName", "reefs"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RFU" { mutate { add_field => ["FeatureCodeName", "reef"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RISU" { mutate { add_field => ["FeatureCodeName", "rise"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SCNU" { mutate { add_field => ["FeatureCodeName", "seachannel"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SCSU" { mutate { add_field => ["FeatureCodeName", "seachannels"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SDLU" { mutate { add_field => ["FeatureCodeName", "saddle"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SHFU" { mutate { add_field => ["FeatureCodeName", "shelf"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SHLU" { mutate { add_field => ["FeatureCodeName", "shoal"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SHSU" { mutate { add_field => ["FeatureCodeName", "shoals"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SHVU" { mutate { add_field => ["FeatureCodeName", "shelf valley"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SILU" { mutate { add_field => ["FeatureCodeName", "sill"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SLPU" { mutate { add_field => ["FeatureCodeName", "slope"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SMSU" { mutate { add_field => ["FeatureCodeName", "seamounts"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SMU" { mutate { add_field => ["FeatureCodeName", "seamount"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SPRU" { mutate { add_field => ["FeatureCodeName", "spur"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TERU" { mutate { add_field => ["FeatureCodeName", "terrace"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TMSU" { mutate { add_field => ["FeatureCodeName", "tablemounts (or guyots)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TMTU" { mutate { add_field => ["FeatureCodeName", "tablemount (or guyot)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TNGU" { mutate { add_field => ["FeatureCodeName", "tongue"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TRGU" { mutate { add_field => ["FeatureCodeName", "trough"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TRNU" { mutate { add_field => ["FeatureCodeName", "trench"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "VALU" { mutate { add_field => ["FeatureCodeName", "valley"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "VLSU" { mutate { add_field => ["FeatureCodeName", "valleys"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BUSH" { mutate { add_field => ["FeatureCodeName", "bush(es)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CULT" { mutate { add_field => ["FeatureCodeName", "cultivated area"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FRST" { mutate { add_field => ["FeatureCodeName", "forest(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FRSTF" { mutate { add_field => ["FeatureCodeName", "fossilized forest"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GRSLD" { mutate { add_field => ["FeatureCodeName", "grassland"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GRVC" { mutate { add_field => ["FeatureCodeName", "coconut grove"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GRVO" { mutate { add_field => ["FeatureCodeName", "olive grove"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GRVP" { mutate { add_field => ["FeatureCodeName", "palm grove"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "GRVPN" { mutate { add_field => ["FeatureCodeName", "pine grove"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HTH" { mutate { add_field => ["FeatureCodeName", "heath"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MDW" { mutate { add_field => ["FeatureCodeName", "meadow"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OCH" { mutate { add_field => ["FeatureCodeName", "orchard(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "SCRB" { mutate { add_field => ["FeatureCodeName", "scrubland"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TREE" { mutate { add_field => ["FeatureCodeName", "tree(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TUND" { mutate { add_field => ["FeatureCodeName", "tundra"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "VIN" { mutate { add_field => ["FeatureCodeName", "vineyard"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "VINS" { mutate { add_field => ["FeatureCodeName", "vineyards"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PCL" { mutate { add_field => ["FeatureCodeName", "political entity"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PCLD" { mutate { add_field => ["FeatureCodeName", "dependent political entity"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PCLF" { mutate { add_field => ["FeatureCodeName", "freely associated state"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PCLI" { mutate { add_field => ["FeatureCodeName", "independent political entity"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PCLIX" { mutate { add_field => ["FeatureCodeName", "section of independent political entity"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PCLS" { mutate { add_field => ["FeatureCodeName", "semi-independent political entity"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "TERR" { mutate { add_field => ["FeatureCodeName", "territory"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ZN" { mutate { add_field => ["FeatureCodeName", "zone"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "BNKX" { mutate { add_field => ["FeatureCodeName", "section of bank"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CNLQ" { mutate { add_field => ["FeatureCodeName", "abandoned canal"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CNLX" { mutate { add_field => ["FeatureCodeName", "section of canal"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FLLSX" { mutate { add_field => ["FeatureCodeName", "section of waterfall(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "HBRX" { mutate { add_field => ["FeatureCodeName", "section of harbor"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LGNX" { mutate { add_field => ["FeatureCodeName", "section of lagoon"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LKI" { mutate { add_field => ["FeatureCodeName", "intermittent lake"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LKNI" { mutate { add_field => ["FeatureCodeName", "intermittent salt lake"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LKOI" { mutate { add_field => ["FeatureCodeName", "intermittent oxbow lake"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LKSI" { mutate { add_field => ["FeatureCodeName", "intermittent lakes"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LKSNI" { mutate { add_field => ["FeatureCodeName", "intermittent salt lakes"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "LKX" { mutate { add_field => ["FeatureCodeName", "section of lake"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PNDI" { mutate { add_field => ["FeatureCodeName", "intermittent pond"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PNDNI" { mutate { add_field => ["FeatureCodeName", "intermittent salt pond(s)"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PNDSI" { mutate { add_field => ["FeatureCodeName", "intermittent ponds"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "POOLI" { mutate { add_field => ["FeatureCodeName", "intermittent pool"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RFX" { mutate { add_field => ["FeatureCodeName", "section of reef"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RSVI" { mutate { add_field => ["FeatureCodeName", "intermittent reservoir"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STMI" { mutate { add_field => ["FeatureCodeName", "intermittent stream"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STMIX" { mutate { add_field => ["FeatureCodeName", "section of intermittent stream"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STMX" { mutate { add_field => ["FeatureCodeName", "section of stream"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WADX" { mutate { add_field => ["FeatureCodeName", "section of wadi"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WLLQ" { mutate { add_field => ["FeatureCodeName", "abandoned well"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "WTLDI" { mutate { add_field => ["FeatureCodeName", "intermittent wetland"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLA2" { mutate { add_field => ["FeatureCodeName", "seat of a second-order administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLA3" { mutate { add_field => ["FeatureCodeName", "seat of a third-order administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLA4" { mutate { add_field => ["FeatureCodeName", "seat of a fourth-order administrative division"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLC" { mutate { add_field => ["FeatureCodeName", "capital of a political entity"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLG" { mutate { add_field => ["FeatureCodeName", "seat of government of a political entity"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLQ" { mutate { add_field => ["FeatureCodeName", "abandoned populated place"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPLX" { mutate { add_field => ["FeatureCodeName", "section of populated place"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "STLMT" { mutate { add_field => ["FeatureCodeName", "israeli settlement"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RRQ" { mutate { add_field => ["FeatureCodeName", "abandoned railroad"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "AIRQ" { mutate { add_field => ["FeatureCodeName", "abandoned airfield"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "CMPQ" { mutate { add_field => ["FeatureCodeName", "abandoned camp"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ESTX" { mutate { add_field => ["FeatureCodeName", "section of estate"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "FRMQ" { mutate { add_field => ["FeatureCodeName", "abandoned farm"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MFGQ" { mutate { add_field => ["FeatureCodeName", "abandoned factory"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MNQ" { mutate { add_field => ["FeatureCodeName", "abandoned mine"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "MSSNQ" { mutate { add_field => ["FeatureCodeName", "abandoned mission"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "OILQ" { mutate { add_field => ["FeatureCodeName", "abandoned oil well"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PPQ" { mutate { add_field => ["FeatureCodeName", "abandoned police post"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PRNQ" { mutate { add_field => ["FeatureCodeName", "abandoned prison"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RSTNQ" { mutate { add_field => ["FeatureCodeName", "abandoned railroad station"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "RSTPQ" { mutate { add_field => ["FeatureCodeName", "abandoned railroad stop"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ISLX" { mutate { add_field => ["FeatureCodeName", "section of island"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PENX" { mutate { add_field => ["FeatureCodeName", "section of peninsula"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PLATX" { mutate { add_field => ["FeatureCodeName", "section of plateau"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "PLNX" { mutate { add_field => ["FeatureCodeName", "section of plain"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "VALX" { mutate { add_field => ["FeatureCodeName", "section of valley"] enable_metric => false }
} else if [FeatureCode] and [FeatureCode] == "ll" { mutate { add_field => ["FeatureCodeName", "not available"] enable_metric => false }
} else { mutate { add_field => ["FeatureCodeName", "unknown code"] enable_metric => false } }
mutate {
remove_field => [ "message", "host", "path"]
}
}
output {
#stdout { codec => json }
elasticsearch {
user => '${ES_GEONAMES_USER}'
password => '${ES_GEONAMES_PASSWORD}'
index => '${ES_GEONAMES_INDEX}'
document_id => '%{GeonamesId}'
document_type => 'place'
}
}
Version: 5.2.2
Operating System: OSX
Sample Data: Issue is before the start the pipeline.
Steps to Reproduce:
set environment vars
logstash -f logstash-pipeline.conf
It will take like 20 minutes in my i7 MBP 8G.
When --log.level debug it stops for a while in the "Reading config file" log entry. Even if the enable_metric => false is not present.
Could performance be increased by using logstash-filter-aggregate where you initialize a map at the first event and then reference that map in subsequent events that will be filtered?
Many
mutate
's on filter slow down the startup process:[2017-09-01T13:16:07,030][DEBUG][logstash.agent ] Reading config file {:config_file=>"logstash-pipeline.conf"}
process. config file with ~500 of mutates:--log.level debug
it stops for a while in the "Reading config file" log entry. Even if theenable_metric => false
is not present.