capture event type, filename for inotify