Im filtering iis request logs and the volume is very high, i want a representative sample of all of those requests.
Right now I am doing this with nxlog and I am curious if this is possible with filebeat:
Exec if (get_var('count') == undef) set_var('count',0);
Exec set_var('count', get_var('count') + 1);
Exec if (get_var('count')%20 != 0) drop();
Im setting a counter for each log line and dropping it if it is not divisible by 20 (so effectively 5%).
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.