# Asloglatency throwing time format error (AER-3991)

**URL:** https://discuss.aerospike.com/t/asloglatency-throwing-time-format-error-aer-3991/1468
**Category:** asloglatency
**Created:** [July 8, 2015, 11:09am UTC](https://discuss.aerospike.com/t/asloglatency-throwing-time-format-error-aer-3991/1468 "2015-07-08T11:09:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ashishbhutani](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/ashishbhutani/32/183_2.png) [@ashishbhutani](https://discuss.aerospike.com/u/ashishbhutani)
#### Post date: [July 8, 2015, 11:09am UTC](https://discuss.aerospike.com/t/asloglatency-throwing-time-format-error-aer-3991/1468/1 "2015-07-08T11:09:01Z")

</div>

Hi

I am getting below error:

```
asloglatency -l /var/log/aerospike/aerospike.log -h reads -f -3600
reads
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/_strptime.py", line 467, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/usr/lib/python2.7/_strptime.py", 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!

---

<div class="post-metadata">

### Author: ![ashishbhutani](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/ashishbhutani/32/183_2.png) [@ashishbhutani](https://discuss.aerospike.com/u/ashishbhutani)
#### Post date: [July 8, 2015, 1:03pm UTC](https://discuss.aerospike.com/t/asloglatency-throwing-time-format-error-aer-3991/1468/2 "2015-07-08T13:03:58Z")

</div>

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 ?

---

<div class="post-metadata">

### Author: ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)
#### Post date: [July 9, 2015, 9:55pm UTC](https://discuss.aerospike.com/t/asloglatency-throwing-time-format-error-aer-3991/1468/3 "2015-07-09T21:55:26Z")

</div>

> [@ashishbhutani](#):
>
> Does aerospike creates an empty line at the start of log ?

Not that I am aware of.

> [@ashishbhutani](#):
>
> And shouldn’t asloglatency just skip such lines ?

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