Curating datasets from logs