In my config file I have a very long list of these drops:
if ([EventType]=="CachedRateDataStore"){
drop { }
}
if ([EventType]=="ChronoStats"){
drop { }
etc
I have also got a number of filters
( "PriceRequestProcessor" in [message]) or
( "PfPriceRequestRejectExecutor" in [message])
{
kv {
etc
I just realised that my "drop" list is growing long. In fact I'm not interested in any other fields except the ones I'm filtering with kv.
How do I drop just about everything and only apply filters the 2 fields up here. That stops me from having to explicitly drop spcecific fields. If the items aren't PriceRequestProcessor or PfPriceRequestRejectExecutor, then drop them all.
That will still mean I create a list ... I'm only interested in PriceRequestProcessor and PfPriceRequestRejectExecutor in message then drop everything else.
This is confusing. Do you want to drop all messages except those with EventType being either CachedRateDataStore or ChronoStats and a message that contains PriceRequestProcessor or PfPriceRequestRejectExecutor?
if [EventType] not in ["PriceRequestProcessor","PfPriceRequestRejectExecutor","PriceRequestListener","DiscountPointRequestBlock","PfClientEnrichmentBlock"] {
drop { }
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.