The Internet of Things (IoT) will be used in increasingly complex and critical applications where heterogeneous devices will work together in connected systems. In this paper we address methods for log-analytics and process mining in order to support automatic problem detection and diagnosis in IoT. We introduce the idea of generating consistent event logs over various IoT devices in a particular format, and later a roadmap for it to be used in process mining. The paper also provides information about various statistics on process mining and its future prospects. Those methods are essential to provide a foundation for the future generation IoT systems that will be capable of self-healing.