Security loggers such as network intrusion detection sensors and operating system audit recorders typically produce a large volume of events, the magnitude of which can make detailed manual analysis (e.g., investigating a security incident) prohibitive. However, it is often only through such analysis that computer security professionals can meaningfully tune audit policy and operational configuration, and detect unusual or malicious events ("attacks"). Clearly, better tools are required. This paper proposes a data clustering algorithm which can assist in these areas. Our algorithm clusters log events according to type and attribute, grouping the events typical of normal behaviour into clusters, thereby highlighting which are typical and which are unusual events (those that don't map into one of the "normal" clusters). The number of clusters and the number of outlier events is typically very small compared to the overall size of the log since the vast majority of events have been filtered. As a result the manual investigation of these events is viable. Our algorithm is scalable and efficient and can further be used to detect temporal changes in event clusters.