Device detection method, server and medium

By obtaining the log data and information of terminal devices, generating and parsing alarm policies, and automatically detecting terminal devices, it solves the problem of non-automatic device detection in existing security audits and improves the accuracy and efficiency of audits.

CN115913896BActive Publication Date: 2024-10-01CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211399641.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-09
Publication Date
2024-10-01
Estimated Expiration
2042-11-09

AI Technical Summary

Technical Problem

The existing security audit process cannot realize automated detection of equipment, resulting in low security audit accuracy and efficiency.

Method used

By obtaining the log data and device information of the terminal device, an alarm policy is generated, the policy is parsed to generate a task configuration, and an alarm task is generated based on the task configuration, and the terminal device is automatically detected to determine alarm events and send alarm information.

Benefits of technology

It realizes automated detection of equipment, improves the accuracy and efficiency of security audits, and reduces manual intervention and errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115913896B_ABST
    Figure CN115913896B_ABST
Patent Text Reader

Abstract

The present application provides a device detection method, server and medium. The method includes: obtaining log data corresponding to a terminal device and device information corresponding to the terminal device; generating an alarm strategy for the terminal device according to the device information and the alarm elements corresponding to the device information; parsing the alarm strategy to generate a task configuration corresponding to the alarm strategy, and generating a corresponding alarm task according to the task configuration; detecting the terminal device according to the alarm task and log data to determine the alarm event corresponding to the terminal device and generate the corresponding alarm information, and sending the alarm information to the terminal device. The method of the present application can realize automatic detection of the device and improve the accuracy and efficiency of security audits.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a device detection method, a server and a medium. Background Art

[0002] With the development of Internet technology and the progress of society, people's daily lives have become closely related to the Internet. Therefore, it is becoming increasingly important to conduct information security audits on devices connected to the Internet.

[0003] Information security auditing mainly refers to the identification, recording, storage and analysis of relevant information about security-related activities in the system. Information security audit records are used to check which security-related activities have occurred on the network and which user is responsible for this activity. In the prior art, when performing security audits on systems, staff usually carry out customized development and configuration based on the devices included in the system and the application scenarios in which they are located, in order to obtain audit alarm strategies and related alarm tasks. When it is necessary to perform security audits on the devices in the system, the server can perform relevant tests on the devices in the system according to the configured alarm strategies and related alarm tasks.

[0004] However, in the existing security audit process, automated detection of equipment cannot be achieved, resulting in low accuracy and efficiency of security audits. Summary of the invention

[0005] The present application provides a device detection method, a server and a medium to solve the technical problem that the existing security audit process cannot realize automatic detection of devices, resulting in low accuracy and efficiency of security audits.

[0006] In a first aspect, the present application provides a device detection method, comprising:

[0007] Obtaining log data corresponding to the terminal device and device information corresponding to the terminal device;

[0008] Generate an alarm strategy for the terminal device according to the device information and the alarm element corresponding to the device information;

[0009] Parsing the alarm strategy to generate a task configuration corresponding to the alarm strategy, and generating a corresponding alarm task according to the task configuration;

[0010] The terminal device is detected according to the alarm task and the log data to determine the alarm event corresponding to the terminal device and generate corresponding alarm information, and the alarm information is sent to the terminal device.

[0011] In a possible implementation manner, generating an alarm strategy for the terminal device according to the device information and an alarm element corresponding to the device information specifically includes:

[0012] Determine an alarm element corresponding to the device information of the terminal device in a preset device element correspondence library;

[0013] Generate an alarm strategy for the terminal device according to the device information and the alarm element corresponding to the device information;

[0014] Among them, the alarm elements include one or more of the alarm detection time period, the alarm detection frequency, the alarm threshold, and the alarm program information; the alarm threshold includes one or more of the abnormal alarm threshold and the backlog alarm threshold; the alarm program information includes the program information that triggers the alarm when the terminal device is executed.

