The dynamical zeta functions of Ruelle and Selberg are functions of a complex variable
and are associated with the geodesic flow on the unit sphere bundle of a compact hyperbolic manifold. Their representation by Euler-type products traces back to the Riemann zeta function. In this talk, we will present trace formulae and the machinery that they provide to study the analytic properties of the dynamical zeta functions and their relation to the analytic torsion, a spectral invariant. One can refer to this relation as the so called Fired 's conjecture. In the case of a non-unitary twist, i.e., a non-unitary representation of the fundamental group of the manifold, one has to consider a refinement of the analytic torsion as it is introduced by Braverman and Kappeler.In addition, time depending, we will present other trace formulae such as the Lefschetz formula, and their application to prime geodesic theorems for locally symmetric spaces of higher rank.