Ephedra herb (EH), an important medicine prescribed in herbal formulas by Traditional Chinese Medicine practitioners, has been widely used in the treatment of viral pneumonia in China. However, the molecular basis of EH in viral pneumonia remains unclear. In this study, a ternary correlation multi‐symptom network strategy was established based on in vivo chemical profile identification and metabolomics to explore the molecular basis of EH against viral pneumonia. Results showed that 143 compounds of EH and 70 prototype components were identified in vivo. EH could reduce alveolar‐capillary barrier disruption in rats with viral pneumonia and significantly downregulate the expression of inflammatory factors and bronchoalveolar lavage fluid. Plasma metabolomics revealed that EH may be involved in the regulation of arachidonic acid, tryptophan, tyrosine, nicotinate, and nicotinamide metabolism. The multi‐symptom network showed that 12 compounds have an integral function in the treatment of viral pneumonia by intervening in many pathways related to viruses, immunity and inflammation, and lung injury. Further verification demonstrated that sinapic acid and frambinone can regulate the expression of related genes. It has been shown to be a promising representative of the pharmacological constituents of ephedra.