This question relates only to $x \in \mathbb{R}^+$. The function $f(x) = \cos (\log (x))$ is clearly defined on the positive reals, with a monotonic decreasing period $p(x)$ which is defined at the limits of this range by
$$\underset{x\to 0^+}{\text{lim}}p(f(x)) = \infty$$ $$\underset{x\to \infty}{\text{lim}}p(f(x)) = 0$$
$p$ still needs clear definition for any given $0 < x_0 < \infty$. So, let us define $p(x_ 0)$ as the smallest positive real $a$ for which this pair of equations hold:
$$\cos (\log (x_0)) = \cos (a \log (x_0))$$ $$\text{sgn}\left(\frac{\partial \cos \left(\log \left(x_0\right)\right)}{\partial x_0}\right) = \text{sgn}\left(\frac{\partial \cos \left(a \log \left(x_0\right)\right)}{\partial x_0}\right)$$
Is the right approach? And how do I proceed?