WO2016177047A1 - Log display method and device - Google Patents

Log display method and device Download PDF

Info

Publication number
WO2016177047A1
WO2016177047A1 PCT/CN2016/075217 CN2016075217W WO2016177047A1 WO 2016177047 A1 WO2016177047 A1 WO 2016177047A1 CN 2016075217 W CN2016075217 W CN 2016075217W WO 2016177047 A1 WO2016177047 A1 WO 2016177047A1
Authority
WO
WIPO (PCT)
Prior art keywords
log
sector area
logs
module
statistical result
Prior art date
Application number
PCT/CN2016/075217
Other languages
French (fr)
Chinese (zh)
Inventor
黄媛媛
汪德彬
李庆
罗波
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016177047A1 publication Critical patent/WO2016177047A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs

Definitions

  • This document relates to the field of log management technology, and in particular to a method and device for displaying logs.
  • the object of the present invention is to provide a log display method and device, which can provide more intuitive log data and more convenient operation mode for audit analysis.
  • a method of displaying logs including:
  • the statistical results are displayed using the sunburst map.
  • the statistical result obtained by hierarchically collecting the obtained logs is organized according to a json string, wherein each json object represents a log type, and statistics of the lowest log type of the log are obtained. Is the number of logs counted by day.
  • the sunburst map is a multi-layer hollow pie chart based on D3 technology, the level of which corresponds to the level of the log, and the sector area in each layer corresponds to the log type;
  • the step of adding the statistical result to a sunburst chart includes: dividing, according to the statistical result, a hierarchy of the sunburst map, a number of sector regions in each layer, and a size of each sector region; After the division is completed, the statistical results are respectively added to the corresponding sector regions.
  • the step of displaying the statistical result by using the sunburst map comprises:
  • a log type corresponding to the sector area and the scale result are displayed.
  • the step of displaying the statistical result by using the sunburst map comprises:
  • the number of logs of the log type corresponding to the sector area is obtained every day;
  • the histogram is displayed.
  • the step of displaying the statistical result by using the sunburst map comprises:
  • a query condition is generated, where the query condition is a log type corresponding to the sector area;
  • the step of displaying the statistical result by using the sunburst map comprises:
  • the sector area and the sector area of the upper layer are treated as highlights, and other sector areas are faded; and/or
  • the hierarchical path information of the sector area is displayed, and the hierarchical path information is a log type corresponding to the sector area and an upper layer log type thereof.
  • the log is an operation log, a security log, or a system log.
  • a log display device includes a statistics module, an add module, and a display module, wherein
  • the statistic module is configured to: perform hierarchical statistics on the obtained logs to obtain a statistical result
  • the adding module is configured to: add the statistical result to a sunburst chart
  • the display module is configured to: display the statistical result by using the sunday map.
  • the statistical result obtained by hierarchically collecting the obtained logs is organized according to a json string, wherein each json object represents a log type, and statistics of the lowest log type of the log are obtained. Is the number of logs counted by day.
  • the sunburst map is a multi-layer hollow pie chart based on D3 technology, the level of which corresponds to the level of the log, and the sector area in each layer corresponds to the log type;
  • the adding module includes a dividing submodule and an adding submodule, wherein:
  • the dividing sub-module is configured to: according to the statistical result, divide a hierarchy of the sunburst map, a number of sector regions in each layer, and a size of each sector region;
  • the adding submodule is configured to: after the dividing submodule is divided, add the statistical result to the corresponding sector area.
  • the display module includes a first acquisition module, a calculation module, and a first display module, where
  • the first obtaining module is configured to: after selecting a sector area, obtain a log quantity of a log type corresponding to the sector area;
  • the calculating module is configured to: calculate a ratio of the number of logs to a total number of logs, to obtain a proportional result;
  • the first display module is configured to display a log type corresponding to the sector area and the proportional result.
  • the display module includes a second acquisition module, a first generation module, and a second display module, where
  • the second obtaining module is configured to: after selecting a sector area, obtain a log quantity of a log type corresponding to the sector area every day;
  • the first generating module is configured to: generate a histogram according to the number of logs of the daily log type corresponding to the sector area, wherein the histogram is used to represent each day and the sector The number of logs of the log type corresponding to the zone;
  • the second display module is configured to display the histogram.
  • the display module includes a second generation module and a third display module, where
  • the second generation module is configured to: after selecting a sector area, generate a query condition, where the query condition is a log type corresponding to the sector area;
  • the third display module is configured to display all logs related to the query condition.
  • the display module includes a processing module and a fourth display module, where
  • the processing module is configured to: after selecting a sector area, process the sector area and the sector area of the upper layer to be highlighted, and other sector areas to be faded; and/or
  • the fourth display module is configured to: display hierarchical path information of the sector area, where the hierarchical path information is a log type corresponding to the sector area and an upper layer log type.
  • the log is an operation log, a security log, or a system log.
  • the method and device for displaying the log of the technical solution of the present invention obtains a statistical result by hierarchically collecting the obtained log, and adds the statistical result to a sunburst chart to use the sunburst chart to compare the statistics.
  • the results are displayed, which can provide more intuitive log data and more convenient operation mode for audit analysis.
  • the statistical results are more intuitive, not only reflecting the log level and log trend, but also obtaining corresponding query results. More sexual.
  • FIG. 1 is a flow chart showing a method for displaying a log according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a log display apparatus according to an embodiment of the present invention.
  • Figure 3 is a diagram showing the results of an operation log of a specific embodiment of the present invention.
  • Figure 4 is a diagram showing a sunburst of a specific embodiment of the present invention.
  • an embodiment of the present invention provides a method for displaying a log, which is used in a log management system, and includes:
  • S101 Perform hierarchical statistics on the obtained logs to obtain a statistical result.
  • the method for displaying the log in the embodiment of the present invention obtains a statistical result by hierarchically collecting the obtained log, and adds the statistical result to a sunburst chart to perform the statistical result by using the sunday chart. Demonstration can provide more intuitive log-related data and more convenient operation for audit analysis.
  • the logs to be managed are generally operation logs, security logs, or system logs.
  • the step of performing hierarchical statistics on the obtained log includes: performing statistics on the acquired logs according to three levels: level, operation, and command code; when the log is secure
  • the step of performing hierarchical statistics on the obtained logs includes: performing statistics on the acquired logs according to the user and the log name; and when the logs are system logs, the obtained logs are classified.
  • the step of layer statistics includes: counting the acquired logs according to the level, the log source, and the log name.
  • the present invention is not limited thereto, and an appropriate selection can be made according to requirements.
  • the statistical result obtained by hierarchically counting logs is organized according to a json string, wherein each json object represents a log type, and statistics of the lowest log type of the log
  • the result is not the total number of logs, but the number of logs counted by day, based on time conditions.
  • an operation log is taken as an example to introduce the specific form of the statistical result.
  • the operation log is counted according to three levels: level, operation, and command code.
  • the time condition is the operation log of the last 7 days, and the statistical result of the lowest log type is an array of length 7.
  • the first layer log type of the statistical result of the operation log includes level 4 and level 3;
  • the second layer of log types includes polling management and modifying topology objects; under polling management, the third (lowest) log type includes an operation polling task interface, and the operation polling task interface
  • the statistical result is an array of length [5, 10, 30, 13, 5, 9, 6]; at the same time, under the modified topology object, the third layer log type includes modifying the topology node and modifying the topology link, and its statistics
  • the results are [1,1,3,3,5,7,6] and [15,10,3,1,5,9,6];
  • the second layer of log types includes role management.
  • the third layer of log types includes new roles and modified roles.
  • the statistics are [5,6,3,1,6,15,3 respectively. ] and [10,1,0,13,5,6,0].
  • the sunburst map is a multi-layer hollow pie chart based on the D3 technology, the level of which corresponds to the level of the log, and the sector area in each layer corresponds to the log type for effective display. statistical results.
  • the D3 technology is a JavaScript library based on data manipulation documents that makes the display of data more vivid by using HTML, SVG and CSS technologies.
  • the steps of adding the statistical result to a sunburst chart include:
  • each sector area may be set to a certain extent.
  • statistical results related to the log type corresponding to the sector area may be displayed.
  • the number of logs of the log type corresponding to the sector area accounts for the ratio of the total number of logs, the daily change of the number of logs of the log type corresponding to the sector area, and the like.
  • the certain setting is, for example, adding a mouse hover event to each sector, and when the mouse is stuck in a sector, the sector is selected, that is, a trigger event.
  • the step of displaying the statistical result by using the sunburst map includes:
  • a log type corresponding to the sector area and the scale result are displayed.
  • the log type corresponding to the sector area and the proportional result are, for example, displayed in a hollow position of the sunburst map for the user to know.
  • the step of displaying the statistical result by using the sunburst map may further include:
  • the number of logs of the log type corresponding to the sector area is obtained every day;
  • the histogram is displayed.
  • the histogram is displayed, for example, on the right side of the sunburst chart, which is convenient for the user to observe.
  • the step of displaying the statistical result by using the sunburst map may further include:
  • a query condition is generated, where the query condition is a log type corresponding to the sector area;
  • the statistics function and the query function are associated, and all related logs can be queried in the statistics interface to avoid returning to the query interface.
  • the query result is displayed, for example, below the sunburst chart, so that the user can know the result of the query.
  • the step of displaying the statistical result by using the sunburst map may further include:
  • the sector area and the sector area of the upper layer are treated as highlights, and other sector areas are faded; and/or
  • the hierarchical path information of the sector area is displayed, and the hierarchical path information is a log type corresponding to the sector area and an upper layer log type thereof.
  • the hierarchical path information of the sector area is displayed, for example, by breadcrumbs below the sunburst map, and the ratio information of the log type of the log type corresponding to the sector area and the total number of logs may be displayed on the breadcrumbs. position.
  • FIG. 3 there is shown a graph showing the results of an operation log of a specific embodiment of the present invention.
  • the result graph of Fig. 3 in addition to the sunburst map on the left side, the result of the log type "query user and department" log count as the total number of logs is displayed in the hollow position of the sunburst chart, in the sunburst chart On the right side, the histogram shows the daily change of the log type of the query type "Query User and Department" in the last 30 days.
  • the query result of the query condition is "Query User and Department” is displayed in the table below the Rising Sun chart.
  • the hierarchical path information corresponding to "query user and department” is displayed by breadcrumbs.
  • the embodiment of the present invention further provides a log display device, which is used in the log management system, and corresponds to the log display method of FIG.
  • the statistics module 21 is configured to: perform hierarchical statistics on the obtained logs to obtain a statistical result
  • the adding module 22 is configured to: add the statistical result to a sunburst chart
  • the display module 23 is configured to: display the statistical result by using the sunday map.
  • the log display device of the embodiment of the present invention obtains a statistical result by hierarchically collecting the obtained log, and adds the statistical result to a sunburst chart to perform the statistical result by using the sunburst chart. Demonstration can provide more intuitive log-related data and more convenient operation for audit analysis.
  • the logs to be managed are generally operation logs, security logs, or system logs.
  • the statistical result obtained by hierarchically counting logs is organized according to a json string, wherein each json object represents a log type, and the statistical result of the lowest level type of the log It is not the total number of logs, but the number of logs counted by day based on time conditions.
  • the sunburst map is a multi-layer hollow pie chart based on the D3 technology, the level of which corresponds to the level of the log, and the fan-shaped area in each layer corresponds to a log type;
  • the adding module includes:
  • Dividing the sub-module the method is: dividing, according to the statistical result, a hierarchy of the sunburst map, a number of sector regions in each layer, and a size of each sector region;
  • Add a submodule and set it to: after the division is completed, add the statistical result to the corresponding sector area.
  • each sector area may be set to a certain extent.
  • statistical results related to the log type corresponding to the sector area may be displayed.
  • the number of logs of the log type corresponding to the sector area accounts for the ratio of the total number of logs, the daily change of the number of logs of the log type corresponding to the sector area, and the like.
  • the display module includes:
  • the first obtaining module is configured to: after selecting a sector area, obtain a log quantity of a log type corresponding to the sector area;
  • a calculation module configured to: calculate a ratio of the number of logs to a total number of logs, to obtain a proportional result
  • the first display module is configured to: display a log type corresponding to the sector area and the scale result.
  • the display module further includes:
  • the second obtaining module is configured to: after selecting a sector area, obtain a log quantity of a log type corresponding to the sector area every day;
  • a first generating module configured to: generate a histogram according to the number of logs of the log type corresponding to the sector corresponding to the daily, the histogram is used to indicate a log type corresponding to the sector area of each day Number of logs;
  • the second display module is configured to: display the histogram.
  • the display module further includes:
  • the second generation module is configured to: after selecting a sector area, generate a query condition, where the query condition is a log type corresponding to the sector area;
  • the third display module is configured to: display all logs related to the query condition.
  • the display module further includes:
  • the processing module is configured to: after selecting a sector area, process the sector area and the sector area of the upper layer to be highlighted, and the other sector areas are desalination; and/or
  • the fourth display module is configured to: display hierarchical path information of the sector area, where the hierarchical path information is a log type corresponding to the sector area and an upper layer log type.
  • the embodiment of the invention further discloses a computer program, comprising program instructions, when the program instruction is executed by the terminal, so that the terminal can execute the display method of any of the foregoing logs.
  • the embodiment of the invention also discloses a carrier carrying the computer program.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the method and device for displaying the log of the technical solution of the present invention obtains a statistical result by hierarchically collecting the obtained log, and adds the statistical result to a sunburst chart to use the sunburst chart to compare the statistics.
  • the results are displayed, which can provide more intuitive log data and more convenient operation mode for audit analysis.
  • the statistical results are more intuitive, not only reflecting the log level and log trend, but also obtaining corresponding query results. It is more sexual, so the invention has strong industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A log display method and device. The log display method comprises: hierarchically and statistically analyzing obtained logs to obtain a statistical result (S101); adding the statistical result to a sunburst chart (S102); and displaying the statistical result by utilizing the sunburst chart (S103). The method provides a more intuitive way to present log-related data and a convenient operation mode for audit analysis by hierarchically and statistically analyzing the obtained logs to obtain a statistical result and adding the statistical result to a sunburst chart so as to utilize the sunburst chart to display the statistical result.

