How to output data if field value equal to "string"

Hi there ,
I'm getting data from csv file using this conf

filter{
csv{ columns=>['geonameid','name','asciiname','alternatenames','latitude','longitude','feature class','feature code','country code','cc2','admin1 code','admin2 code','admin3 code','admin4 code','population','elevation','dem','timezone','modification date'
]
}

}

How can I output only when condition meet "country code "=>"UZ" , if conditon not meet skip data.
thanks for your time

Hi

You can use the drop{} filter plugin when your country code is not UZ.

Hope this helps.

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