Refer this Teamcity documentation it tells how to use Bearer token based URL to download teamcity build logs Integration with Log Analysis Tools