[0015] In a possible implementation manner, the device element correspondence library is obtained in the following manner:

[0016] For each terminal device, obtain the historical detection frequency and historical detection time period of the terminal device, and generate the alarm detection frequency and alarm detection time period of the terminal device respectively according to the historical detection frequency and historical detection time period;

[0017] Acquire historical alarm information of the terminal device, and determine an alarm threshold and / or alarm program information of the terminal device according to the historical alarm information;

[0018] A device element correspondence library is generated based on the device information of each of the terminal devices, and the alarm detection time period, alarm detection frequency, alarm threshold and / or alarm program information corresponding to each of the terminal devices.

[0019] In a possible implementation, the method further includes:

[0020] If there is no alarm element corresponding to the device information of the terminal device in the device element correspondence library, alarm policy configuration prompt information is sent to the terminal device to prompt the user to input the alarm policy of the terminal device.

[0021] In a possible implementation, obtaining log data corresponding to the terminal device specifically includes:

[0022] Obtaining a device log generated by the terminal device, wherein the device log includes one or more of an operation log, a behavior log, and an event log;

[0023] Formatting the device log using a preset standard format to obtain a standard log of the terminal device;

[0024] The standard log is extracted according to preset key fields to obtain log data corresponding to the terminal device, wherein the key fields include one or more of device information, time information, and program information.

[0025] In a possible implementation, the detecting the terminal device according to the alarm task and the log data to determine the alarm event corresponding to the terminal device and generating corresponding alarm information specifically includes:

[0026] Asynchronously and periodically detecting the log data of each of the terminal devices according to the alarm detection frequency in the alarm task;

[0027] For each detection cycle, determining the data to be detected in the log data corresponding to the alarm detection time period;

[0028] Determine whether there is alarm data exceeding the alarm threshold value, or alarm data corresponding to the alarm program information, in the data to be detected;

[0029] If so, an alarm event and alarm information corresponding to the alarm event are generated according to one or more of the device information, the alarm data, and the time when the alarm data is generated.

[0030] In a possible implementation, the method further includes:

[0031] Stores the alarm strategy, task configuration, alarm tasks, device detection progress, and alarm events corresponding to each terminal device.

[0032] In a second aspect, the present application provides a server, including:

[0033] A data collection module, used to obtain log data corresponding to the terminal device and device information corresponding to the terminal device;

[0034] A policy configuration module, used to generate an alarm policy for the terminal device according to the device information and the alarm element corresponding to the device information;

[0035] A task generation module, used to parse the alarm strategy to generate a task configuration corresponding to the alarm strategy, and generate a corresponding alarm task according to the task configuration;

[0036] The alarm processing module is used to detect the terminal device according to the alarm task and the log data to determine the alarm event corresponding to the terminal device and generate corresponding alarm information, and send the alarm information to the terminal device.

[0037] In a third aspect, the present application provides another server, comprising: a processor, and a memory communicatively connected to the processor;

[0038] The memory stores computer-executable instructions;

[0039] The processor executes the computer-executable instructions stored in the memory to implement the above method.

[0040] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to implement the above-mentioned method when executed by a processor.

[0041] The device detection method, server and medium provided by the present application can obtain the log data corresponding to the terminal device and the device information corresponding to the terminal device; generate the alarm strategy of the terminal device according to the device information and the alarm elements corresponding to the device information; parse the alarm strategy to generate the task configuration corresponding to the alarm strategy, and generate the corresponding alarm task according to the task configuration; detect the terminal device according to the alarm task and the log data to determine the alarm event corresponding to the terminal device and generate the corresponding alarm information, and send the alarm information to the terminal device. The method of the present application, after obtaining the device information of the terminal device, can generate the alarm strategy of the terminal device according to the device information and the alarm elements corresponding to the device information, and does not require the user to manually enter the alarm strategy. After determining the alarm strategy, the alarm strategy can be parsed to generate the task configuration corresponding to the alarm strategy, and the corresponding alarm task is generated according to the task configuration, and then the terminal device is detected according to the alarm task and the log data, and the user does not need to manually generate the corresponding task according to the alarm strategy and perform the detection. Through such a setting, the automatic detection of the device can be realized, thereby improving the accuracy and efficiency of the security audit. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0043] Figure 1 A system architecture diagram of an embodiment of the present application;

