Asloglatency throwing time format error (AER-3991)



I am getting below error:

asloglatency -l /var/log/aerospike/aerospike.log -h reads -f -3600
Traceback (most recent call last):
  File "/usr/bin/asloglatency", line 613, in <module>
    arg_num_buckets, arg_every_nth)
  File "/usr/bin/asloglatency", line 445, in main
    head_dt = read_head_dt(file_id)
  File "/usr/bin/asloglatency", line 234, in read_head_dt
    return parse_dt(line)
  File "/usr/bin/asloglatency", line 198, in parse_dt
    return datetime.datetime(*(time.strptime(prefix, DT_FMT)[0:6]))
  File "/usr/lib/python2.7/", line 467, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/usr/lib/python2.7/", line 325, in _strptime
    (data_string, format))
ValueError: time data '' does not match format '%b %d %Y %H:%M:%S'

I am on deb7 with aerospike tool version 3.5.9 and python 2.7.3

Same command is working on deb6 with same tools version and python 2.6.6

I have tried many other options in asloglatency command but none seems to work. can someone please suggest a workarounfd ? I want to determine the latency of reads/writes in my system. Thanks!


Just realised that there is an empty line at the top of log file and asloglatency is breaking there.

Does aerospike creates an empty line at the start of log ? And shouldn’t asloglatency just skip such lines ?


Not that I am aware of.

Yes it should, I have filed a JIRA ticket for this issue: AER-3991.