The continuous growth of electronic commerce websites, its success and failure has stimulated great interest in analyzing consumer behavior towards e-commerce websites. Given the significant rise in the online users, better understanding of consumers allows better marketing strategies to be designed. Conventional methods are out dated in accessing the consumer behavior towards e-commerce websites. In this paper web usage mining is used to extract the consumer behavior from the web log file and K-Means Clustering algorithm is used to analyze the consumer behavior data. © Research India Publications.