[0044] Figure 2 This is a flow chart of a device detection method according to an embodiment of the present application;

[0045] Figure 3 A schematic diagram of the structure of a server according to an embodiment of the present application;

[0046] Figure 4 This is a schematic diagram of the structure of a server according to another embodiment of the present application.

[0047] Figure numerals: 1. server; 2. terminal device; 31. data acquisition module; 32. policy configuration module; 33. task generation module; 34. alarm processing module.

[0048] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0049] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0050] With the development of economy and the advancement of Internet technology, the number of mobile phones, computers, iPads and other terminal devices has exploded, and more and more terminal devices are connected to the network, thus generating a large amount of data and information flow. While people enjoy the convenience brought by digital information technology, there are also huge security risks hidden in it. Therefore, information security has been paid more and more attention, and it has become more and more important to conduct information security audits on devices connected to the network.

[0051] As more and more data is generated by terminal devices, data security issues are becoming increasingly prominent, and cases of using data for illegal activities are emerging in an endless stream. Data security is becoming more and more important as an important aspect of national security. Therefore, it is necessary to regularly perform equipment inspections on terminal devices, namely security audits. Information security audits mainly refer to the identification, recording, storage and analysis of relevant information on security-related activities in the system. Information security audit records are used to check which security-related activities have occurred on the network and which user is responsible for the activity. In the prior art, when performing security audits on the system, staff usually carry out customized development and configuration based on the devices included in the system and the application scenarios in which they are located, in order to obtain audit alarm strategies and related alarm tasks. When it is necessary to perform a security audit on the devices in the system, the server can perform relevant inspections on the devices in the system according to the configured alarm strategies and related alarm tasks.

[0052] However, in the existing security audit process, automated detection of equipment cannot be achieved, resulting in low accuracy and efficiency of security audits.

[0053] Based on this technical problem, the inventive concept of this application is: how to provide a device detection method that can achieve automated detection.

[0054] Specifically, the log data corresponding to the terminal device and the device information corresponding to the terminal device can be obtained; the alarm strategy of the terminal device is generated according to the device information and the alarm elements corresponding to the device information; the alarm strategy is parsed to generate the task configuration corresponding to the alarm strategy, and the corresponding alarm task is generated according to the task configuration; the terminal device is detected according to the alarm task and the log data to determine the alarm event corresponding to the terminal device and generate the corresponding alarm information, and the alarm information is sent to the terminal device. The method of the present application, after obtaining the device information of the terminal device, can generate the alarm strategy of the terminal device according to the device information and the alarm elements corresponding to the device information, and the user does not need to manually input the alarm strategy. After determining the alarm strategy, the alarm strategy can be parsed to generate the task configuration corresponding to the alarm strategy, and the corresponding alarm task is generated according to the task configuration, and then the terminal device is detected according to the alarm task and the log data, and the user does not need to manually generate the corresponding task according to the alarm strategy and perform the detection. Through such a setting, the automatic detection of the device can be realized, thereby improving the accuracy and efficiency of the security audit.

[0055] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0056] Figure 1 This is a system architecture diagram of an embodiment of the present application. As shown in 1, 1 represents a server, 2 represents a terminal device, and server 1 can communicate with multiple terminal devices 2 to perform device detection. Specifically, server 1 can obtain log data corresponding to terminal device 2, as well as device information corresponding to terminal device 2; generate an alarm strategy for terminal device 2 based on the device information and the alarm elements corresponding to the device information; parse the alarm strategy to generate a task configuration corresponding to the alarm strategy, and generate a corresponding alarm task based on the task configuration; detect terminal device 2 based on the alarm task and log data to determine the alarm event corresponding to the terminal device. When server 1 detects an alarm event, it can generate corresponding alarm information based on the alarm event and send the alarm information to terminal device 2.

