$$I=\large \int_{0}^{\infty}\frac{\cos(x/a)-1}{x}\cdot\cos(x)\ln(x)\mathrm dx$$
Attempt:
Split them into
$$\large \int_{0}^{\infty}\frac{\cos(x/a)}{x}\cdot\cos(x)\ln(x)\mathrm dx-\int_{0}^{\infty}\frac{1}{x}\cdot\cos(x)\ln(x)\mathrm dx=J-K$$
Applying integration by parts, $\large u=\cos(x)$
$\large \mathrm du=-\sin(x)$
$\large \mathrm dv=\frac{\ln(x)}{x}\mathrm dx$
$\large v=\frac{\ln^2(x)}{2}$
$$K=\frac{\cos(x)\ln^2(x)}{2}+\frac{1}{2}\int\sin(x)\ln^2(x)\mathrm dx$$
Try another integration by parts,
$\large u=\sin(x)\ln(x)$
$\large \mathrm du=\frac{}\sin(x){x}+\cos(x)\ln(x)$
$\large \mathrm dv=\sin(x)\mathrm dx$
$\large v=\sin(x)$
$$\int\sin(x)\ln^2(x)\mathrm dx=-\cos(x)\sin(x)\ln(x)+\int \left(\frac{\sin(2x)}{2x}+\ln(x)-\sin^2(x)\ln(x)\right)\mathrm dx$$
$$\int\sin(x)\ln^2(x)\mathrm dx=-\cos(x)\sin(x)\ln(x)+x\ln(x)-x+\int \left(\frac{\sin(2x)}{2x}-\sin^2(x)\ln(x)\right)\mathrm dx$$
I have try doing integration by parts to reduce it but, it is not working.
I have try and look up standard table of integrals but can't find much to help me.
I am unable to proceed. Can anyone please lead the way?
This is not an answer but it is too long for a comment.
As I wrote in a comment, I suppose that there is a trick but I suppose that we must not split as $I=J−K$ since there is a serious problem with $K$ around $x=0$.
Close to zero $$\frac{\cos \left(\frac{x}{a}\right)-1}{x}\,\cos (x)\,\log (x)=-\frac{x \log (x)}{2 a^2}+O\left(x^3\right) $$ $$\int \frac{\cos \left(\frac{x}{a}\right)-1}{x}\,\cos (x)\,\log (x)\,dx=\frac{x^2 (1-2 \log (x))}{8 a^2}+O\left(x^4\right)$$ does not make any problem.
Being short of ideas and lazy, just by curiosity, I gave it to a CAS and obtained the result $$I=\frac{1}{16} \left(\log ^2\left(\frac{(a-1)^2}{a^2}\right)+4 \gamma \log \left(\frac{(a-1)^2}{a^2}\right)+4 \log \left(\frac{1+a}{a}\right) \left(\log \left(\frac{1+a}{a}\right)+2 \gamma \right)\right)$$ How to get it, this is the question !