Raising issue here to discuss more about sampling code implementation
Previous discussion in post:
https://discuss.elastic.co/t/is-there-any-way-to-do-data-sampling-at-client-side/50428/8?u=harshafrnd4u
Since packetbeat is doing lot of work to prepare a event with all fields, Is there any way we can design for it to randomly sample or sample based on some frequency like (send one event out of every ten events). May be we can enhance using drop_events but it would be better if we can drop before preparing event with fields.
Please guide me where can I add this kind of functionality in packetbeat.
Raising issue here to discuss more about sampling code implementation
Previous discussion in post:
https://discuss.elastic.co/t/is-there-any-way-to-do-data-sampling-at-client-side/50428/8?u=harshafrnd4u
Since packetbeat is doing lot of work to prepare a event with all fields, Is there any way we can design for it to randomly sample or sample based on some frequency like (send one event out of every ten events). May be we can enhance using drop_events but it would be better if we can drop before preparing event with fields.
Please guide me where can I add this kind of functionality in packetbeat.