[0057] Embodiment 1

[0058] Figure 21 is a flow chart of a device detection method provided by an embodiment of the present application. This embodiment describes the device detection method with the execution subject being a server. Figure 2 As shown, the device detection method may include the following steps:

[0059] S101: Obtain log data corresponding to the terminal device and device information corresponding to the terminal device.

[0060] In this embodiment, the server can establish communication connections with multiple terminal devices to perform periodic detection on the devices. The detection process of the multiple terminal devices can be synchronous or asynchronous, which is not limited here.

[0061] In this embodiment, the server can use various transmission methods such as TCP, UDP, and HTTP to obtain the log data corresponding to the terminal device.

[0062] In this embodiment, the device information may include but is not limited to: device name, device number, device IP address and other information that can identify the device. The terminal device may include but is not limited to: mobile phones, computers, iPads, hosts, bastion hosts and other devices, which are not limited here.

[0063] In one possible implementation, obtaining log data corresponding to a terminal device may include: obtaining a device log generated by the terminal device, the device log including one or more of an operation log, a behavior log, and an event log; formatting the device log using a preset standard format to obtain a standard log for the terminal device; extracting the standard log according to preset key fields to obtain log data corresponding to the terminal device, the key fields including one or more of device information, time information, and program information.

[0064] In this implementation, the server may obtain the device log generated by the terminal device from the system log, database, stream processing platform, etc. of the terminal device, and the specific acquisition method is not limited in any way.

[0065] In this embodiment, the server can support multiple data formats such as csv, json, web file format, etc. to format the device log; when extracting standard logs according to key fields, the server can adapt to multiple technical languages ​​such as grok, rube, regular expressions, etc.

[0066] In this embodiment, the device log may include but is not limited to all logs generated by the terminal device during operation. The preset standard format can be flexibly set by those skilled in the art, and no limitation is made here. The preset key fields may include but are not limited to: device information such as device name, device number, device IP address, time information, program information, etc., which can be flexibly set by those skilled in the art according to actual conditions. Device information may refer to the information of the device that generates the log data, time information may refer to the time when the log data is generated, and program information may refer to the program corresponding to the log data.

[0067] In this embodiment, after the terminal device is turned on, the terminal device and the software and programs therein will continuously generate data during operation and record it in various logs, such as operation logs, behavior logs, event logs, etc. Therefore, the detection of the device can be simply and accurately achieved based on the device log of the terminal device. Furthermore, since the format of the logs in multiple terminal devices may not be the same, after obtaining the device log of the terminal device, the device log can be formatted using a preset standard format, thereby achieving a unified data format, so as to facilitate subsequent detection of the device based on the log. Furthermore, since the standard log data volume is large and some data is not necessary, the standard log can be extracted based on preset key fields, that is, the unnecessary data can be cleaned, thereby reducing the subsequent data calculation amount and improving the efficiency of device detection while ensuring the validity of the data.

[0068] S102: Generate an alarm policy for the terminal device according to the device information and the alarm elements corresponding to the device information.

[0069] In one possible implementation, the above-mentioned step S102 generates an alarm strategy for the terminal device based on the device information and the alarm elements corresponding to the device information, and may include: determining the alarm elements corresponding to the device information of the terminal device in a preset device element correspondence library; generating an alarm strategy for the terminal device based on the device information and the alarm elements corresponding to the device information; wherein the alarm elements include one or more of an alarm detection time period, an alarm detection frequency, an alarm threshold, and alarm program information, the alarm threshold includes one or more of an abnormal alarm threshold and a backlog alarm threshold, and the alarm program information includes program information that triggers an alarm when the terminal device is executed.

