What is the ancient book on analyzing ghosts?

I think it's Sue Ji Shen. Search for Ji Shen is a collection of novels, which records the magical and strange stories in ancient folklore. The writer is Gan Bao, a historian in the Eastern Jin Dynasty. This book was originally scattered and compiled by later generations, with a total of 20 volumes and 454 stories. The protagonists are ghosts, monsters, immortals, and mixed with Buddhism and Taoism. Most of them are strange things of immortals, and some of them belong to folklore. Most of them are short in length, simple in plot, fantastic in imagination and full of romanticism, which has a far-reaching influence on later generations.