Ketamine is the only intravenous narcotic that has sedative, analgesic, and anesthetic effects. However, the role of Flt3l and ribosomal protein S15 (Rps15) in ketamine anesthesia remains unclear. GSE26364 and GSE93041 were downloaded from gene expression omnibus. Multiple datasets were merged and batched. Differentially expressed genes (DEGs) were screened and weighted gene co-expression network analysis was performed. Construction and analysis of protein–protein interaction network. Gene ontology (GO) and Kyoto Encyclopedia of Gene and Genome were performed. A heat map of gene expression was drawn. TargetScan was used to screen miRNAs regulating DEGs. 882 DEGs were identified. According to the GO analysis, these DEGs were mainly enriched in cell differentiation, extracellular region, and cytoplasm. The Kyoto Encyclopedia of Gene and Genome analysis revealed enrichment in pathways such as the PPAR signaling pathway, TNF signaling pathway, Hippo signaling pathway, and IL-17 signaling pathway. In the Metascape enrichment analysis, GO enrichment categories included leukocyte differentiation, negative regulation of CREB transcription factor activity, and positive regulation of cell cycle. The protein–protein interaction network showed 10 core genes (Rpl7, Rpl18, Rps15, Rpl7l1, Flt3l, Rps16, Eprs, Rps19, Rps28, Rplp2).Gene expression heatmap showed that core genes (Rplp2, Flt3l, Rps15) were highly expressed in samples treated with ketamine anesthesia. Flt3l and Rps15 are highly expressed during ketamine anesthesia, and may be molecular targets.