[0070] In this embodiment, the abnormal alarm threshold may be a threshold of the number of occurrences of a certain abnormal data, that is, an alarm is issued when the number of occurrences of the abnormal data exceeds the corresponding abnormal alarm threshold. The backlog alarm threshold may be a threshold of the number of occurrences of a certain data (normal data), that is, an alarm is issued when the number of occurrences of a certain data exceeds the corresponding backlog alarm threshold. The specific abnormal alarm threshold and backlog alarm threshold can be flexibly set by those skilled in the art, and no limitation is made here. For example, if the number of requests (number of operations) of a certain program exceeds 10,000 times, an alarm is issued, or if the number of login errors of a user name of a certain program exceeds 4 times, an alarm is issued.

[0071] In this embodiment, the alarm program information may refer to information that is pre-set and is used to alarm when a certain terminal device starts or executes a certain program. Of course, a program directory that is allowed to run may also be pre-set for the terminal device. When the terminal device no longer runs a program in the program directory, an alarm is issued. The specific alarm program information can be flexibly set by those skilled in the art, and no limitation is made here. For example, a computer can be set to alarm when a Thunder download program is started.

[0072] In this embodiment, a device element correspondence library can be pre-set, that is, the correspondence between each terminal device and the alarm element. After obtaining the device information, the corresponding alarm element can be found from the device element correspondence library. Through such a setting, the alarm element corresponding to the terminal device can be determined simply and conveniently, and the alarm strategy of the terminal device can be generated according to the device information and the alarm element corresponding to the device information, without the need for manual input by the user, thereby realizing automatic detection of the device and improving the intelligence and accuracy of device detection.

[0073] In one possible implementation, the above-mentioned device element correspondence library can be obtained in the following manner: for each terminal device, obtain the historical detection frequency and historical detection time period of the terminal device, and generate the alarm detection frequency and alarm detection time period of the terminal device respectively based on the historical detection frequency and historical detection time period; obtain the historical alarm information of the terminal device, and determine the alarm threshold and / or alarm program information of the terminal device based on the historical alarm information; generate a device element correspondence library based on the device information of each terminal device, and the alarm detection time period, alarm detection frequency, alarm threshold and / or alarm program information corresponding to each terminal device.

[0074] In this embodiment, the device element correspondence library can be obtained based on historical data such as historical detection frequency, historical detection time period, historical alarm information, etc., and does not require manual input by the user, thereby improving the automation and intelligence of the device element correspondence library generation and further improving the automation and intelligence of device detection.

[0075] In a possible implementation, the method may further include: if there is no alarm element corresponding to the device information of the terminal device in the device element correspondence library, sending alarm policy configuration prompt information to the terminal device to prompt the user to input the alarm policy of the terminal device.

[0076] In this embodiment, when there is no alarm element corresponding to the device information of a terminal device in the device element correspondence library, an alarm policy configuration prompt information can be sent to the terminal device to prompt the user to manually input the alarm policy of the terminal device. Through such a setting, the automatic configuration process of the alarm policy can be supplemented. For certain specific devices or scenarios, the user can also configure the alarm policy in a targeted manner, which improves the freedom of alarm policy configuration, thereby improving the accuracy and adaptability of device detection.

[0077] S103: Parse the alarm strategy to generate a task configuration corresponding to the alarm strategy, and generate a corresponding alarm task according to the task configuration.

[0078] In this embodiment, the server can automatically parse and analyze the alarm configurations such as statements, rules, and expressions in the alarm policy, support complex statement and expression parsing, and can adapt to the parsing of alarm policies in multiple scenarios. The server can support the configuration of alarm tasks for multiple terminal devices and multiple scenarios, such as supporting the operation log audit and alarm task configuration of terminal devices such as hosts, bastion hosts, and VPNs. The server can also parse the alarm policy into corresponding tasks, thereby realizing the automation of mapping task configuration to alarm tasks and the automation of task execution, increasing security operation efficiency, and reducing security operation costs and R&D costs.