Description

一种日志的展示方法及装置Method and device for displaying log 技术领域Technical field
本文涉及日志管理技术领域,特别是涉及一种日志的展示方法及装置。This document relates to the field of log management technology, and in particular to a method and device for displaying logs.
背景技术Background technique
目前,在政企、网管领域的日志管理系统存在如下问题:At present, the log management system in the government, enterprise, and network management fields has the following problems:
(1)大多数的日志管理系统没有统计功能,一般使用表格来呈现日志查询结果;(1) Most log management systems do not have statistical functions, and generally use tables to present log query results;
(2)对于少数的支持统计功能的日志管理系统,其统计结果仅是通过表格中的数字来展示,结果展示不直观,用户需要仔细查看数据,才能感知到统计结果;而且,统计数据只有日志的数量信息,看不到日志的周期趋势,对于日志审计分析很不方便;(2) For a small number of log management systems that support statistical functions, the statistical results are only displayed by the numbers in the table. The results are not intuitive. Users need to carefully check the data to be able to perceive the statistical results. Moreover, the statistics only have logs. The quantity information, the periodic trend of the log is not seen, and it is inconvenient for the log audit analysis;
(3)统计功能和查询功能是分离的,用户在统计界面查看了统计数据之后,如果要查看与统计数据对应的日志记录,需要返回查询界面,设置对应的查询条件来查询日志,操作步骤多且繁琐;(3) The statistics function and the query function are separated. After viewing the statistics data on the statistics interface, if you want to view the log records corresponding to the statistics, you need to return to the query interface, set the corresponding query conditions to query the logs, and the operation steps are many. And cumbersome;
(4)相关技术的日志管理系统的统计结果是扁平的,没有层次关系,如果要分析某一用户的操作是否存在异常,需要先分析用户,再分析这个用户所做的所有操作,分析效率低。(4) The statistical results of the related art log management system are flat and have no hierarchical relationship. If it is necessary to analyze whether a user's operation has an abnormality, it is necessary to analyze the user first, and then analyze all operations performed by the user, and the analysis efficiency is low. .
发明内容Summary of the invention
本发明的目的在于提供一种日志的展示方法及装置,能够为审计分析提供更加直观的有关日志的数据和更方便的操作方式。The object of the present invention is to provide a log display method and device, which can provide more intuitive log data and more convenient operation mode for audit analysis.
为了实现上述的目的,采用如下技术方案:In order to achieve the above objectives, the following technical solutions are adopted:
一种日志的展示方法,包括:A method of displaying logs, including:
对获取的日志进行分层统计,得到一统计结果;Perform hierarchical statistics on the obtained logs to obtain a statistical result;
将所述统计结果添加到一旭日图中;Adding the statistical result to a rising sun chart;
利用所述旭日图对所述统计结果进行展示。 The statistical results are displayed using the sunburst map.
可选地,对获取的日志进行分层统计得到的所述统计结果是按照json字符串形式组织的,其中的每个json对象代表一种日志类型,所述日志的最底层日志类型的统计结果是按天统计的日志数量。Optionally, the statistical result obtained by hierarchically collecting the obtained logs is organized according to a json string, wherein each json object represents a log type, and statistics of the lowest log type of the log are obtained. Is the number of logs counted by day.
可选地,所述旭日图是一个基于D3技术的多层空心饼图,其层次与所述日志的层次相对应,每层中的扇形区域是与日志类型对应的;Optionally, the sunburst map is a multi-layer hollow pie chart based on D3 technology, the level of which corresponds to the level of the log, and the sector area in each layer corresponds to the log type;
所述将所述统计结果添加到一旭日图中的步骤包括:根据所述统计结果,对所述旭日图的层次、每层中的扇形区域的数量及每个扇形区域的大小进行划分;在划分完成后,将所述统计结果分别添加到对应的扇形区域。The step of adding the statistical result to a sunburst chart includes: dividing, according to the statistical result, a hierarchy of the sunburst map, a number of sector regions in each layer, and a size of each sector region; After the division is completed, the statistical results are respectively added to the corresponding sector regions.
可选地,所述利用所述旭日图对所述统计结果进行展示的步骤包括:Optionally, the step of displaying the statistical result by using the sunburst map comprises:
在选中一扇形区域后,获取与所述扇形区域对应的日志类型的日志数量;After a sector area is selected, the number of logs of the log type corresponding to the sector area is obtained;
计算所述日志数量与日志总数量的比例,得到一比例结果;Calculating the ratio of the number of logs to the total number of logs, and obtaining a proportional result;
显示与所述扇形区域对应的日志类型及所述比例结果。A log type corresponding to the sector area and the scale result are displayed.
可选地,所述利用所述旭日图对所述统计结果进行展示的步骤包括:Optionally, the step of displaying the statistical result by using the sunburst map comprises:
在选中一扇形区域后,获取每天的与所述扇形区域对应的日志类型的日志数量;After a sector area is selected, the number of logs of the log type corresponding to the sector area is obtained every day;
依据所述每天的与所述扇形区域对应的日志类型的日志数量,生成一柱状图,所述柱状图用于表示每一天的与所述扇形区域对应的日志类型的日志数量;And generating, according to the number of logs of the log type corresponding to the sector area, the number of logs of the log type corresponding to the sector area of each day;
显示所述柱状图。The histogram is displayed.
可选地,所述利用所述旭日图对所述统计结果进行展示的步骤包括:Optionally, the step of displaying the statistical result by using the sunburst map comprises:
在选中一扇形区域后,生成一查询条件,所述查询条件为与所述扇形区域对应的日志类型;After a sector area is selected, a query condition is generated, where the query condition is a log type corresponding to the sector area;
显示与所述查询条件相关的所有日志。Displays all logs related to the query criteria.
可选地,所述利用所述旭日图对所述统计结果进行展示的步骤包括:Optionally, the step of displaying the statistical result by using the sunburst map comprises:
在选中一扇形区域后,将所述扇形区域及其上层的扇形区域处理为高亮,其他扇形区域做淡化处理;和/或After selecting a sector area, the sector area and the sector area of the upper layer are treated as highlights, and other sector areas are faded; and/or
显示所述扇形区域的层次路径信息,所述层次路径信息为与所述扇形区域对应的日志类型及其上层日志类型。The hierarchical path information of the sector area is displayed, and the hierarchical path information is a log type corresponding to the sector area and an upper layer log type thereof.
可选地,所述日志为操作日志、安全日志或系统日志。 Optionally, the log is an operation log, a security log, or a system log.
一种日志的展示装置,包括统计模块、添加模块和展示模块,其中A log display device includes a statistics module, an add module, and a display module, wherein
所述统计模块设置成:对获取的日志进行分层统计,得到一统计结果;The statistic module is configured to: perform hierarchical statistics on the obtained logs to obtain a statistical result;
所述添加模块设置成:将所述统计结果添加到一旭日图中;The adding module is configured to: add the statistical result to a sunburst chart;
所述展示模块设置成:利用所述旭日图对所述统计结果进行展示。The display module is configured to: display the statistical result by using the sunday map.
可选地,对获取的日志进行分层统计得到的所述统计结果是按照json字符串形式组织的,其中的每个json对象代表一种日志类型,所述日志的最底层日志类型的统计结果是按天统计的日志数量。Optionally, the statistical result obtained by hierarchically collecting the obtained logs is organized according to a json string, wherein each json object represents a log type, and statistics of the lowest log type of the log are obtained. Is the number of logs counted by day.
可选地,所述旭日图是一个基于D3技术的多层空心饼图,其层次与所述日志的层次相对应,每层中的扇形区域是与日志类型对应的;Optionally, the sunburst map is a multi-layer hollow pie chart based on D3 technology, the level of which corresponds to the level of the log, and the sector area in each layer corresponds to the log type;
所述添加模块包括划分子模块和添加子模块,其中:The adding module includes a dividing submodule and an adding submodule, wherein:
所述划分子模块设置成:根据所述统计结果,对所述旭日图的层次、每层中的扇形区域的数量及每个扇形区域的大小进行划分;The dividing sub-module is configured to: according to the statistical result, divide a hierarchy of the sunburst map, a number of sector regions in each layer, and a size of each sector region;
所述添加子模块设置成:在所述划分子模块划分完成后,将所述统计结果分别添加到对应的扇形区域。The adding submodule is configured to: after the dividing submodule is divided, add the statistical result to the corresponding sector area.
可选地,所述展示模块包括第一获取模块、计算模块和第一显示模块,其中Optionally, the display module includes a first acquisition module, a calculation module, and a first display module, where
所述第一获取模块设置成:在选中一扇形区域后,获取与所述扇形区域对应的日志类型的日志数量;The first obtaining module is configured to: after selecting a sector area, obtain a log quantity of a log type corresponding to the sector area;
所述计算模块设置成:计算所述日志数量与日志总数量的比例,得到一比例结果;The calculating module is configured to: calculate a ratio of the number of logs to a total number of logs, to obtain a proportional result;
所述第一显示模块设置成:显示与所述扇形区域对应的日志类型及所述比例结果。The first display module is configured to display a log type corresponding to the sector area and the proportional result.
可选地,所述展示模块包括第二获取模块、第一生成模块和第二显示模块,其中Optionally, the display module includes a second acquisition module, a first generation module, and a second display module, where
所述第二获取模块设置成:在选中一扇形区域后,获取每天的与所述扇形区域对应的日志类型的日志数量;The second obtaining module is configured to: after selecting a sector area, obtain a log quantity of a log type corresponding to the sector area every day;
所述第一生成模块设置成:依据所述每天的与所述扇形区域对应的日志类型的日志数量,生成一柱状图,所述柱状图用于表示每一天的与所述扇形 区域对应的日志类型的日志数量;The first generating module is configured to: generate a histogram according to the number of logs of the daily log type corresponding to the sector area, wherein the histogram is used to represent each day and the sector The number of logs of the log type corresponding to the zone;
所述第二显示模块设置成:显示所述柱状图。The second display module is configured to display the histogram.
可选地,所述展示模块包括第二生成模块和第三显示模块,其中Optionally, the display module includes a second generation module and a third display module, where
所述第二生成模块设置成:在选中一扇形区域后,生成一查询条件,所述查询条件为与所述扇形区域对应的日志类型;The second generation module is configured to: after selecting a sector area, generate a query condition, where the query condition is a log type corresponding to the sector area;
所述第三显示模块设置成:显示与所述查询条件相关的所有日志。The third display module is configured to display all logs related to the query condition.
可选地,所述展示模块包括处理模块和第四显示模块,其中Optionally, the display module includes a processing module and a fourth display module, where
所述处理模块设置成:在选中一扇形区域后,将所述扇形区域及其上层的扇形区域处理为高亮,其他扇形区域做淡化处理;和/或The processing module is configured to: after selecting a sector area, process the sector area and the sector area of the upper layer to be highlighted, and other sector areas to be faded; and/or
所述第四显示模块设置成:显示所述扇形区域的层次路径信息,所述层次路径信息为与所述扇形区域对应的日志类型及其上层日志类型。The fourth display module is configured to: display hierarchical path information of the sector area, where the hierarchical path information is a log type corresponding to the sector area and an upper layer log type.
可选地,所述日志为操作日志、安全日志或系统日志。Optionally, the log is an operation log, a security log, or a system log.
通过本发明的上述技术方案,本发明的有益效果在于:Through the above technical solutions of the present invention, the beneficial effects of the present invention are:
本发明技术方案的日志的展示方法及装置,通过对获取的日志进行分层统计,得到一统计结果,并将所述统计结果添加到一旭日图中,以利用所述旭日图对所述统计结果进行展示,能够为审计分析提供更加直观的有关日志的数据和更方便的操作方式,同时使得统计结果更直观,不仅体现出日志的层次及日志的变化趋势,还得到相应的查询结果,实用性更强。The method and device for displaying the log of the technical solution of the present invention obtains a statistical result by hierarchically collecting the obtained log, and adds the statistical result to a sunburst chart to use the sunburst chart to compare the statistics. The results are displayed, which can provide more intuitive log data and more convenient operation mode for audit analysis. At the same time, the statistical results are more intuitive, not only reflecting the log level and log trend, but also obtaining corresponding query results. More sexual.
附图概述BRIEF abstract
图1表示本发明实施例的日志的展示方法的流程图。FIG. 1 is a flow chart showing a method for displaying a log according to an embodiment of the present invention.
图2表示本发明实施例的日志的展示装置的结构示意图。FIG. 2 is a schematic structural diagram of a log display apparatus according to an embodiment of the present invention.
图3表示本发明具体实施例的一操作日志的展示结果图。Figure 3 is a diagram showing the results of an operation log of a specific embodiment of the present invention.
图4表示本发明具体实施例的一旭日图。Figure 4 is a diagram showing a sunburst of a specific embodiment of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
下面将结合附图对具体实施例进行详细描述。The specific embodiments will be described in detail below with reference to the accompanying drawings.
参阅图1所示,本发明实施例提供一种日志的展示方法,用于日志管理系统,包括:As shown in FIG. 1 , an embodiment of the present invention provides a method for displaying a log, which is used in a log management system, and includes:
S101:对获取的日志进行分层统计,得到一统计结果;S101: Perform hierarchical statistics on the obtained logs to obtain a statistical result.
S102:将所述统计结果添加到一旭日图中;S102: Add the statistical result to a sunburst chart;
S103:利用所述旭日图对所述统计结果进行展示。S103: Display the statistical result by using the sunburst chart.
本发明实施例的日志的展示方法,通过对获取的日志进行分层统计,得到一统计结果,并将所述统计结果添加到一旭日图中,以利用所述旭日图对所述统计结果进行展示,能够为审计分析提供更加直观的有关日志的数据和更方便的操作方式。The method for displaying the log in the embodiment of the present invention obtains a statistical result by hierarchically collecting the obtained log, and adds the statistical result to a sunburst chart to perform the statistical result by using the sunday chart. Demonstration can provide more intuitive log-related data and more convenient operation for audit analysis.
实际应用中,需要管理的日志一般为操作日志、安全日志或系统日志。具体的,当所述日志为操作日志时,所述对获取的日志进行分层统计的步骤包括:对获取的日志按照级别、操作和命令码三个层次来进行统计;当所述日志为安全日志时,所述对获取的日志进行分层统计的步骤包括:对获取的日志按照用户和日志名称两个层次来进行统计;当所述日志为系统日志时,所述对获取的日志进行分层统计的步骤包括:对获取的日志按照级别、日志来源和日志名称三个层次来进行统计。但本发明不以此为限,可依据需求进行适当的选择。In actual applications, the logs to be managed are generally operation logs, security logs, or system logs. Specifically, when the log is an operation log, the step of performing hierarchical statistics on the obtained log includes: performing statistics on the acquired logs according to three levels: level, operation, and command code; when the log is secure In the case of the log, the step of performing hierarchical statistics on the obtained logs includes: performing statistics on the acquired logs according to the user and the log name; and when the logs are system logs, the obtained logs are classified. The step of layer statistics includes: counting the acquired logs according to the level, the log source, and the log name. However, the present invention is not limited thereto, and an appropriate selection can be made according to requirements.
在本发明具体实施例中,对日志进行分层统计得到的统计结果是按照json字符串形式组织的,其中的每个json对象代表一种日志类型,且所述日志的最底层日志类型的统计结果并不是日志总数量,而是根据时间条件,按天统计的日志数量。In a specific embodiment of the present invention, the statistical result obtained by hierarchically counting logs is organized according to a json string, wherein each json object represents a log type, and statistics of the lowest log type of the log The result is not the total number of logs, but the number of logs counted by day, based on time conditions.
下面,以一操作日志为例,介绍其统计结果的具体形式。其中,所述操作日志是按照级别、操作和命令码三个层次来进行统计,所述时间条件是最近7天的操作日志,最底层日志类型的统计结果是一个长度为7的数组。In the following, an operation log is taken as an example to introduce the specific form of the statistical result. The operation log is counted according to three levels: level, operation, and command code. The time condition is the operation log of the last 7 days, and the statistical result of the lowest log type is an array of length 7.
具体的,得到的统计结果是按照json字符串形式组织的,如下表1: Specifically, the obtained statistical results are organized in the form of json strings, as shown in Table 1:
Figure PCTCN2016075217-appb-000001
Figure PCTCN2016075217-appb-000001
表1Table 1
根据上述表1可知:According to Table 1 above, it can be known that:
所述操作日志的统计结果的第一层日志类型包括级别4和级别3;The first layer log type of the statistical result of the operation log includes level 4 and level 3;
在级别4下,第二层日志类型包括轮询管理和修改拓扑对象;在轮询管理下,第三层(最底层)日志类型包括操作轮询任务界面,而所述操作轮询任务界面的统计结果是一个长度为7的数组[15,10,30,13,5,9,6];同时,在修改拓扑对象下,第三层日志类型包括修改拓扑节点和修改拓扑链路,其统计结果分别为[1,1,3,3,5,7,6]和[15,10,3,1,5,9,6];At level 4, the second layer of log types includes polling management and modifying topology objects; under polling management, the third (lowest) log type includes an operation polling task interface, and the operation polling task interface The statistical result is an array of length [5, 10, 30, 13, 5, 9, 6]; at the same time, under the modified topology object, the third layer log type includes modifying the topology node and modifying the topology link, and its statistics The results are [1,1,3,3,5,7,6] and [15,10,3,1,5,9,6];
在级别3下,第二层日志类型包括角色管理;在角色管理下,第三层日志类型包括新建角色和修改角色,其统计结果分别为[5,6,3,1,6,15,3]和[10,1,0,13,5,6,0]。 In level 3, the second layer of log types includes role management. Under role management, the third layer of log types includes new roles and modified roles. The statistics are [5,6,3,1,6,15,3 respectively. ] and [10,1,0,13,5,6,0].
在本发明具体实施例中,旭日图是一个基于D3技术的多层空心饼图,其层次与所述日志的层次相对应,每层中的扇形区域是与日志类型对应的,以有效的展示统计结果。所述D3技术是一个基于数据操作文档的JavaScript库,其通过使用HTML、SVG和CSS技术,使数据的显示更生动。In a specific embodiment of the present invention, the sunburst map is a multi-layer hollow pie chart based on the D3 technology, the level of which corresponds to the level of the log, and the sector area in each layer corresponds to the log type for effective display. statistical results. The D3 technology is a JavaScript library based on data manipulation documents that makes the display of data more vivid by using HTML, SVG and CSS technologies.
基于上述的旭日图,所述将所述统计结果添加到一旭日图中的步骤包括:Based on the above-mentioned sunburst chart, the steps of adding the statistical result to a sunburst chart include:
根据所述统计结果,对所述旭日图的层次、每层中的扇形区域的数量及每个扇形区域的大小进行划分;According to the statistical result, the hierarchy of the sunburst chart, the number of sector regions in each layer, and the size of each sector region are divided;
在划分完成后,将所述统计结果分别添加到对应的扇形区域。After the division is completed, the statistical results are respectively added to the corresponding sector regions.
为了充分展示统计结果,在本发明具体实施例中,可对每一个扇形区域进行一定的设置,当选中某一扇形区域时,就可以展示出与所述扇形区域对应的日志类型有关的统计结果,例如,与所述扇形区域对应的日志类型的日志数量占日志总数量的比例、与所述扇形区域对应的日志类型的日志数量的每日变化情况等。In order to fully display the statistical result, in the specific embodiment of the present invention, each sector area may be set to a certain extent. When a sector area is selected, statistical results related to the log type corresponding to the sector area may be displayed. For example, the number of logs of the log type corresponding to the sector area accounts for the ratio of the total number of logs, the daily change of the number of logs of the log type corresponding to the sector area, and the like.
其中,所述一定的设置例如是,给每一个扇形区域加上鼠标hover事件,在鼠标停留在某个扇形区域时,就选中所述扇形区域,即触发事件。The certain setting is, for example, adding a mouse hover event to each sector, and when the mouse is stuck in a sector, the sector is selected, that is, a trigger event.
基于上述内容,所述利用所述旭日图对所述统计结果进行展示的步骤包括:Based on the above content, the step of displaying the statistical result by using the sunburst map includes:
在选中一扇形区域后,获取与所述扇形区域对应的日志类型的日志数量;After a sector area is selected, the number of logs of the log type corresponding to the sector area is obtained;
计算所述日志数量与日志总数量的比例,得到一比例结果;Calculating the ratio of the number of logs to the total number of logs, and obtaining a proportional result;
显示与所述扇形区域对应的日志类型及所述比例结果。A log type corresponding to the sector area and the scale result are displayed.
其中,所述与所述扇形区域对应的日志类型及所述比例结果例如是显示在旭日图的空心位置,以便用户获知。The log type corresponding to the sector area and the proportional result are, for example, displayed in a hollow position of the sunburst map for the user to know.
具体的,所述利用所述旭日图对所述统计结果进行展示的步骤还可以包括:Specifically, the step of displaying the statistical result by using the sunburst map may further include:
在选中一扇形区域后,获取每天的与所述扇形区域对应的日志类型的日志数量;After a sector area is selected, the number of logs of the log type corresponding to the sector area is obtained every day;
依据所述每天的与所述扇形区域对应的日志类型的日志数量,生成一柱状图,所述柱状图用于表示每一天的与所述扇形区域对应的日志类型的日志数量; And generating, according to the number of logs of the log type corresponding to the sector area, the number of logs of the log type corresponding to the sector area of each day;
显示所述柱状图。The histogram is displayed.
这样,通过所述柱状图,就能够获知与所述扇形区域对应的日志类型的日志数量的每日变化情况及趋势。而所述柱状图例如是显示在旭日图的右侧,方便用户观察。In this way, through the histogram, it is possible to know the daily change and trend of the log number of the log type corresponding to the sector area. The histogram is displayed, for example, on the right side of the sunburst chart, which is convenient for the user to observe.
具体的,所述利用所述旭日图对所述统计结果进行展示的步骤还可以包括:Specifically, the step of displaying the statistical result by using the sunburst map may further include:
在选中一扇形区域后,生成一查询条件,所述查询条件为与所述扇形区域对应的日志类型;After a sector area is selected, a query condition is generated, where the query condition is a log type corresponding to the sector area;
显示与所述查询条件相关的所有日志。Displays all logs related to the query criteria.
这样,将统计功能和查询功能相关联,在统计界面就可以查询相关的所有日志,避免返回查询界面。而查询结果例如是显示在旭日图的下面,方便用户获知所述查询结果。In this way, the statistics function and the query function are associated, and all related logs can be queried in the statistics interface to avoid returning to the query interface. The query result is displayed, for example, below the sunburst chart, so that the user can know the result of the query.
具体的,所述利用所述旭日图对所述统计结果进行展示的步骤还可以包括:Specifically, the step of displaying the statistical result by using the sunburst map may further include:
在选中一扇形区域后,将所述扇形区域及其上层的扇形区域处理为高亮,其他扇形区域做淡化处理;和/或After selecting a sector area, the sector area and the sector area of the upper layer are treated as highlights, and other sector areas are faded; and/or
显示所述扇形区域的层次路径信息,所述层次路径信息为与所述扇形区域对应的日志类型及其上层日志类型。The hierarchical path information of the sector area is displayed, and the hierarchical path information is a log type corresponding to the sector area and an upper layer log type thereof.
这样,通过高亮和淡化处理,参见图4所示,能够起到醒目的效果,方便用户获知。而所述扇形区域的层次路径信息例如是通过旭日图下方的面包屑显示,同时也可以将与所述扇形区域对应的日志类型的日志数量与日志总数量的比例信息显示在所述面包屑的位置。In this way, by highlighting and desalination processing, as shown in FIG. 4, it can achieve a striking effect and is convenient for the user to know. The hierarchical path information of the sector area is displayed, for example, by breadcrumbs below the sunburst map, and the ratio information of the log type of the log type corresponding to the sector area and the total number of logs may be displayed on the breadcrumbs. position.
参见图3所示,表示本发明具体实施例的一操作日志的展示结果图。在图3的展示结果图中,除位于左侧的旭日图外,还在旭日图的空心位置展示了日志类型“查询用户和部门”的日志数量占日志总数量的比例结果,在旭日图的右侧通过柱状图展示了日志类型“查询用户和部门”的日志数量在最近30天中每天的变化情况,在旭日图的下面通过表格展示了查询条件为“查询用户和部门”的查询结果,及在旭日图的下面通过面包屑展示了与“查询用户和部门”对应的层次路径信息等。通过上述的展示内容,使得统计结果更直观, 不仅体现出日志的层次及日志的变化趋势,还得到相应的查询结果,实用性更强。Referring to Figure 3, there is shown a graph showing the results of an operation log of a specific embodiment of the present invention. In the result graph of Fig. 3, in addition to the sunburst map on the left side, the result of the log type "query user and department" log count as the total number of logs is displayed in the hollow position of the sunburst chart, in the sunburst chart On the right side, the histogram shows the daily change of the log type of the query type "Query User and Department" in the last 30 days. The query result of the query condition is "Query User and Department" is displayed in the table below the Rising Sun chart. Under the sunburst chart, the hierarchical path information corresponding to "query user and department" is displayed by breadcrumbs. Through the above display content, the statistical results are more intuitive. It not only reflects the level of the log and the trend of the log, but also obtains the corresponding query results, which is more practical.
参见图2所示,本发明实施例还提供一种日志的展示装置,用于日志管理系统,与图1的日志的展示方法相对应,所述日志的展示装置包括:As shown in FIG. 2, the embodiment of the present invention further provides a log display device, which is used in the log management system, and corresponds to the log display method of FIG.
统计模块21,设置成:对获取的日志进行分层统计,得到一统计结果;The statistics module 21 is configured to: perform hierarchical statistics on the obtained logs to obtain a statistical result;
添加模块22,设置成:将所述统计结果添加到一旭日图中;The adding module 22 is configured to: add the statistical result to a sunburst chart;
展示模块23,设置成:利用所述旭日图对所述统计结果进行展示。The display module 23 is configured to: display the statistical result by using the sunday map.
本发明实施例的日志的展示装置,通过对获取的日志进行分层统计,得到一统计结果,并将所述统计结果添加到一旭日图中,以利用所述旭日图对所述统计结果进行展示,能够为审计分析提供更加直观的有关日志的数据和更方便的操作方式。The log display device of the embodiment of the present invention obtains a statistical result by hierarchically collecting the obtained log, and adds the statistical result to a sunburst chart to perform the statistical result by using the sunburst chart. Demonstration can provide more intuitive log-related data and more convenient operation for audit analysis.
实际应用中,需要管理的日志一般为操作日志、安全日志或系统日志。In actual applications, the logs to be managed are generally operation logs, security logs, or system logs.
在本发明具体实施例中,对日志进行分层统计得到的统计结果是按照json字符串形式组织的,其中的每个json对象代表一种日志类型,且所述日志的最底层类型的统计结果并不是日志总数量,而是根据时间条件,按天统计的日志数量。In a specific embodiment of the present invention, the statistical result obtained by hierarchically counting logs is organized according to a json string, wherein each json object represents a log type, and the statistical result of the lowest level type of the log It is not the total number of logs, but the number of logs counted by day based on time conditions.
具体的,所述旭日图是一个基于D3技术的多层空心饼图,其层次与所述日志的层次相对应,每层中的扇形区域是与日志类型对应的;所述添加模块包括:Specifically, the sunburst map is a multi-layer hollow pie chart based on the D3 technology, the level of which corresponds to the level of the log, and the fan-shaped area in each layer corresponds to a log type; the adding module includes:
划分子模块,设置成:根据所述统计结果,对所述旭日图的层次、每层中的扇形区域的数量及每个扇形区域的大小进行划分;Dividing the sub-module, the method is: dividing, according to the statistical result, a hierarchy of the sunburst map, a number of sector regions in each layer, and a size of each sector region;
添加子模块,设置成:在划分完成后,将所述统计结果分别添加到对应的扇形区域。Add a submodule, and set it to: after the division is completed, add the statistical result to the corresponding sector area.
为了充分展示统计结果,在本发明具体实施例中,可对每一个扇形区域进行一定的设置,当选中某一扇形区域时,就可以展示出与所述扇形区域对应的日志类型有关的统计结果,例如,与所述扇形区域对应的日志类型的日志数量占日志总数量的比例、与所述扇形区域对应的日志类型的日志数量的每日变化情况等。 In order to fully display the statistical result, in the specific embodiment of the present invention, each sector area may be set to a certain extent. When a sector area is selected, statistical results related to the log type corresponding to the sector area may be displayed. For example, the number of logs of the log type corresponding to the sector area accounts for the ratio of the total number of logs, the daily change of the number of logs of the log type corresponding to the sector area, and the like.
基于上述内容,所述展示模块包括:Based on the above content, the display module includes:
第一获取模块,设置成:在选中一扇形区域后,获取与所述扇形区域对应的日志类型的日志数量;The first obtaining module is configured to: after selecting a sector area, obtain a log quantity of a log type corresponding to the sector area;
计算模块,设置成:计算所述日志数量与日志总数量的比例,得到一比例结果;a calculation module, configured to: calculate a ratio of the number of logs to a total number of logs, to obtain a proportional result;
第一显示模块,设置成:显示与所述扇形区域对应的日志类型及所述比例结果。The first display module is configured to: display a log type corresponding to the sector area and the scale result.
具体的,所述展示模块还包括:Specifically, the display module further includes:
第二获取模块,设置成:在选中一扇形区域后,获取每天的与所述扇形区域对应的日志类型的日志数量;The second obtaining module is configured to: after selecting a sector area, obtain a log quantity of a log type corresponding to the sector area every day;
第一生成模块,设置成:依据所述每天的与所述扇形区域对应的日志类型的日志数量,生成一柱状图,所述柱状图用于表示每一天的与所述扇形区域对应的日志类型的日志数量;a first generating module, configured to: generate a histogram according to the number of logs of the log type corresponding to the sector corresponding to the daily, the histogram is used to indicate a log type corresponding to the sector area of each day Number of logs;
第二显示模块,设置成:显示所述柱状图。The second display module is configured to: display the histogram.
具体的,所述展示模块还包括:Specifically, the display module further includes:
第二生成模块,设置成:在选中一扇形区域后,生成一查询条件,所述查询条件为与所述扇形区域对应的日志类型;The second generation module is configured to: after selecting a sector area, generate a query condition, where the query condition is a log type corresponding to the sector area;
第三显示模块,设置成:显示与所述查询条件相关的所有日志。The third display module is configured to: display all logs related to the query condition.
具体的,所述展示模块还包括:Specifically, the display module further includes:
处理模块,设置成:在选中一扇形区域后,将所述扇形区域及其上层的扇形区域处理为高亮,其他扇形区域做淡化处理;和/或The processing module is configured to: after selecting a sector area, process the sector area and the sector area of the upper layer to be highlighted, and the other sector areas are desalination; and/or
第四显示模块,设置成:显示所述扇形区域的层次路径信息,所述层次路径信息为与所述扇形区域对应的日志类型及其上层日志类型。The fourth display module is configured to: display hierarchical path information of the sector area, where the hierarchical path information is a log type corresponding to the sector area and an upper layer log type.
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被终端执行时,使得该终端可执行上述任意的日志的展示方法。The embodiment of the invention further discloses a computer program, comprising program instructions, when the program instruction is executed by the terminal, so that the terminal can execute the display method of any of the foregoing logs.
本发明实施例还公开了一种载有所述的计算机程序的载体。The embodiment of the invention also discloses a carrier carrying the computer program.
在阅读并理解了附图和详细描述后,可以明白其他方面。 Other aspects will be apparent upon reading and understanding the drawings and detailed description.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。Variations or substitutions are readily conceivable within the scope of the present invention by those skilled in the art and are within the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.
工业实用性Industrial applicability
本发明技术方案的日志的展示方法及装置,通过对获取的日志进行分层统计,得到一统计结果,并将所述统计结果添加到一旭日图中,以利用所述旭日图对所述统计结果进行展示,能够为审计分析提供更加直观的有关日志的数据和更方便的操作方式,同时使得统计结果更直观,不仅体现出日志的层次及日志的变化趋势,还得到相应的查询结果,实用性更强,因此本发明具有很强的工业实用性。 The method and device for displaying the log of the technical solution of the present invention obtains a statistical result by hierarchically collecting the obtained log, and adds the statistical result to a sunburst chart to use the sunburst chart to compare the statistics. The results are displayed, which can provide more intuitive log data and more convenient operation mode for audit analysis. At the same time, the statistical results are more intuitive, not only reflecting the log level and log trend, but also obtaining corresponding query results. It is more sexual, so the invention has strong industrial applicability.

