The HSE's drug monitoring programme is set to be piloted at next month's Electric Picnic Festival.
Drugs can be surrendered by the public through an anonymous 'surrender bin' at the event.
While the HSE will also analyse substances of concern identified by medics.
Director of Electric Picnic, Melvin Benn, says people will be notified if dangerous batches are in circulation:
"We actively test the drugs and we're able to then put messages out on the screen and on the on the app about you who are in possession of this particular drug."