The network log file database is important to security management. But, with the development of Internet, it has become too bulkiness to be used directly. This paper presents a simple and extremely efficient method for analyzing and mining the data of network security log file database, which also adapted to mining the useful rules from the network security data. This is different from traditional data mining methods of association rules. The period law of the attack number in different time domain is found by this method.