Traceback (most recent call last):


 "/usr/local/bin/elastalert-test-rule", line 11, in <module>

load_entry_point('elastalert==0.1.8', 'console_scripts', 'elastalert-test-rule')()


 "/usr/local/lib/python2.7/dist-packages/elastalert-0.1.8-py2.7.egg/elastalert/test_rule.py", line 333, in main

test_instance.run_rule_test()


 "/usr/local/lib/python2.7/dist-packages/elastalert-0.1.8-py2.7.egg/elastalert/test_rule.py", line 328, in run_rule_test

self.run_elastalert(rule_yaml, conf, args)


 "/usr/local/lib/python2.7/dist-packages/elastalert-0.1.8-py2.7.egg/elastalert/test_rule.py", line 248, in run_elastalert

client.run_rule(rule, endtime, starttime)


 "/usr/local/lib/python2.7/dist-packages/elastalert-0.1.8-py2.7.egg/elastalert/elastalert.py", line 667, in run_rule

if not self.run_query(rule, rule['starttime'], tmp_endtime):


 "/usr/local/lib/python2.7/dist-packages/elastalert-0.1.8-py2.7.egg/elastalert/elastalert.py", line 476, in run_query

data = self.get_hits(rule, start, end, index, scroll)


 "/usr/local/lib/python2.7/dist-packages/elastalert-0.1.8-py2.7.egg/elastalert/elastalert.py", line 330, in get_hits

hits = self.process_hits(rule, hits)


 "/usr/local/lib/python2.7/dist-packages/elastalert-0.1.8-py2.7.egg/elastalert/elastalert.py", line 267, in process_hits

set_es_key(hit['_source'], rule['timestamp_field'], rule['ts_to_dt'](ts))


 "/usr/local/lib/python2.7/dist-packages/elastalert-0.1.8-py2.7.egg/elastalert/util.py", line 109, in ts_to_dt

dt = dateutil.parser.parse(timestamp)


 "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 743, in parse

return DEFAULTPARSER.parse(timestr, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 300, in parse

res = self._parse(timestr, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 358, in _parse

l = _timelex.split(timestr)


 "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 139, in split

return list(cls(s))


 "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 136, in next

return self.__next__()
# Python 2.x support


 "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 130, in __next__

token = self.get_token()


 "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 61, in get_token

nextchar = self.instream.read(1)
AttributeError: 'int' object has no attribute 'read'

Traceback (most recent call last):


 "/usr/bin/aker/aker.py", line 168, in <module>

Aker().build_tui()


 "/usr/bin/aker/aker.py", line 130, in build_tui

self.tui.start()


 "/usr/bin/aker/tui.py", line 344, in start

self.loop.run()


 "/usr/lib64/python2.7/site-packages/urwid/main_loop.py", line 277, in run

self._run()


 "/usr/lib64/python2.7/site-packages/urwid/main_loop.py", line 374, in _run

self.event_loop.run()


 "/usr/lib64/python2.7/site-packages/urwid/main_loop.py", line 677, in run

self._loop()


 "/usr/lib64/python2.7/site-packages/urwid/main_loop.py", line 714, in _loop

self._watch_files[fd]()


 "/usr/lib64/python2.7/site-packages/urwid/raw_display.py", line 391, in <lambda>

event_loop, callback, self.get_available_raw_input())


 "/usr/lib64/python2.7/site-packages/urwid/raw_display.py", line 491, in parse_input

callback(processed, processed_codes)


 "/usr/lib64/python2.7/site-packages/urwid/main_loop.py", line 398, in _update

self.process_input(keys)


 "/usr/lib64/python2.7/site-packages/urwid/main_loop.py", line 498, in process_input

k = self._topmost_widget.keypress(self.screen_size, k)


 "/usr/lib64/python2.7/site-packages/urwid/wimp.py", line 642, in keypress

return self._current_widget.keypress(size, key)


 "/usr/lib64/python2.7/site-packages/urwid/container.py", line 1127, in keypress

return self.body.keypress( (maxcol, remaining), key )


 "/usr/lib64/python2.7/site-packages/urwid/container.py", line 1127, in keypress

return self.body.keypress( (maxcol, remaining), key )


 "/usr/bin/aker/tui.py", line 76, in keypress

self.focus.original_widget.get_caption())


 "/usr/lib64/python2.7/site-packages/urwid/signals.py", line 263, in emit

result |= self._call_callback(callback, user_arg, user_args, args)


 "/usr/lib64/python2.7/site-packages/urwid/signals.py", line 293, in _call_callback

return bool(callback(*args_to_pass))


 "/usr/bin/aker/tui.py", line 326, in host_chosen_handler

self.aker.init_connection(host)


 "/usr/bin/aker/aker.py", line 155, in init_connection

session.stop_sniffer()


 "/usr/bin/aker/session.py", line 37, in stop_sniffer

self._client.stop_sniffer()


 "/usr/bin/aker/SSHClient.py", line 38, in stop_sniffer

sniffer.stop()


 "/usr/bin/aker/snoop.py", line 164, in stop

self.log_file.write('Session End %s' % session_end)
AttributeError: 'NoneType' object has no attribute 'write'
