Thanks for your reply and by using the query I am able to locate the device that have log within the past 30days. But additionally, I need to compare it with a CSV and then produce a new CSV with status, which means, I need to produce a list like below, by comparing the metadata table and the inventory CSV. Hostname IP status ---------------------------- deviceA 1.1.1.1 "Receiving log" deviceB 2.2.2.2 "No log can be found from past 30days"
... View more