Ocypus ophthalmicus

Ocypus ophthalmicus is a species of rove beetle belonging to the family Staphylinidae, subfamily Staphylininae.
These beetles are present in most of Europe, in the east Palearctic ecozone, in North Africa, and in the Near East.
Its head, pronotum, and elytra have metallic blue reflections, with a shiny surface of pronotum.
== Description ==
The adults grow up to 17–22 mm (0.67–0.87 in) long. O. ophthalmicus is a eurytopic species and can be encountered both in deciduous forests (Quercus spp., Fagusspp.) and in xeric habitats. Generally, they are found in detritus, under stones, and on dung. They are nocturnal predators (especially of worms, snails, larvae, etc.).
They are known for their habit of raising their long abdomens and opening their jaws, like a threatened scorpion. In this defense posture, they secrete an irritating substance, with a very unpleasant smell.
Check out Wikipedia for more details!