also boggard, "specter, goblin, sprite," especially one supposed to haunt a particular spot, 1560s; see bug (n.).
1590s, "to start with fright (as a startled horse does), shy, take alarm," from Middle English bugge "specter" (among other things, supposed to scare horses at night); see bug (n.); also compare bogey (n.1), boggart.
The meaning " hesitate, stop as if afraid to proceed in fear of unforeseen difficulties" is from 1630s; the transitive sense of "confound, cause to hesitate" is from 1640s. As a noun from 1650s. Related: Boggled; boggling; boggler (from c. 1600 as "one who hesitates").
"a noisy spirit, a ghost which makes its presence known by noises," 1838, from German Poltergeist, literally "noisy ghost," from poltern "make noise, rattle" (from PIE root *bhel- (4) "to sound, ring, roar;" source of bellow, bell) + Geist "ghost" (see ghost (n.)). In the native idiom of Northern England, such phenomena likely would be credited to a boggart.
World War II aviator slang for "unidentified aircraft, presumably hostile," probably ultimately from bog/bogge, attested 16c.-17c., a dialectal variant of Middle English bugge "a frightening specter" (see bug (n.)).
If so, bogey shares ancestry with, and might have arisen from, dialect words for "ghost, specter, the devil," such as bogeyman "haunting specter, object of fear" (16c.), boggart "specter that haunts a gloomy spot" (c. 1570, in Westmoreland, Lancashire, Cheshire, and Yorkshire), and compare bogey (n.2). The earliest modern form appears to be Scottish bogle "ghost," attested from c. 1500 and popularized c. 1800 in English literature by Scott, Burns, etc.