Hemophagocytic lymphohistiocytosis (HLH) is a rare, complicated and life threatening hyperinflammatory syndrome that maybe triggered by various infectious agents, malignancies and rheumatologic disorders. Early diagnosis and identification of the cause is essential to initiate appropriate treatment and improve the quality of life and survival of patients. The recently developed Onco-mNGS technology can be successfully used for simultaneous detection of infections and tumors. In the present study, 92 patients with clinically confirmed HLH were etiologically subtyped for infection, tumor and autoimmunity based on CNV and microbial data generated by Onco-mNGS technology, and a predictive model was developed and validated for the differential diagnosis of the underlying disease leading to secondary HLH. Furthermore, the treatment outcomes of patients with HLH triggered by EBV infection and non-EBV infection were evaluated, respectively. The current study demonstrated that the novel Onco-mNGS can identify the infection and malignancy- related triggers among patients with secondary HLH. A random forest classification model based on CNV profile, infectious pathogen spectrum and blood microbial community was developed to better identify the different HLH subtypes and determine the underlying triggers. The prognosis for treatment of HLH patients is not only associated with CNV, but also with the presence of pathogens and non- pathogens in peripheral blood. Higher CNV burden along with frequent deletions on chromosome 19, higher pathogen burden and lower non-pathogenic microbes were prognosis factors that significantly related with unfavorable treatment outcomes. Our study provided comprehensive knowledge in the triggers and prognostic predictors of patients with secondary HLH, which may help early diagnosis and appropriate targeted therapy, thus improving the survival and prognosis of the patients.