Aiming to the clustering effect on FCM algorithm is easily affected by the initial location and fell into local optima, the gray optimization algorithm is applied to improving FCM to put forward a method of clustering analysis GWO_FCM. The KDD CUP99 data set as the research object, the research results showed that GWO algorithm of clustering had a accuracy and lower error rate, comparing with PSO, GA and SA algorithm, it was with faster convergence speed and better effect so as to provide a new approach for data clustering analysis.