Enterprise search and analytics company Elastic has agreed to acquire DeductiveAI, a startup that uses artificial intelligence to automatically detect and resolve software.