| CPC G06F 16/1734 (2019.01) [G06F 16/906 (2019.01)] | 4 Claims |

|
1. A method of storing and parsing log data by a terminal including a plurality of parsers for analyzing the log data, the method comprising:
collecting a plurality of pieces of log data on the basis of file paths of the plurality of pieces of log data;
storing a plurality of pieces of metadata including the file paths and the plurality of pieces of log data paired with the plurality of pieces of metadata in a database (DB) stored in a memory of the terminal;
classifying log data among the plurality of pieces of log data on the basis of metadata paired with the log data among the plurality of pieces of metadata and determining whether type information of a parser for analyzing the log data among the plurality of parsers is acquired on the basis of a preset mapping file; and
parsing the log data through the parser having the acquired type information when the type information of the parser among the plurality of parsers is acquired on the basis of the preset mapping file,
wherein the mapping file includes (i) regular expression information matched to the file path and (ii) the type information of the parser mapped to the regular expression information,
wherein the acquiring of the type information of the parser comprises acquiring information of the file path from the metadata paired with the log data and acquiring the type information of the parser based on the regular expression information matched to the file path,
wherein the regular expression information indicates a folder name representing a generation environment of the log data in the file path,
wherein the method further comprises parsing the log data through all of the plurality of parsers when the type information of the parser is not acquired on the basis of the mapping file, and
wherein the parsing of the log data through all of the plurality of parsers further comprises adding type information of a parser showing best performance as a result of parsing the log data among all of the plurality of parsers to the mapping file.
|