We consider the filtering problem for a doubly stochastic Poisson or Cox process, where the intensity follows the Cox-Ingersoll-Ross model. In this article we assume that the Brownian motion, which drives the intensity, is not observed. Using filtering theory for point process observations, we first derive the dynamics for the intensity and its moment-generating function, given the observations of the Cox process. A transformation of the dynamics of the conditional moment-generating function allows us to solve in closed form the filtering problem, between the jumps of the Cox process as well as at the jumps, which constitutes the main contribution of the article. Assuming that the initial distribution of the intensity is of the Gamma type, ...