def METHOD_NAME(host, log_file):
    pos = log_file.rfind('.')
    filename_prefix = log_file[0:pos] if pos > -1 else log_file
    pos = filename_prefix.rfind('/') + 1
    rename_prefix = filename_prefix[pos:] if pos > 0 else filename_prefix
    suffix = str(datetime.utcnow()).replace(' ', '.')
    filename_log = './logs/ptf_collect/' + rename_prefix + '.' + suffix + '.log'
    host.fetch(src=log_file, dest=filename_log, flat=True, fail_on_missing=False)
    allure.attach.file(filename_log, 'ptf_log: ' + filename_log, allure.attachment_type.TEXT)
    pcap_file = filename_prefix + '.pcap'
    output = host.shell("[ -f {} ] && echo exist || echo null".format(pcap_file))['stdout']
    if output == 'exist':
        filename_pcap = './logs/ptf_collect/' + rename_prefix + '.' + suffix + '.pcap'
        host.fetch(src=pcap_file, dest=filename_pcap, flat=True, fail_on_missing=False)
        allure.attach.file(filename_pcap, 'ptf_pcap: ' + filename_pcap, allure.attachment_type.PCAP)