import os
logdir = '.'
logfiles = sorted([f for f in os.listdir(logdir) if f.startswith(
    'JuniperAccessLog-standalone-FCL_VPN')])
print('Most recent file = %s' % (logfiles[-1],))
How to get the most recent file