[0079] In this embodiment, the alarm strategy is parsed to generate a task configuration corresponding to the alarm strategy, and the corresponding alarm task is generated according to the task configuration, so that the automatic configuration of the task can be completed without the need for the user to manually start the task, thereby improving the automation of equipment detection.

[0080] S104: Detect the terminal device according to the alarm task and the log data to determine the alarm event corresponding to the terminal device and generate corresponding alarm information, and send the alarm information to the terminal device.

[0081] In one possible implementation, the above step S104 detects the terminal device according to the alarm task and the log data to determine the alarm event corresponding to the terminal device and generates the corresponding alarm information, which may include: asynchronously and periodically detecting the log data of each terminal device according to the alarm detection frequency in the alarm task; for each detection cycle, determining the data to be detected in the log data corresponding to the alarm detection time period; judging whether there is alarm data exceeding the alarm threshold in the data to be detected, or alarm data corresponding to the alarm program information; if so, generating an alarm event and alarm information corresponding to the alarm event according to one or more of the device information, alarm data, and alarm data generation time.

[0082] In this embodiment, after the alarm task is generated, the log data of each terminal device can be periodically detected according to the alarm detection frequency in the alarm task, without the need for the user to manually start the detection, which further improves the automation and intelligence of the device detection. In each detection cycle, the log data corresponding to the terminal device can be detected according to the alarm detection time period, the alarm threshold and the alarm program information. If the alarm data exceeding the alarm threshold or the alarm data corresponding to the alarm program information is detected, it is necessary to generate alarm information for alarm. Through such a setting, the detection of the device can be completed simply and accurately. Furthermore, the alarm event and the alarm information corresponding to the alarm event can be generated according to one or more of the device information, the alarm data and the alarm data generation time, so that the user can find the device where the alarm occurs and the corresponding program, data and other information, and promptly check the cause of the alarm and take corresponding measures.

[0083] In a possible implementation, the method may further include: storing an alarm strategy, task configuration, alarm task, device detection progress, and alarm events corresponding to each terminal device.

[0084] In this embodiment, by storing the alarm strategy, task configuration, alarm task, equipment detection progress and alarm events corresponding to each terminal device, the data generated during the equipment detection process can be collected and managed, so that users can find, analyze and process relevant data, manage the configuration of security audit alarm policies, monitor the execution status of tasks, and configure task scheduling execution, realize custom policy management and task scheduling management, monitor and track each security audit, and improve the automation and flexibility of security operations.

[0085] In this embodiment, the log data corresponding to the terminal device and the device information corresponding to the terminal device can be obtained; the alarm strategy of the terminal device is generated according to the device information and the alarm elements corresponding to the device information; the alarm strategy is parsed to generate the task configuration corresponding to the alarm strategy, and the corresponding alarm task is generated according to the task configuration; the terminal device is detected according to the alarm task and the log data to determine the alarm event corresponding to the terminal device and generate the corresponding alarm information, and the alarm information is sent to the terminal device. The method of the present application, after obtaining the device information of the terminal device, can generate the alarm strategy of the terminal device according to the device information and the alarm elements corresponding to the device information, and the user does not need to manually input the alarm strategy. After determining the alarm strategy, the alarm strategy can be parsed to generate the task configuration corresponding to the alarm strategy, and the corresponding alarm task is generated according to the task configuration, and then the terminal device is detected according to the alarm task and the log data, and the user does not need to manually generate the corresponding task according to the alarm strategy and detect it. Through such a setting, the automatic detection of the device can be realized, thereby improving the accuracy and efficiency of security auditing.

[0086] The device detection method of the present application is described below with a specific embodiment.

[0087] Embodiment 2