Claims (16)

  1. 一种日志的展示方法,包括:A method of displaying logs, including:
    对获取的日志进行分层统计,得到一统计结果;Perform hierarchical statistics on the obtained logs to obtain a statistical result;
    将所述统计结果添加到一旭日图中;Adding the statistical result to a rising sun chart;
    利用所述旭日图对所述统计结果进行展示。The statistical results are displayed using the sunburst map.
  2. 根据权利要求1所述的日志的展示方法,其中,对获取的日志进行分层统计得到的所述统计结果是按照json字符串形式组织的,其中的每个json对象代表一种日志类型,所述日志的最底层日志类型的统计结果是按天统计的日志数量。The method for displaying a log according to claim 1, wherein the statistical result obtained by hierarchically collecting the obtained logs is organized according to a json string, wherein each json object represents a log type. The statistical result of the lowest log type of the log is the number of logs counted by day.
  3. 根据权利要求1所述的日志的展示方法,其中,The method of displaying a log according to claim 1, wherein
    所述旭日图是一个基于D3技术的多层空心饼图,其层次与所述日志的层次相对应,每层中的扇形区域是与日志类型对应的;The sunburst map is a multi-layer hollow pie chart based on D3 technology, the level of which corresponds to the level of the log, and the sector area in each layer corresponds to the log type;
    所述将所述统计结果添加到一旭日图中的步骤包括:根据所述统计结果,对所述旭日图的层次、每层中的扇形区域的数量及每个扇形区域的大小进行划分;在划分完成后,将所述统计结果分别添加到对应的扇形区域。The step of adding the statistical result to a sunburst chart includes: dividing, according to the statistical result, a hierarchy of the sunburst map, a number of sector regions in each layer, and a size of each sector region; After the division is completed, the statistical results are respectively added to the corresponding sector regions.
  4. 根据权利要求3所述的日志的展示方法,其中,所述利用所述旭日图对所述统计结果进行展示的步骤包括:The method for displaying a log according to claim 3, wherein the step of displaying the statistical result by using the sunburst map comprises:
    在选中一扇形区域后,获取与所述扇形区域对应的日志类型的日志数量;After a sector area is selected, the number of logs of the log type corresponding to the sector area is obtained;
    计算所述日志数量与日志总数量的比例,得到一比例结果;Calculating the ratio of the number of logs to the total number of logs, and obtaining a proportional result;
    显示与所述扇形区域对应的日志类型及所述比例结果。A log type corresponding to the sector area and the scale result are displayed.
  5. 根据权利要求3所述的日志的展示方法,其中,所述利用所述旭日图对所述统计结果进行展示的步骤包括:The method for displaying a log according to claim 3, wherein the step of displaying the statistical result by using the sunburst map comprises:
    在选中一扇形区域后,获取每天的与所述扇形区域对应的日志类型的日志数量;After a sector area is selected, the number of logs of the log type corresponding to the sector area is obtained every day;
    依据所述每天的与所述扇形区域对应的日志类型的日志数量,生成一柱状图,所述柱状图用于表示每一天的与所述扇形区域对应的日志类型的日志数量;And generating, according to the number of logs of the log type corresponding to the sector area, the number of logs of the log type corresponding to the sector area of each day;
    显示所述柱状图。The histogram is displayed.
  6. 根据权利要求3所述的日志的展示方法,其中,所述利用所述旭日图对所述统计结果进行展示的步骤包括: The method for displaying a log according to claim 3, wherein the step of displaying the statistical result by using the sunburst map comprises:
    在选中一扇形区域后,生成一查询条件,所述查询条件为与所述扇形区域对应的日志类型;After a sector area is selected, a query condition is generated, where the query condition is a log type corresponding to the sector area;
    显示与所述查询条件相关的所有日志。Displays all logs related to the query criteria.
  7. 根据权利要求3所述的日志的展示方法,其中,所述利用所述旭日图对所述统计结果进行展示的步骤包括:The method for displaying a log according to claim 3, wherein the step of displaying the statistical result by using the sunburst map comprises:
    在选中一扇形区域后,将所述扇形区域及其上层的扇形区域处理为高亮,其他扇形区域做淡化处理;和/或After selecting a sector area, the sector area and the sector area of the upper layer are treated as highlights, and other sector areas are faded; and/or
    显示所述扇形区域的层次路径信息,所述层次路径信息为与所述扇形区域对应的日志类型及其上层日志类型。The hierarchical path information of the sector area is displayed, and the hierarchical path information is a log type corresponding to the sector area and an upper layer log type thereof.
  8. 根据权利要求1所述的日志的展示方法,其中,所述日志为操作日志、安全日志或系统日志。The method for displaying a log according to claim 1, wherein the log is an operation log, a security log, or a system log.
  9. 一种日志的展示装置,包括统计模块、添加模块和展示模块,其中A log display device includes a statistics module, an add module, and a display module, wherein
    所述统计模块设置成:对获取的日志进行分层统计,得到一统计结果;The statistic module is configured to: perform hierarchical statistics on the obtained logs to obtain a statistical result;
    所述添加模块设置成:将所述统计结果添加到一旭日图中;The adding module is configured to: add the statistical result to a sunburst chart;
    所述展示模块设置成:利用所述旭日图对所述统计结果进行展示。The display module is configured to: display the statistical result by using the sunday map.
  10. 根据权利要求9所述的日志的展示装置,其中,对获取的日志进行分层统计得到的所述统计结果是按照json字符串形式组织的,其中的每个json对象代表一种日志类型,所述日志的最底层日志类型的统计结果是按天统计的日志数量。The log display apparatus according to claim 9, wherein the statistical result obtained by hierarchically collecting the acquired logs is organized according to a json string, wherein each json object represents a log type, The statistical result of the lowest log type of the log is the number of logs counted by day.
  11. 根据权利要求9所述的日志的展示装置,其中,The log display device according to claim 9, wherein
    所述旭日图是一个基于D3技术的多层空心饼图,其层次与所述日志的层次相对应,每层中的扇形区域是与日志类型对应的;The sunburst map is a multi-layer hollow pie chart based on D3 technology, the level of which corresponds to the level of the log, and the sector area in each layer corresponds to the log type;
    所述添加模块包括划分子模块和添加子模块,其中:The adding module includes a dividing submodule and an adding submodule, wherein:
    所述划分子模块设置成:根据所述统计结果,对所述旭日图的层次、每层中的扇形区域的数量及每个扇形区域的大小进行划分;The dividing sub-module is configured to: according to the statistical result, divide a hierarchy of the sunburst map, a number of sector regions in each layer, and a size of each sector region;
    所述添加子模块设置成:在所述划分子模块划分完成后,将所述统计结果分别添加到对应的扇形区域。The adding submodule is configured to: after the dividing submodule is divided, add the statistical result to the corresponding sector area.
  12. 根据权利要求11所述的日志的展示装置,其中,所述展示模块包括第一获取模块、计算模块和第一显示模块,其中The display device of the log according to claim 11, wherein the display module comprises a first acquisition module, a calculation module and a first display module, wherein
    所述第一获取模块设置成:在选中一扇形区域后,获取与所述扇形区域 对应的日志类型的日志数量;The first obtaining module is configured to: after selecting a sector region, acquire the sector region The number of logs corresponding to the log type;
    所述计算模块设置成:计算所述日志数量与日志总数量的比例,得到一比例结果;The calculating module is configured to: calculate a ratio of the number of logs to a total number of logs, to obtain a proportional result;
    所述第一显示模块设置成:显示与所述扇形区域对应的日志类型及所述比例结果。The first display module is configured to display a log type corresponding to the sector area and the proportional result.
  13. 根据权利要求11所述的日志的展示装置,其中,所述展示模块包括第二获取模块、第一生成模块和第二显示模块,其中The display device of the log according to claim 11, wherein the display module comprises a second acquisition module, a first generation module and a second display module, wherein
    所述第二获取模块设置成:在选中一扇形区域后,获取每天的与所述扇形区域对应的日志类型的日志数量;The second obtaining module is configured to: after selecting a sector area, obtain a log quantity of a log type corresponding to the sector area every day;
    所述第一生成模块设置成:依据所述每天的与所述扇形区域对应的日志类型的日志数量,生成一柱状图,所述柱状图用于表示每一天的与所述扇形区域对应的日志类型的日志数量;The first generating module is configured to: generate a histogram according to the number of logs of the daily log type corresponding to the sector area, wherein the histogram is used to represent a log corresponding to the sector area of each day The number of logs of the type;
    所述第二显示模块设置成:显示所述柱状图。The second display module is configured to display the histogram.
  14. 根据权利要求11所述的日志的展示装置,其中,所述展示模块包括第二生成模块和第三显示模块,其中The display device of the log according to claim 11, wherein the display module comprises a second generation module and a third display module, wherein
    所述第二生成模块设置成:在选中一扇形区域后,生成一查询条件,所述查询条件为与所述扇形区域对应的日志类型;The second generation module is configured to: after selecting a sector area, generate a query condition, where the query condition is a log type corresponding to the sector area;
    所述第三显示模块设置成:显示与所述查询条件相关的所有日志。The third display module is configured to display all logs related to the query condition.
  15. 根据权利要求11所述的日志的展示装置,其中,所述展示模块包括处理模块和第四显示模块,其中The display device of the log according to claim 11, wherein the display module comprises a processing module and a fourth display module, wherein
    所述处理模块设置成:在选中一扇形区域后,将所述扇形区域及其上层的扇形区域处理为高亮,其他扇形区域做淡化处理;和/或The processing module is configured to: after selecting a sector area, process the sector area and the sector area of the upper layer to be highlighted, and other sector areas to be faded; and/or
    所述第四显示模块设置成:显示所述扇形区域的层次路径信息,所述层次路径信息为与所述扇形区域对应的日志类型及其上层日志类型。The fourth display module is configured to: display hierarchical path information of the sector area, where the hierarchical path information is a log type corresponding to the sector area and an upper layer log type.
  16. 根据权利要求9所述的日志的展示装置,其中,所述日志为操作日志、安全日志或系统日志。 The log display apparatus according to claim 9, wherein the log is an operation log, a security log, or a system log.
