Import csv and match on column values

We are using v8.11.3. I would like to import a csv with a long list of usernames. In my Kibana query of login logs, I'd like to match against values in the csv. Last, if a user login in my logs doesn't match a value in the whitelist (csv), create an alert. Thanks in advance for any help.