Feature/add stat method threshold in log

add sampling method and enable threshold/filter_str