[0088] In a specific embodiment, a company wants to regularly conduct security audits on all terminal devices within the company. The specific device detection process is as follows:

[0089] In the first step, the server obtains the device information corresponding to each terminal device; obtains the device log generated by each terminal device, formats the device log using a preset standard format to obtain a standard log for each terminal device; extracts the standard log according to preset key fields to obtain the log data corresponding to each terminal device.

[0090] In the second step, the server determines the alarm element corresponding to the device information of each terminal device in the preset device element correspondence library; and generates an alarm strategy for each terminal device according to the device information and the alarm element corresponding to the device information.

[0091] In the third step, the server parses the alarm strategy to generate a task configuration corresponding to the alarm strategy, and generates a corresponding alarm task according to the task configuration.

[0092] In the fourth step, the server detects each terminal device according to the alarm task and log data to determine the alarm event corresponding to the terminal device. After the server detects the alarm event, it can generate corresponding alarm information according to the alarm event and send the alarm information to the terminal device.

[0093] Figure 3 This is a schematic diagram of the structure of a server according to an embodiment of the present application. Figure 3 As shown, the server includes: a data acquisition module 31, a policy configuration module 32, a task generation module 33 and an alarm processing module 34. The data acquisition module 31 is used to obtain the log data corresponding to the terminal device and the device information corresponding to the terminal device; the policy configuration module 32 is used to generate the alarm policy of the terminal device according to the device information and the alarm elements corresponding to the device information; the task generation module 33 is used to parse the alarm policy to generate the task configuration corresponding to the alarm policy, and generate the corresponding alarm task according to the task configuration; the alarm processing module 34 is used to detect the terminal device according to the alarm task and the log data to determine the alarm event corresponding to the terminal device and generate the corresponding alarm information, and send the alarm information to the terminal device. In one embodiment, the description of the specific implementation function of the server can refer to steps S101-S104 in Example 1, which will not be repeated here.

[0094] Figure 4 This is a schematic diagram of the structure of a server according to another embodiment of the present application. Figure 4 As shown, the server includes: a processor 101, and a memory 102 that is communicatively connected to the processor 101; the memory 102 stores computer-executable instructions; the processor 101 executes the computer-executable instructions stored in the memory 102 to implement the steps of the device detection method in the above-mentioned method embodiments.

[0095] In the above server, the memory 102 and the processor 101 are electrically connected directly or indirectly to realize data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines, such as through a bus connection. The memory 102 stores computer-executable instructions for implementing the data access control method, including at least one software function module that can be stored in the memory 102 in the form of software or firmware. The processor 101 executes various functional applications and data processing by running the software programs and modules stored in the memory 102.

[0096] The memory 102 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory 102 is used to store programs, and the processor 101 executes the programs after receiving the execution instruction. Furthermore, the software programs and modules in the above-mentioned memory 102 may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.

[0097] The processor 101 may be an integrated circuit chip having the ability to process signals. The processor 101 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The methods, steps, and logic diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0098] An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the steps of each method embodiment of the present application.

[0099] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the appended claims.

[0100] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A device detection method, characterized in that: include: Obtaining log data corresponding to the terminal device and device information corresponding to the terminal device; Determine an alarm element corresponding to the device information of the terminal device in a preset device element correspondence library; Generate an alarm strategy for the terminal device according to the device information and the alarm element corresponding to the device information; The alarm element includes one or more of an alarm detection time period, an alarm detection frequency, an alarm threshold, and alarm program information; the alarm threshold includes one or more of an abnormal alarm threshold and a backlog alarm threshold; and the alarm program information includes program information that triggers an alarm when the terminal device is executed; Parsing the alarm strategy to generate a task configuration corresponding to the alarm strategy, and generating a corresponding alarm task according to the task configuration; Detecting the terminal device according to the alarm task and the log data to determine the alarm event corresponding to the terminal device and generate corresponding alarm information, and sending the alarm information to the terminal device; The device element correspondence library is obtained in the following manner: For each terminal device, obtain the historical detection frequency and historical detection time period of the terminal device, and generate the alarm detection frequency and alarm detection time period of the terminal device respectively according to the historical detection frequency and historical detection time period; Acquire historical alarm information of the terminal device, and determine an alarm threshold and / or alarm program information of the terminal device according to the historical alarm information; A device element correspondence library is generated based on the device information of each of the terminal devices, and the alarm detection time period, alarm detection frequency, alarm threshold and / or alarm program information corresponding to each of the terminal devices.

