The invention discloses a user behavior
backtracking mode based on log collection, and relates to the field of
information monitoring and auditing, and the method comprises the following steps: 1, capturing user behaviors through a front-end
JavaScript event monitor, constructing a standard
log data object, sending the standard
log data object to a rear-end RESTful API interface through
AJAX, and storing
log data to an Ali cloud SLS by using a
Java Spring Boot framework; according to the method, user behaviors are captured through the front-end
JavaScript and sent to the rear end, consistency and
readability of log data are ensured, consistency and validity check is carried out on log
data objects, it is ensured that the data are within the format, integrity and effective range, the risk of data errors is reduced, the log data are stored and processed through the Alicloud SLS, and the user experience is improved. Abnormal operation is recognized by combining
big data analysis and an isolated forest
algorithm, abnormal operation in a log data object is effectively recognized, an enterprise is helped to find potential safety risks and operation errors in time, and finally a tracing report is generated.