I have these integrals : $$I_1= \int_{\mathbb{C}} \frac{|dz|^2}{|z-a_1| \cdot |z-a_2| \cdot |z-a_3|},$$ and $$I_2= \int_{\mathbb{C}} \frac{|dz|^2}{|z-a_1| \cdot |z-a_2| \cdot |z-a_3| \cdot |z-a_4|}.$$ wherer $a_i \in \mathbb{C}$, and the $a_i$ are distincts.
I can see that those integrals are well defined, but I need to evaluate them. Can they be computed explicitly ?
Note : I would like an explicit value for these integrals, but failing that I am interested in the asymptotic value when $a_2 \rightarrow a_1$.
Let us consider the first integral. Make the change of variables $z=a_1+(a_2-a_1)\xi$ so that $$I_1=\frac{1}{|a_3-a_1|}\iint_{\mathbb{C}}\frac{|d\xi|^2}{|\xi||1-\xi||1-t\xi|}=\frac{I(t,\bar{t})}{|a_3-a_1|},\tag{1}$$ with $\displaystyle t=\frac{a_2-a_1}{a_3-a_1}$. Note that the limit $a_2\rightarrow a_1$ corresponds to $t\rightarrow0$. But we will calculate $I(t,\bar{t})$ in (1) explicitly in terms of elliptic integrals without taking any limit, see formula (5) below.
Since we know that our integral is well-defined, instead of integrating over $\mathbb{C}$, we can first integrate over $\mathbb{C}\backslash S_{\epsilon}$ (where $S$ consists of three disks of radius $\epsilon$ centered at $0$, $1$ and $t^{-1}$), and then consider the limit $\epsilon\rightarrow 0$. Note that our integrand is of the form $f(\xi,t)f(\bar{\xi},\bar{t})$ with $$f(\xi,t)=\frac{1}{\sqrt{\xi(1-\xi)(1-t\xi)}}.$$
If only this function $f(\xi,t)$ were simpler, we would be able find its antiderivative $F(\xi,t)$ and then used Stokes theorem to integrate instead of 2-form $f(\xi,t)f(\bar{\xi},\bar{t})d\xi\wedge d\bar{\xi}$ (over $\mathbb{C}\backslash S_{\epsilon}$) the 1-form $F(\bar{\xi},\bar{t})f(\xi,t)d\xi$ over the boundary of the $\mathbb{C}\backslash S_{\epsilon}$ consisting of the complex contours surrounding the branch cuts. Unfortunately, $f(\xi,t)$ is not that simple and we will need the following trick.
Rewrite the integral as $$I(t,\bar{t})=\frac{1}{2i}\iint f(\xi,t)d\xi\wedge f(\bar{\xi},\bar{t})d\bar{\xi}$$ Then notice that $$\left\{t(1-t)\frac{\partial^2}{\partial t^2}+ (1-2t)\frac{\partial}{\partial t}-\frac14\right\}f(\xi,t)= -\frac12\frac{\partial}{\partial\xi}\frac{\xi^2(1-\xi)^2}{\left[ \xi(1-\xi)(1-t\xi)\right]^{3/2}}.$$ Where does this come from? Well, it is a rather well-known fact that if you have an integral of the form $$\int_{\gamma}\frac{\xi^{a}(1-\xi)^{b}d\xi}{(1-t \xi)^{c}},$$ where $\gamma$ is an arbitrary complex contour starting and ending at one of the three points $0,1,\infty$ (possibly with winding), it solves a hypergeometric equation with parameters simply depending on $a,b,c$ whenever the integral is well-defined. And the standard way to show this is what I used above: one constructs a differential operator whose action on the integrand gives a derivative of something nice. So I only had to find what are the parameters of the hypergeometric equation in your particular case.
Therefore, applying hypergeometric operator from the left side of the last relation to $I(t,\bar{t})$, we can realize the previous program (Stokes theorem) and obtain zero (+ similarly for $\bar{t}$). This implies that $$I(t,\bar{t})=A\cdot G_a(t)G_a(\bar{t})+B\cdot G_b(t)G_b(\bar{t})+C\cdot \left[G_a(t)G_b(\bar{t})+G_b(t)G_a(\bar{t})\right],\tag{2}$$ where $G_{a,b}(t)$ are two independent solutions of the hypergeometric equation $$\left\{t(1-t)\frac{d^2}{d t^2}+ (1-2t)\frac{d}{dt}-\frac14\right\}G(t)=0,\tag{3}$$ and $A,B,C$ are so far unknown constants.
So now the problem is almost solved. It remains to take two independent solutions of (3) and determine the coefficients $A,B,C$ in (2). The hypergeometric functions in this case reduce to elliptic integrals and we can choose $$G_a(t)= K(t),\qquad G_b(t)=\cdot K(1-t),$$ where $K(t)$ denotes complete elliptic integral of the first kind $$K(t)=\frac{\pi}{2}{}_2F_1\left(\frac12,\frac12;1;t\right)=\int_0^1\frac{dx}{\sqrt{(1-x^2)(1-tx^2)}}.$$ There are different conventions for the argument of $K(t)$. I use the one used in Mathematica, but in the notation of the referenced page my $K(t)$ would be $K(\sqrt{t})$.
Another simple observation is that $I_1$ is symmetric with respect to permutations of $a_{1,2,3}$. But, for example, the exchange $a_1\leftrightarrow a_3$ translates into $t\leftrightarrow 1-t$, and therefore we can conclude that $A=B$. This means that \begin{align}I\left(t,\bar{t}\right)=A\left[K(t)K\left(\bar{t}\right)+K(1-t)K\left(1-\bar{t}\right)\right]+\\ +C\left[K(t)K\left(1-\bar{t}\right)+K(1-t)K\left(\bar{t}\right)\right].\tag{4} \end{align}
My simplest numerical experiments (it would be nice if somebody could confirm them) suggest that $A=0$ and $C=4$, so that the final formula for $I_1$ is given by $$\boxed{\displaystyle I_1=4\cdot\frac{K(t)K\left(1-\bar{t}\right)+K(1-t)K\left(\bar{t}\right)}{|a_3-a_1|}}\tag{5}$$ with $\displaystyle t=\frac{a_2-a_1}{a_3-a_1}$.
In the end let me remark that, as $t\rightarrow0$, $$I(t,\bar{t})=2\pi\left(4\ln2-\ln|t|\right)+o(1).$$
UPD: The comment of achille hui allows to rigorously show that the values of constants $A$ and $C$ are indeed $0$ and $4$, which finishes the derivation of (5).