I'm no expert at insects - but if it is a dead log, and the wood is decaying and thay are living in the soft bits, I wouldn't worry about it at all. I have a small pile of logs on the plot which are colonised by various creatures, including stag beetles.