The invention discloses a user behavior counting method for a power scheduling automatic
system based on a log. The user behavior counting method comprises the following steps: triggering a synchronous procedure at a special moment or a time interval, visiting data in a
database list of the power scheduling automatic
system according to a time field, storing the data into a local log analysis table, connecting the local log analysis table to a work
station of the power scheduling automatic
system through a remote
logging interface, comparing and analyzing a file edition and content according to a work
station address, a user name, a
password, a synchronous interval and the like to form an operation log; trimming and extracting the user operation log, returning the file operation log to the
server through a ftp protocol, storing the file operation log to a local log analysis table, adopting a Lucene engine to establish full-text index for the
database and the file log, performing
keyword analysis through a
Chinese word segmentation
algorithm, and providing user operation behavior counting and application using condition analysis. The user behavior counting method has the advantages of realizing collecting, extracting, recording and analyzing of user operation log for electric scheduling
automation.