I have multiple log files in a directory and want to print first line of those files which are having pattern `vanished` on last line.

Could it be done with `awk` for `*.logs` having also printed name of the logfile before the first line is printed out?