1. A method comprising: receiving records of events associated with network entities in a network environment, wherein the network entities are selected from hardware entities, software entities, and combinations of hardware and software entities; analyzing, by a system including one or more processors, the records of the events to identify relationships between events associated with different ones of the network entities, wherein the records of the events identify corresponding network entities impacted by the events; constructing, by the system, a Bayesian network based on the analyzing, wherein the constructed Bayesian network is able to make predictions regarding relationships between events associated with the network elements; after the constructing of the Bayesian network, discovering, by the system, an infrastructure of the network environment using prediction outputs of the Bayesian network; and building, by the system, a representation of the infrastructure of the network environment according to the discovering, the built representation of the infrastructure including the network entities of the network environment and relationships among the network entities.