SumoLogic/livetail-cli

KeyError: 'deployment' running livetail

Opened this issue · 2 comments

I just downloaded livetail for macOS. No matter what I do with it, it errors out with a KeyError.

$ ./livetail "_collector=psc-dev-gen_th6z8bnkixytyjxckons9mhr6" 
Traceback (most recent call last):
  File "livetail.py", line 139, in <module>
KeyError: 'deployment'
[13047] Failed to execute script livetail

Same issue here:

./livetail "_source=ABC"                                                                                              
Traceback (most recent call last):
  File "livetail.py", line 139, in <module>
KeyError: 'deployment'
[80273] Failed to execute script livetail

Version:

./livetail -v 
Sumo Logic Live Tail CLI Version (2.0)

After going through some of the open issues I found the mistake for my error. I was running ./livetail in a folder that already had a config.json file created by some other tool in the past. As indicated in this issue 13 and this issue 20, livetail tries to create the config file right next to where the binary sits (instead of e.g. some user specific folder). After I've moved livetail somewhere else, I was able to use it.

I'd recommend to update livetail to store the config file somewhere else and with the right permissions (not 644), but since I don't think SumoLogic is actually present here I have very little hopes that this will get fixed.