{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,15]],"date-time":"2026-10-15T19:16:37Z","timestamp":1792091797735,"version":"4.4.0"},"reference-count":38,"publisher":"SAGE Publications","issue":"4","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["IDA"],"published-print":{"date-parts":[[2024,7,17]]},"abstract":"<jats:p>Logs play an important role in anomaly detection, fault diagnosis, and trace checking of software and network systems. Log parsing, which converts each raw log line to a constant template and a variable parameter list, is a prerequisite for system security analysis. Traditional parsing methods utilizing specific rules can only parse logs of specific formats, and most parsing methods based on deep learning require labels. However, the existing parsing methods are not applicable to logs of inconsistent formats and insufficient labels. To address these issues, we propose a robust Log parsing method based on Self-supervised Learning (LogSL), which can extract templates from logs of different formats. The essential idea of LogSL is modeling log parsing as a multi-token prediction task, which makes the multi-token prediction model learn the distribution of tokens belonging to the template in raw log lines by self-supervision mode. Furthermore, to accurately predict the tokens of the template without labeled data, we construct a Multi-token Prediction Model (MPM) combining the pre-trained XLNet module, the n-layer stacked Long Short-Term Memory Net module, and the Self-attention module. We validate LogSL on 12 benchmark log datasets, resulting in the average parsing accuracy of our parser being 3.9% higher than that of the best baseline method. Experimental results show that LogSL has superiority in terms of robustness and accuracy. In addition, a case study of anomaly detection is conducted to demonstrate the support of the proposed MPM to system security tasks based on logs.<\/jats:p>","DOI":"10.3233\/ida-230133","type":"journal-article","created":{"date-parts":[[2024,2,2]],"date-time":"2024-02-02T10:45:37Z","timestamp":1706870737000},"page":"1093-1113","source":"Crossref","is-referenced-by-count":5,"title":["Towards robust log parsing using self-supervised learning for system security analysis"],"prefix":"10.1177","volume":"28","author":[{"given":"Jinhui","family":"Cao","sequence":"first","affiliation":[{"name":"School of Computer Science and Technology, Changchun University of Science and Technology, Changchun, Jilin, China"},{"name":"Jilin Province Key Laboratory of Network and Information Security,Changchun University of Science and Technology, Changchun, Jilin, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Xiaoqiang","family":"Di","sequence":"additional","affiliation":[{"name":"School of Computer Science and Technology, Changchun University of Science and Technology, Changchun, Jilin, China"},{"name":"Jilin Province Key Laboratory of Network and Information Security,Changchun University of Science and Technology, Changchun, Jilin, China"},{"name":"Information Center, Changchun University of Science and Technology, Changchun, Jilin, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Xu","family":"Liu","sequence":"additional","affiliation":[{"name":"School of Computer Science and Technology, Changchun University of Science and Technology, Changchun, Jilin, China"},{"name":"Jilin Province Key Laboratory of Network and Information Security,Changchun University of Science and Technology, Changchun, Jilin, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Rui","family":"Xu","sequence":"additional","affiliation":[{"name":"School of Computer Science and Technology, Changchun University of Science and Technology, Changchun, Jilin, China"},{"name":"Jilin Province Key Laboratory of Network and Information Security,Changchun University of Science and Technology, Changchun, Jilin, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jinqing","family":"Li","sequence":"additional","affiliation":[{"name":"School of Computer Science and Technology, Changchun University of Science and Technology, Changchun, Jilin, China"},{"name":"Jilin Province Key Laboratory of Network and Information Security,Changchun University of Science and Technology, Changchun, Jilin, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Weiwu","family":"Ren","sequence":"additional","affiliation":[{"name":"School of Computer Science and Technology, Changchun University of Science and Technology, Changchun, Jilin, China"},{"name":"Jilin Province Key Laboratory of Network and Information Security,Changchun University of Science and Technology, Changchun, Jilin, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Hui","family":"Qi","sequence":"additional","affiliation":[{"name":"School of Computer Science and Technology, Changchun University of Science and Technology, Changchun, Jilin, China"},{"name":"Jilin Province Key Laboratory of Network and Information Security,Changchun University of Science and Technology, Changchun, Jilin, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Pengfei","family":"Hu","sequence":"additional","affiliation":[{"name":"School of Computer Science and Technology, Shandong University, Qingdao, Shandong, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Kehan","family":"Zhang","sequence":"additional","affiliation":[{"name":"School of Computer Science and Technology, Changchun University of Science and Technology, Changchun, Jilin, China"},{"name":"Jilin Province Key Laboratory of Network and Information Security,Changchun University of Science and Technology, Changchun, Jilin, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Bo","family":"Li","sequence":"additional","affiliation":[{"name":"School of Computer Science and Technology, Changchun University of Science and Technology, Changchun, Jilin, China"},{"name":"Jilin Province Key Laboratory of Network and Information Security,Changchun University of Science and Technology, Changchun, Jilin, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"179","reference":[{"key":"10.3233\/IDA-230133_ref1","doi-asserted-by":"publisher","DOI":"10.1145\/2889160.2889231"},{"issue":"10","key":"10.3233\/IDA-230133_ref2","doi-asserted-by":"publisher","first-page":"1819","DOI":"10.1109\/TPDS.2011.294","article-title":"A distributed fault\/intrusion-tolerant sensor data storage scheme based on network coding and homomorphic fingerprinting","volume":"23","author":"Zeng","year":"2012","journal-title":"IEEE Transactions on Parallel and Distributed Systems"},{"issue":"3","key":"10.3233\/IDA-230133_ref3","doi-asserted-by":"publisher","first-page":"879","DOI":"10.1109\/TSE.2020.3007554","article-title":"Logram: Efficient log parsing using n-gram dictionaries","volume":"48","author":"Dai","year":"2022","journal-title":"IEEE Transactions on Software Engineering"},{"issue":"4","key":"10.3233\/IDA-230133_ref4","doi-asserted-by":"publisher","first-page":"68","DOI":"10.1109\/MNET.011.1900385","article-title":"Shadow-Chain: A decentralized storage system for log data","volume":"34","author":"Lu","year":"2020","journal-title":"IEEE Network"},{"issue":"2","key":"10.3233\/IDA-230133_ref5","doi-asserted-by":"publisher","first-page":"174","DOI":"10.1109\/MNET.2018.1700469","article-title":"Attack provenance tracing in cyberspace: Solutions, challenges and future directions","volume":"33","author":"Tan","year":"2019","journal-title":"IEEE Network"},{"key":"10.3233\/IDA-230133_ref6","doi-asserted-by":"publisher","DOI":"10.1145\/3460345"},{"key":"10.3233\/IDA-230133_ref7","doi-asserted-by":"publisher","first-page":"106276","DOI":"10.1016\/j.infsof.2020.106276","article-title":"A systematic literature review on automated log abstraction techniques","volume":"122","author":"El-Masri","year":"2020","journal-title":"Information and Software Technology"},{"issue":"6","key":"10.3233\/IDA-230133_ref8","doi-asserted-by":"publisher","first-page":"931","DOI":"10.1109\/TDSC.2017.2762673","article-title":"Towards automated log parsing for large-scale log data analysis","volume":"15","author":"He","year":"2018","journal-title":"IEEE Transactions on Dependable and Secure Computing"},{"key":"10.3233\/IDA-230133_ref9","doi-asserted-by":"publisher","DOI":"10.1109\/ICDM51629.2021.00077"},{"key":"10.3233\/IDA-230133_ref10","doi-asserted-by":"publisher","first-page":"101618","DOI":"10.1016\/j.is.2020.101618","article-title":"OILog: An online incremental log keyword extraction approach based on MDP-LSTM neural network","volume":"95","author":"Duan","year":"2021","journal-title":"Information Systems"},{"key":"10.3233\/IDA-230133_ref11","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE-SEIP.2019.00021"},{"key":"10.3233\/IDA-230133_ref12","doi-asserted-by":"publisher","DOI":"10.1109\/IPOM.2003.1251233"},{"key":"10.3233\/IDA-230133_ref13","doi-asserted-by":"publisher","DOI":"10.1109\/MSR.2010.5463281"},{"key":"10.3233\/IDA-230133_ref14","doi-asserted-by":"publisher","DOI":"10.1109\/CNSM.2015.7367331"},{"key":"10.3233\/IDA-230133_ref15","doi-asserted-by":"publisher","first-page":"30245","DOI":"10.1109\/ACCESS.","article-title":"Efficient and robust syslog parsing for network devices in datacenter networks","volume":"8","author":"Zhang","year":"2020","journal-title":"IEEE Access"},{"key":"10.3233\/IDA-230133_ref16","doi-asserted-by":"publisher","DOI":"10.1145\/3441448"},{"key":"10.3233\/IDA-230133_ref17","doi-asserted-by":"publisher","DOI":"10.1109\/QSIC.2008.50"},{"key":"10.3233\/IDA-230133_ref18","doi-asserted-by":"publisher","DOI":"10.1145\/1557019.1557154"},{"key":"10.3233\/IDA-230133_ref19","doi-asserted-by":"publisher","DOI":"10.1109\/ICWS.2017.13"},{"key":"10.3233\/IDA-230133_ref20","doi-asserted-by":"publisher","DOI":"10.1109\/ICDM.2009.60"},{"key":"10.3233\/IDA-230133_ref21","doi-asserted-by":"publisher","DOI":"10.1145\/2983323.2983358"},{"key":"10.3233\/IDA-230133_ref22","doi-asserted-by":"publisher","DOI":"10.1145\/2063576.2063690"},{"key":"10.3233\/IDA-230133_ref23","doi-asserted-by":"publisher","DOI":"10.1109\/INFOCOM.2014.6847986"},{"key":"10.3233\/IDA-230133_ref24","doi-asserted-by":"publisher","DOI":"10.1109\/SCC.2013.73"},{"issue":"11","key":"10.3233\/IDA-230133_ref26","doi-asserted-by":"publisher","first-page":"2213","DOI":"10.1109\/TKDE.2018.2875442","article-title":"Spell: Online streaming parsing of large unstructured system logs","volume":"31","author":"Du","year":"2019","journal-title":"IEEE Transactions on Knowledge and Data Engineering"},{"issue":"1","key":"10.3233\/IDA-230133_ref27","doi-asserted-by":"publisher","first-page":"135","DOI":"10.1186\/s13638-019-1430-4","article-title":"An online log template extraction method based on hierarchical clustering","volume":"2019","author":"Yang","year":"2019","journal-title":"EURASIP Journal on Wireless Communications and Networking"},{"key":"10.3233\/IDA-230133_ref28","doi-asserted-by":"publisher","DOI":"10.1145\/2619287.2619290"},{"key":"10.3233\/IDA-230133_ref29","doi-asserted-by":"publisher","DOI":"10.1109\/ISDFS.2017.7916497"},{"issue":"3","key":"10.3233\/IDA-230133_ref30","doi-asserted-by":"publisher","first-page":"e2426","DOI":"10.1002\/smr.2426","article-title":"FlexParser \u2013 The adaptive log file parser for continuous results in a changing world","volume":"34","author":"R\u00fccker","year":"2022","journal-title":"Journal of Software: Evolution and Process"},{"key":"10.3233\/IDA-230133_ref31","doi-asserted-by":"publisher","DOI":"10.1145\/3485447.3511993"},{"issue":"1","key":"10.3233\/IDA-230133_ref34","first-page":"7184","article-title":"Neural autoregressive distribution estimation","volume":"17","author":"Uria","year":"2016","journal-title":"J. Mach. Learn. Res"},{"issue":"8","key":"10.3233\/IDA-230133_ref36","doi-asserted-by":"publisher","first-page":"1735","DOI":"10.1162\/neco.1997.9.8.1735","article-title":"Long short-term memory","volume":"9","author":"Hochreiter","year":"1997","journal-title":"Neural Computation"},{"key":"10.3233\/IDA-230133_ref40","doi-asserted-by":"publisher","DOI":"10.3115\/v1\/D14-1179"},{"key":"10.3233\/IDA-230133_ref41","unstructured":"X. Zhu, P. Sobhani and H. Guo, Long Short-Term Memory over Recursive Structures, in: Proceedings of the 32nd International Conference on International Conference on Machine Learning \u2013 Volume 37, 2015, pp.\u00a01604\u20131612."},{"issue":"11","key":"10.3233\/IDA-230133_ref42","doi-asserted-by":"publisher","first-page":"1885","DOI":"10.1109\/TCSII.2019.2924663","article-title":"Economic LSTM approach for recurrent neural networks","volume":"66","author":"Khalil","year":"2019","journal-title":"IEEE Transactions on Circuits and Systems II: Express Briefs"},{"key":"10.3233\/IDA-230133_ref44","doi-asserted-by":"publisher","DOI":"10.1109\/DSN.2016.66"},{"key":"10.3233\/IDA-230133_ref45","doi-asserted-by":"publisher","DOI":"10.1109\/ICICT50521.2020.00045"},{"key":"10.3233\/IDA-230133_ref46","doi-asserted-by":"publisher","DOI":"10.1109\/MASCOTS.2018.00031"}],"container-title":["Intelligent Data Analysis"],"original-title":[],"link":[{"URL":"https:\/\/content.iospress.com\/download?id=10.3233\/IDA-230133","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,4,29]],"date-time":"2026-04-29T09:20:31Z","timestamp":1777454431000},"score":1,"resource":{"primary":{"URL":"https:\/\/journals.sagepub.com\/doi\/full\/10.3233\/IDA-230133"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,7,17]]},"references-count":38,"journal-issue":{"issue":"4"},"URL":"https:\/\/doi.org\/10.3233\/ida-230133","relation":{},"ISSN":["1088-467X","1571-4128"],"issn-type":[{"value":"1088-467X","type":"print"},{"value":"1571-4128","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,7,17]]}}}