2. The method according to claim 1, characterized in that The method further comprises: If there is no alarm element corresponding to the device information of the terminal device in the device element correspondence library, alarm policy configuration prompt information is sent to the terminal device to prompt the user to input the alarm policy of the terminal device.

3. The method according to claim 1 or 2, characterized in that: The obtaining of log data corresponding to the terminal device specifically includes: Obtaining a device log generated by the terminal device, wherein the device log includes one or more of an operation log, a behavior log, and an event log; Formatting the device log using a preset standard format to obtain a standard log of the terminal device; The standard log is extracted according to preset key fields to obtain log data corresponding to the terminal device, wherein the key fields include one or more of device information, time information, and program information.

4. The method according to claim 1, characterized in that The detecting the terminal device according to the alarm task and the log data to determine the alarm event corresponding to the terminal device and generating corresponding alarm information specifically includes: Asynchronously and periodically detecting the log data of each of the terminal devices according to the alarm detection frequency in the alarm task; For each detection cycle, determining the data to be detected in the log data corresponding to the alarm detection time period; Determine whether there is alarm data exceeding the alarm threshold value, or alarm data corresponding to the alarm program information, in the data to be detected; If so, an alarm event and alarm information corresponding to the alarm event are generated according to one or more of the device information, the alarm data, and the time when the alarm data is generated.

5. The method according to claim 4, characterized in that The method further comprises: Stores the alarm strategy, task configuration, alarm tasks, device detection progress, and alarm events corresponding to each terminal device.

6. A server, characterized in that: include: A data collection module, used to obtain log data corresponding to the terminal device and device information corresponding to the terminal device; A policy configuration module, used to determine an alarm element corresponding to the device information of the terminal device in a preset device element correspondence library; Generate an alarm strategy for the terminal device according to the device information and the alarm element corresponding to the device information; wherein the alarm element includes one or more of an alarm detection time period, an alarm detection frequency, an alarm threshold, and alarm program information; the alarm threshold includes one or more of an abnormal alarm threshold and a backlog alarm threshold; and the alarm program information includes program information corresponding to the terminal device that triggers an alarm when executed; A task generation module, used to parse the alarm strategy to generate a task configuration corresponding to the alarm strategy, and generate a corresponding alarm task according to the task configuration; An alarm processing module is used to detect the terminal device according to the alarm task and the log data to determine the alarm event corresponding to the terminal device and generate corresponding alarm information, and send the alarm information to the terminal device; Among them, the device element correspondence library is obtained in the following manner: for each terminal device, the historical detection frequency and historical detection time period of the terminal device are obtained, and according to the historical detection frequency and historical detection time period, the alarm detection frequency and alarm detection time period of the terminal device are respectively generated; the historical alarm information of the terminal device is obtained, and the alarm threshold and / or alarm program information of the terminal device is determined according to the historical alarm information; according to the device information of each of the terminal devices, and the alarm detection time period, alarm detection frequency, alarm threshold and / or alarm program information corresponding to each of the terminal devices, a device element correspondence library is generated.

7. A server, characterized in that: comprising a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5 when executed by a processor.

9. A computer program product, characterized in that The computer program product includes computer program codes, and when the computer program codes are executed on a computer, the computer is enabled to implement the method according to any one of claims 1 to 5.