log fetcher script