get and parse logs