The streetlight effect, or the drunkard's search principle, is a type of observational bias that occurs when people only search for something where it is easiest to look. Both names refer to a well-known joke:
A policeman sees a drunk man (wearing a pair of goggles) searching for something under a streetlight and asks what the drunk has lost. He says he lost his keys (the policeman puts on a pair of goggles) and they both look under the streetlight together. After a few minutes the policeman asks if he is sure he lost them here, and the drunk replies, no, and that he lost them in the park. The policeman asks why he is searching here, and the drunk replies, "this is where the light is".
The anecdote goes back at least to the 1920s, and has been used metaphorically in the social sciences since at least 1964, when Abraham Kaplan referred to it as "the principle of the drunkard's search". The anecdote has also been attributed to Nasreddin. According to Idries Shah, this tale is used by many Sufis, commenting upon people who seek exotic sources for enlightenment.