We have a field named "AP_NAME" this field value contains a common names like WIRAP and WIRWM but some additional names also coming to this field so I want put a condition in logstash to get only this particular WIRAP and WIRWM naming values in the field "AP_NAME"
We need to put # in the second line.Please confirm once.
if [APP_NAME] not in [ "WIRAP", "WIRWM" ] { #mutate { remove_field => [ "APP_NAME" ] }
mutate { replace => { "APP_NAME" => "-" } }
}
We need only the value which contains WIRAP and WIRWM don't need the remaining values in the AP_NAME field so will go with the below one and remove the values which not conains WIRAP and WIRWM in the AP_NAME field.
if [APP_NAME] not in [ "WIRAP", "WIRWM" ] {
mutate { remove_field => [ "APP_NAME" ] }
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.