PCT/CN2016/075217 2015-08-06 2016-03-01 Log display method and device WO2016177047A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510475916.7A CN106445943B (en) 2015-08-06 2015-08-06 Log display method and device
CN201510475916.7 2015-08-06

Publications (1)

Publication Number Publication Date
WO2016177047A1 true WO2016177047A1 (en) 2016-11-10

Family

ID=57217397

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/075217 WO2016177047A1 (en) 2015-08-06 2016-03-01 Log display method and device

Country Status (2)

Country Link
CN (1) CN106445943B (en)
WO (1) WO2016177047A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471991A (en) * 2018-11-15 2019-03-15 北京神舟航天软件技术有限公司 A kind of product BOM multiple view tissue and methods of exhibiting
CN109635035A (en) * 2018-12-14 2019-04-16 万翼科技有限公司 Report the methods of exhibiting, device and storage medium of problem for repairment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101093514A (en) * 2007-08-20 2007-12-26 中兴通讯股份有限公司 Processing system for automated testing log
CN101261628A (en) * 2007-03-07 2008-09-10 国际商业机器公司 Method, mutual method and its apparatus using angle chart for displaying hierarchical structure data
CN102915269A (en) * 2012-09-20 2013-02-06 山东浪潮齐鲁软件产业股份有限公司 Method for analyzing common logs of B/S (browser/server) software system
CN103942040A (en) * 2013-01-22 2014-07-23 Lg电子株式会社 Mobile terminal and control method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100806698B1 (en) * 2007-02-06 2008-02-27 (주) 프람트 Method for storing content database reflecting use-log of user
CN103914485B (en) * 2013-01-07 2017-05-03 上海宝信软件股份有限公司 System and method for remotely collecting, retrieving and displaying application system logs
CN104660427A (en) * 2013-11-18 2015-05-27 深圳市腾讯计算机系统有限公司 Method and device for real-time statistics of logs
CN104268254A (en) * 2014-10-09 2015-01-07 浪潮电子信息产业股份有限公司 Security situation analysis and statistics method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101261628A (en) * 2007-03-07 2008-09-10 国际商业机器公司 Method, mutual method and its apparatus using angle chart for displaying hierarchical structure data
CN101093514A (en) * 2007-08-20 2007-12-26 中兴通讯股份有限公司 Processing system for automated testing log
CN102915269A (en) * 2012-09-20 2013-02-06 山东浪潮齐鲁软件产业股份有限公司 Method for analyzing common logs of B/S (browser/server) software system
CN103942040A (en) * 2013-01-22 2014-07-23 Lg电子株式会社 Mobile terminal and control method thereof

Also Published As

Publication number Publication date
CN106445943A (en) 2017-02-22
CN106445943B (en) 2020-09-08

Similar Documents

Publication Publication Date Title
Becker et al. Microsoft power BI: extending excel to manipulate, analyze, and visualize diverse data
Poorthuis et al. Making big data small: strategies to expand urban and geographical research using social media
KR102023215B1 (en) Automatic relationship detection for reporting on spreadsheet data
Zhang et al. Visual analytics for the big data era—A comparative review of state-of-the-art commercial systems
US20240078229A1 (en) Generating, accessing, and displaying lineage metadata
CN107533570B (en) System and method for automatically inferring cube schema from tabular data
WO2019035903A1 (en) Systems and methods for distributed data validation
WO2016041373A1 (en) Data query method and device
Salehi et al. SensorDB: a virtual laboratory for the integration, visualization and analysis of varied biological sensor data
US20190042632A1 (en) Uniform chart formatting based on semantics in data models
WO2019024484A1 (en) Data display method, device, and computer readable storage medium
WO2016177047A1 (en) Log display method and device
US20200193658A1 (en) Generating digital graphical representations reflecting multiple data series utilizing dynamic y-axes
Li et al. Solving siphons with the minimal cardinality in Petri nets and its applications to deadlock control
CN116931783A (en) Front-end massive tree structure display method and device, electronic equipment and medium
Yang et al. The survival probability of the SABR model: asymptotics and application
Kostadinov Simulation insights using R
CN109857501B (en) APP page display method and device, storage medium and server
US9361651B2 (en) Displaying quantitative trending of pegged data from cache
US8589444B2 (en) Presenting information from heterogeneous and distributed data sources with real time updates
CN104572951A (en) Ability label determining method
US11893038B2 (en) Data type based visual profiling of large-scale database tables
US11960829B1 (en) Fast input window
CN110023925B (en) Generating, accessing and displaying lineage metadata
Maulida et al. Visualization of Front-End Data Logger Internet of Things Technology using Vue. Js Framework

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16789041

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16789041

Country of ref document: EP

Kind code of ref document: A1