Log retrieval auxiliary method and device, medium, electronic equipment and product
By introducing statement assist controls in the log analysis interface, users can automatically generate or analyze search statements, solving the problems of complexity and learning cost of search statements in log services, and improving the efficiency and accuracy of log search analysis.
Patent Information
- Application Number
- CN202411112034.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-11-08
AI Technical Summary
In the search analysis of log services, users need to configure complex search statements, which leads to high cost of understanding and learning, and it is difficult to quickly generate search statements that meet the needs.
Provide a log retrieval assistive method. By adding statement assistive controls to the log analysis interface, users can select statements to generate cards or statement analysis cards, automatically generate or analyze search statements, reducing the need for users to manually write search statements.
It simplifies the generation and understanding of search statements, improves the efficiency of log search analysis, reduces the user's learning cost of search statements, and supports rapid adjustment and rewriting of search statements to ensure the accuracy of log search analysis.
Smart Images

Figure CN118916330A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a log retrieval auxiliary method, device, medium, electronic device and product. Background Art
[0002] With the development of computer technology, the operating status and events of computer systems can be recorded through logs to monitor the operating status or trace the source of abnormal events. In related technologies, the generated log files can be managed and analyzed through log services.
[0003] In the retrieval analysis of log services, users are usually required to configure retrieval statements to achieve the retrieval and analysis of the log data they need. This process places high demands on users to configure retrieval statements, and the cost of understanding and learning retrieval statements is too high. Summary of the invention
[0004] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0005] In a first aspect, the present disclosure provides a log retrieval auxiliary method, the method comprising: Displaying a log analysis interface, wherein the log analysis interface includes a statement auxiliary control; In response to receiving a confirmation operation on the sentence auxiliary control, an interactive interface of the search sentence is displayed, wherein the interactive interface displays interactive cards, and the interactive cards include a sentence generation card and a sentence analysis card, wherein the sentence generation card is used to trigger the generation of a search sentence, and the sentence analysis card is used to trigger the generation of description information of the search sentence, and the description information is used to characterize the meaning of each sub-sentence in the search sentence; In response to receiving a user's selection operation on the interaction card, based on input information corresponding to the selected interaction card, obtaining search statement information generated by the interaction card triggering the interaction card; The search statement information is displayed.
[0006] In a second aspect, the present disclosure provides a log retrieval auxiliary device, the device comprising: A first display module is used to display a log analysis interface, wherein the log analysis interface includes a statement auxiliary control; A second display module is used to display an interactive interface of the search statement in response to receiving a confirmation operation on the statement auxiliary control, wherein the interactive interface displays interactive cards, and the interactive cards include a statement generation card and a statement analysis card, wherein the statement generation card is used to trigger the generation of a search statement, and the statement analysis card is used to trigger the generation of description information of the search statement, and the description information is used to characterize the meaning of each sub-statement in the search statement; A first determination module is used for, in response to receiving a selection operation of the user on the interaction card, obtaining search statement information triggered by the interaction card based on input information corresponding to the selected interaction card; The third display module is used to display the search statement information.
[0007] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which implements the steps of the method described in the first aspect when the computer program is executed by a processing device.
[0008] In a fourth aspect, the present disclosure provides an electronic device, including: a storage device having a computer program stored thereon; A processing device is used to execute the computer program in the storage device to implement the steps of the method described in the second aspect.
[0009] In a fifth aspect, the present disclosure provides a computer program product, including a computer program, which implements the steps of the method described in the first aspect when executed by a processor.
[0010] Therefore, in the above technical solution, a statement auxiliary control can be added to the log analysis interface of the log service so that the user can interact based on the statement auxiliary control to obtain the corresponding search statement information. And in this process, the user can choose to automatically generate the search statement based on his needs, without the need for the user to manually write the search statement, reducing the understanding and learning cost of the search statement, so as to improve the efficiency of log search and analysis. At the same time, it can also support users to analyze the search statement based on their needs, so that users can quickly understand the specific meaning of the search statement, so that users can quickly understand the search statement, and facilitate users to adjust and rewrite the search statement, so as to provide reliable data support for the effective search and analysis of the log.
[0011] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings: Figure 1 The present invention is a flowchart of a log retrieval auxiliary method provided based on an embodiment of the present invention.
[0013] Figure 2 It is a schematic diagram of a log analysis interface provided based on an embodiment of the present disclosure.
[0014] Figure 3 It is a schematic diagram of an interactive interface provided based on an embodiment of the present disclosure.
[0015] Figure 4 It is a schematic diagram of an interactive interface provided based on another embodiment of the present disclosure.
[0016] Figure 5 It is a block diagram of a log retrieval auxiliary device provided according to an embodiment of the present disclosure.
[0017] Figure 6 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0019] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0020] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0021] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0022] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0023] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0024] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0025] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0026] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0027] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0028] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0029] Figure 1 As shown, it is a flow chart of a log retrieval auxiliary method provided according to an embodiment of the present disclosure, such as Figure 1 As shown, the method may include: In step 11, a log analysis interface is displayed, wherein the log analysis interface includes a statement auxiliary control.
[0030] The method can be applied to a log service platform, and when performing log retrieval and analysis based on the log service, a log analysis interface can be displayed. Figure 2 As shown, there is an input area A1 for search statements. If the user is familiar with the search statements, the user can directly enter the search statement in the input area to perform log search analysis based on the input search statement. If the user is not familiar with the search statement and it is difficult to directly write the search statement, the log analysis interface in this scenario includes a statement auxiliary control A2. The user can select the statement auxiliary control to automatically generate a search statement based on the user's needs, effectively reducing the high skill requirements of the user for log search analysis.
[0031] In step 12, in response to receiving a confirmation operation on the statement auxiliary control, an interactive interface of the retrieval statement is displayed, wherein the interactive interface displays interactive cards, wherein the interactive cards include a statement generation card and a statement analysis card, wherein the statement generation card is used to trigger the generation of a retrieval statement, and the statement analysis card is used to trigger the generation of description information of the retrieval statement, and the description information is used to characterize the meaning of each sub-statement in the retrieval statement.
[0032] As an example, the user can click the sentence auxiliary control to confirm the operation to trigger the automatic generation of the search sentence. Figure 3 FIG. 1 is a schematic diagram of an interactive interface, which may include multiple interactive cards, such as a sentence generation card K1 and a sentence analysis card K2. Figure 3 shown.
[0033] In one scenario, the user has his own search needs, and the user can click on the sentence generation card to describe his needs and generate the corresponding search sentence based on his needs. In another scenario, the user usually searches for information to obtain a search sentence that may meet his needs. In order to further determine whether the search sentence meets his needs, the user can click on the sentence analysis card to analyze the search sentence to help the user further understand the specific meaning of the search sentence, thereby realizing auxiliary reference for log search.
[0034] In this embodiment, the division of sub-clauses in the search statement can be preset. For example, there are usually search keywords in the search statement, such as: SELECT count(*),timestamp / 60×60 WHERE status>400 GROUP BYtimestamp / 60×60 Among them, SELECT, WHERE, and GROUP BY are the keywords in the search statement. As an example, the statement corresponding to each keyword can be used as a sub-statement. The above search statement contains three sub-statements, namely: Substatement 1: SELECT count(*),timestamp / 60×60 Substatement 2: WHERE status>400 Substatement 3: GROUP BY timestamp / 60×60 As another example, the search sentence may be input into a large language model, so as to split the search sentence based on the analysis capability of the large language model to obtain multiple sub-sentences and their description information.
[0035] In step 13, in response to receiving a user's selection operation on an interactive card, based on input information corresponding to the selected interactive card, the search statement information generated by the interactive card triggering is obtained.
[0036] Among them, the user can select the corresponding interactive card based on his actual use needs. For example, if the user wants to generate a search statement, he can select the sentence generation card. If the user wants to understand the meaning of each part of a search statement, he can select the sentence analysis card. Furthermore, the input information corresponding to the interactive card can represent the information obtained based on the interactive card. For example, in the sentence generation card, the input information can be a description text used to describe the function of the search statement, which can be described in natural language. For example, in the sentence analysis card, the input information can be a structured search statement.
[0037] As an example, the input information obtained may be input into a sentence processing model so that the sentence processing model generates corresponding search sentence information based on the input information. The search sentence information is used to indicate the return information generated under the interaction card triggered by the input information.
[0038] In step 14, the search statement information is displayed.
[0039] As an example, the search statement information may be output and displayed in an interactive interface to prompt the user so that the user can determine a corresponding search statement based on the search statement information to implement log search analysis.
[0040] Therefore, in the above technical solution, a statement auxiliary control can be added to the log analysis interface of the log service so that the user can interact based on the statement auxiliary control to obtain the corresponding search statement information. And in this process, the user can choose to automatically generate the search statement based on his needs, without the need for the user to manually write the search statement, reducing the understanding and learning cost of the search statement, so as to improve the efficiency of log search and analysis. At the same time, it can also support users to analyze the search statement based on their needs, so that users can quickly understand the specific meaning of the search statement, so that users can quickly understand the search statement, and facilitate users to adjust and rewrite the search statement, so as to provide reliable data support for the effective search and analysis of the log.
[0041] In a possible embodiment, at least one candidate sentence description text is displayed in the sentence generation card. The candidate sentence description text is a text based on natural language description. Figure 3 As shown, a plurality of candidate sentence description texts may be displayed in the sentence generation card so that the user can select a description text that meets his / her usage requirements.
[0042] As an example, the candidate sentence description text is determined in the following manner: Get the search type corresponding to the log file to be searched.
[0043] The user can select the log file that he wants to retrieve and analyze from the log platform. As an example, multiple types of retrieval and analysis of log files can be pre-set to indicate the intention of retrieval and analysis of data in the log files, such as the retrieval type can include security analysis type, access analysis type, performance analysis type, etc.
[0044] Afterwards, the candidate sentence description text is determined from a description text library corresponding to the search type, and a plurality of sentence description texts are configured in the description text library under each type.
[0045] Accordingly, based on the experience of search analysis and historical search statements, the corresponding description texts under different types can be pre-set. For example, under the security analysis type, the sentence description text of the search statement used for security analysis can be pre-set and added to its corresponding description text library. Under the access analysis type, the sentence description text of the search statement used for access analysis can be pre-set and added to its corresponding description text library. Therefore, after obtaining the search type, the candidate sentence description text for display can be determined from each search type.
[0046] like Figure 3As shown, the retrieval types include security analysis type, access analysis type, and performance analysis type. Multiple texts can be selected from multiple statement description texts corresponding to the above types as candidate statement description texts to prompt the user, so that the user can directly select the text he needs from the candidate statement description texts, saving the user's input operation and simplifying the user's operation process.
[0047] As an example, if there are multiple search types, the display order of the multiple search types can be preset. Then, when displaying the candidate sentence description text, the candidate sentence description text under the search type corresponding to the first display order can be displayed, and the candidate sentence description text under the search types of other display orders is hidden. Afterwards, in response to receiving a selection operation for a search type of other display order, the candidate sentence description text under the selected search type is displayed so as to be displayed to the user and facilitate the user's selection.
[0048] As an example, for each search type, the candidate sentence description texts may be randomly selected from the description text library, or may be selected from high to low according to the usage frequency, which is not limited in the present disclosure.
[0049] In one scenario, if the displayed candidate sentence description text contains the text required by the user, the user can directly click to select it. In another scenario, if the displayed candidate sentence description text does not contain the text required by the user, the method may further include: In response to receiving an update operation on the candidate sentence description text under the search type, the candidate sentence description text is re-determined from the description text library corresponding to the search type and displayed.
[0050] For example, in Figure 3 An update control K3 may be displayed in the interactive interface shown, and the user may click on the update control to trigger the update operation of the candidate sentence description text, and then the candidate sentence description text may be re-determined from the description text library corresponding to the retrieval type and displayed. As an example, N sentence description texts that are not displayed in the description text library may be randomly selected as candidate sentence description texts for display, so that new candidate sentence description texts may be displayed to the user so that the user may choose from them, which meets the user's usage needs and simplifies the user's operation process. As an example, the corresponding update control may be associated with each retrieval type, and in this process, only the candidate sentence description text under the retrieval type corresponding to the selected update control may be updated.
[0051] Accordingly, in response to receiving the user's selection operation on the interaction card, obtaining the search statement information generated by the interaction card based on the input information corresponding to the selected interaction card may include: In response to receiving the user's selection operation on the candidate sentence description text in the sentence generation card, the selected candidate sentence description text is used as the input information to generate a first search sentence corresponding to the input information and description information of the first search sentence, wherein the search sentence information includes the first search sentence and the description information.
[0052] Continuing with the above example, if the user finds text that meets his needs in the displayed candidate sentence description text, the user can click on the candidate sentence description text. In response to the selection operation, the selected candidate sentence description text can be used as the input information to generate a search sentence.
[0053] Therefore, through the above technical solution, candidate sentence description texts can be recommended and displayed to users in interactive cards. Users do not need to describe their search intentions, and can directly select input information from the displayed candidate sentence description texts, further simplifying the operation of generating search sentences and improving user experience.
[0054] In a possible embodiment, the displayed candidate sentence description text may not contain the description text required by the user, and the user can directly input the sentence description text in this scenario. For example, an input box may also be displayed in the interactive interface, and the user can input in the input box to obtain corresponding input information. As an example, if the input information is a description text in a natural language, it can be determined that a corresponding search statement and its description information are generated based on the description text. If the input information is a search statement, it can be determined that its description information is generated based on the search statement. In order to facilitate the user's subsequent operations, the label corresponding to the search type can also be displayed in the input box, so that the user can quickly view the recommended candidate sentence description texts under each search type based on the label of the search type.
[0055] In a possible embodiment, the grammatical rules for searching and analyzing log files under different log platforms may be different. Accordingly, based on the input information corresponding to the selected interactive card, determining the search statement information corresponding to the input information may include: The input information is input into a sentence processing model to obtain the retrieval sentence information, wherein the sentence processing model is implemented based on a large language model, and the sentence processing model is obtained by fine-tuning the large language model based on the training data generated by the grammatical rules corresponding to the log file to be analyzed. For example, corresponding training data can be generated by the retrieval sentences in the log system within the historical period, such as the description text within the historical period and the corresponding retrieval sentence for log retrieval can be used as training data, and the large language model is fine-tuned based on the training data to determine the sentence processing model corresponding to the grammatical rule. Among them, the fine-tuning training method of the large language model commonly used in the art can be adopted, and the present disclosure does not limit this. In this way, the matching degree of the generated retrieval sentence to the log file can be guaranteed, and the availability of the generated retrieval sentence can be improved. At the same time, there is no need for users to learn grammatical rules, which further reduces the manual workload, and at the same time, effective retrieval analysis of log files can be achieved.
[0056] In a possible embodiment, the displaying of the search statement information may include: Displaying the first search statement in the first area of the search statement display card; The description information is displayed in a second area of the search statement display card, wherein the fields in the sub-statement are displayed in the form of a selection menu.
[0057] The search statement information can be displayed in the interactive interface in the form of a search statement display card. Figure 4 The diagram is a schematic diagram of the interactive interface. The first search statement is displayed in the first area 511 of the search statement display card 51, and the description information is displayed in the second area 512 of the search statement display card 51. Thus, the specific meaning of the search statement can be displayed to the user while displaying the generated search statement to the user, so that the user can quickly understand the search statement and provide reliable support for the user to determine whether the search statement meets his search needs. At the same time, it can also support the user to rewrite the search statement, ensuring the accuracy of subsequent log search analysis.
[0058] Moreover, in this embodiment, the fields in the sub-statement are displayed in the form of a selection menu, which can not only highlight the fields in the search statement so that the user can confirm whether they are the fields required by the user, but also facilitate the user to switch the fields in the sub-statement based on the selection menu, further simplifying the generation process of the search statement.
[0059] In a possible embodiment, the method may further include: Get the log index field corresponding to the log file to be retrieved.
[0060] The log files in the log database may be pre-configured with index fields that can be searched, that is, search fields corresponding to the log files, which can be obtained through the access interface of the log database.
[0061] Afterwards, it is determined whether the field in the first search statement belongs to the log index field.
[0062] Among them, the fields in the first search statement are determined based on the statement description text when they are generated. For example, if the statement description text contains a description of the "time" field, then in the generated first search statement, the field can be represented as the "time" field, and in the log index field corresponding to the log file, the field corresponding to the time is set to "T_time". Therefore, in this embodiment, the fields in the first search statement can be further matched with the log index field to determine whether the two are consistent.
[0063] If it is determined that there are fields in the first search statement that do not belong to the log index field, a prompt message is output, where the prompt message is used to prompt to modify the fields in the first search statement.
[0064] As an example, for the field "time" in the first search statement, after matching it with the log index field, no consistent field is determined. At this time, it is determined that the "time" in the first search statement does not belong to the log index field. When searching the log based on the first search statement, it is difficult to achieve accurate and effective retrieval of the log. Therefore, in this scenario, a prompt message can be output to prompt the user to modify the field to ensure the accuracy of the obtained search statement and provide an accurate search statement for subsequent log retrieval analysis.
[0065] In a possible embodiment, the method may further include: In response to receiving a selection operation of a user on a selection menu corresponding to a target field in the first search statement, displaying candidate fields in the selection menu, the candidate fields being multiple fields in a log index field corresponding to the log file to be searched; In response to receiving the user's selection operation on a candidate field, the target field in the first search statement is updated based on the selected candidate field, and the selected candidate field is displayed in the selection menu.
[0066] Accordingly, the user can switch the fields in the generated search statement through the selection menu. The user can click on the selection menu, which can be a drop-down menu. Accordingly, the log index field can be displayed in the drop-down menu. As an example, the user can browse multiple candidate fields through sliding operations to select the required field from them. After the user selects the candidate field, the field corresponding to the first search statement can be replaced with the selected candidate field. As in the example above, the user selects the "T_time" field in the selection menu of the "time" field in the first search statement, then "T_time" can be displayed in the selection menu, and the "time" in the first search statement can be updated to "T_time".
[0067] Therefore, the currently selectable fields can be displayed to the user during the process of field modification, so that the modified fields belong to the log index fields, ensuring the validity of the modified fields, thereby ensuring the availability and accuracy of the generated search statements, and realizing effective processing of log retrieval analysis.
[0068] In a possible embodiment, the search statement information is displayed through a search statement display card, and the search statement display card also displays a search statement generation control, such as Figure 4 As shown in control 52 in FIG.
[0069] Accordingly, the method may further include: In response to receiving a selection operation of the user on the search statement generation control, a second search statement and description information of the second search statement are generated based on the input information, wherein the first search statement and the second search statement are different.
[0070] As an example, for the same description text, it can usually be implemented through a variety of different search statements. In this embodiment, the user can regenerate the search statement information through the search statement generation control to obtain different search statement information corresponding to the same input information. For example, the input information can be input into the statement processing model again to obtain a second search statement and the description information of the second search statement. For another example, a prompt text input statement processing model can also be constructed based on the input information and the first search statement to constrain the statement processing model in the prompt text to generate different search statements.
[0071] Accordingly, the displaying of the search statement information may include: The search statement display card displays labels of multiple tab pages and search statement information corresponding to the tab page of the target label, wherein each tab page is used to display a candidate search statement and description information of the candidate search statement, the candidate search statement includes the first search statement and the second search statement, and the target label is one of the labels of the multiple tab pages.
[0072] like Figure 4 As shown, labels of multiple tabs of the card can be displayed in the search statement, such as label 1 and label 2. For example, the tab corresponding to label 1 is used to display the first search statement and its description information, and the tab corresponding to label 2 is used to display the second search statement and its description information. Among them, multiple second search statements and their description information can be generated based on the search statement generation control, and can be displayed separately through multiple tabs. The upper limit of the number of generated search statements can be set based on the actual application scenario, and the present disclosure does not limit this.
[0073] When the user selects tag 1, tag 1 can be used as the target tag, and the candidate search sentence corresponding to tag 1 and its description information can be displayed in the search sentence display card, such as Figure 4 As shown. The user can switch and view different search statement information by selecting the corresponding label. Therefore, through the above technical solution, multiple search statement information can be generated for the same input information, so that the user can compare the multiple search statement information to select the search statement that meets his needs for log search analysis, further improving the user's interactive experience, and providing users with more accurate and comprehensive search statements.
[0074] In a possible embodiment, the search statement information is displayed through a search statement display card, and the search statement display card also displays a confirmation control of the search statement, such as Figure 4 As shown in control 53 in FIG.
[0075] Accordingly, the method may further include: In response to receiving a selection operation of the confirmation control by the user, performing a log search using the search statement displayed in the search statement display card as a target search statement; A search tag is associated with the target search statement to obtain feedback information corresponding to the target search statement.
[0076] As an example, when the user believes that the currently generated search statement meets his needs, he can directly perform log search based on the generated search statement by selecting the confirmation control to realize the search analysis of the log. For example, when the user selects the confirmation control when the tab page corresponding to label 2 is displayed, the search statement displayed in the tab page corresponding to label 2 can be used as the target search statement to perform log search operation to obtain the search result, which can further simplify the operation process of log search analysis. In addition, when the user directly performs log search based on the generated search statement by selecting the confirmation control, it can be considered that the search statement meets the user's use needs, and the user's feedback information on the search statement can be determined based on this, such as associating a search tag with the target search statement, and the search tag can indicate that the user's satisfaction with the generated search statement is high. In this process, the feedback information can be obtained without the user performing additional operations. On the one hand, the generated search statement can be evaluated based on the feedback information, such as determining the accuracy and adoption rate of the generated search statement, and at the same time, new training data can be generated based on the feedback information to adjust the parameters of the statement processing model to further improve the accuracy of the statement processing model.
[0077] In a possible embodiment, the search statement information is displayed through a search statement display card, and the search statement display card also displays a modification control of the search statement, such as Figure 4 As shown in control 54 in FIG.
[0078] Accordingly, the method may further include: In response to receiving the user's selection operation on the modification control, the search statement displayed in the search statement display card is input as an input search statement into the search statement input area of the log analysis interface.
[0079] Afterwards, in response to receiving the editing operation of the user in the input area, a log search is performed using the edited search sentence as a target search sentence.
[0080] In one scenario, the generated search statement does not directly meet the user's usage requirements, and the user needs to modify it before it can be applied to the subsequent log retrieval process. In this embodiment, the user can select the modification control to fill in the required search statement into the search statement input area of the log analysis interface, so as to edit the generated search statement in the input area and perform analysis based on the edited search statement.
[0081] A modification tag is associated with the input search statement to obtain feedback information corresponding to the target search statement.
[0082] In this embodiment, when the user modifies the generated search statement by selecting the modification control and then performs a log search, it can be considered that the search statement partially meets the user's usage requirements, and the user's feedback information on the search statement can be determined, such as the target search statement can be associated with a modification label, and the modification label can indicate that the user's satisfaction is medium. Similarly, in this process, the feedback information can be obtained without the user performing additional operations, so as to evaluate the generated search statement based on the feedback information, such as determining the accuracy and adoption rate of the generated search statement, simplifying the process of obtaining feedback information and achieving accurate evaluation of the search statement.
[0083] In a possible embodiment, the log analysis interface also includes an input area for search statements, such as Figure 2 As shown in the input box A1.
[0084] Accordingly, in response to receiving the user's selection operation on the interaction card, obtaining the search statement information generated by the interaction card based on the input information corresponding to the selected interaction card may include: If there is a search sentence in the input area, in response to receiving the user's selection operation on the sentence analysis card, the search sentence in the input area is used as input information to determine the description information of the search sentence, and the search sentence information includes the description information of the search sentence.
[0085] In actual application scenarios, users can obtain search statements by consulting materials, but may not fully understand the specific meaning or structure of the search statement. In this scenario, users can select a statement analysis card to analyze the search statement to determine its descriptive information.
[0086] As an example, a user can enter the search statement he or she obtains in the input area. When the user subsequently selects a sentence analysis card, the search statement in the input area can be used as the search statement to be analyzed. For example, the search statement can be input into a sentence processing model to obtain description information of the search statement.
[0087] Accordingly, displaying the search statement information may include: displaying the description information in a search statement display card, wherein the fields in the sub-statement are displayed in the form of a selection menu. The display method is similar to that described above and will not be repeated here.
[0088] As another example, if there is no search statement in the input area, in response to receiving the user's selection operation on the statement analysis card, a prompt message can be output to prompt the user to enter a search statement, and then the search statement entered by the user is used as input information to determine the description information of the search statement.
[0089] Therefore, through the above technical solution, users can analyze the search statements they obtain to determine the meaning of each sub-statement in the search statement, so that users can quickly and accurately understand the search statement, reducing the cost of understanding and learning. At the same time, it also enables users to modify the search statement based on their needs later, improve the accuracy of the search statement used for log retrieval, thereby improving the accuracy and efficiency of log retrieval and enhancing the user experience.
[0090] Based on the same inventive concept, the present disclosure also provides a log retrieval auxiliary device, such as Figure 5 As shown, the device 10 comprises: A first display module 100 is used to display a log analysis interface, wherein the log analysis interface includes a statement auxiliary control; A second display module 200 is used to display an interactive interface of a search statement in response to receiving a confirmation operation on the statement auxiliary control, wherein the interactive interface displays interactive cards, and the interactive cards include a statement generation card and a statement analysis card, wherein the statement generation card is used to trigger the generation of a search statement, and the statement analysis card is used to trigger the generation of description information of the search statement, and the description information is used to characterize the meaning of each sub-statement in the search statement; The first determination module 300 is used for obtaining the search statement information generated by triggering the interaction card based on the input information corresponding to the selected interaction card in response to receiving the user's selection operation on the interaction card; The third display module 400 is used to display the search statement information.
[0091] Optionally, at least one candidate sentence description text is displayed in the sentence generation card; The first determining module comprises: The first determination submodule is used to respond to receiving the user's selection operation on the candidate sentence description text in the sentence generation card, use the selected candidate sentence description text as the input information, and generate a first search sentence corresponding to the input information and description information of the first search sentence, wherein the search sentence information includes the first search sentence and the description information.
[0092] Optionally, the candidate sentence description text is determined by: Get the search type corresponding to the log file to be searched; Determine the candidate sentence description text from the description text library corresponding to the search type, wherein the description text library under each type is configured with a plurality of sentence description texts; The device also includes: The first processing module is used to, in response to receiving an update operation on the candidate sentence description text under the search type, re-determine the candidate sentence description text from the description text library corresponding to the search type and display it.
[0093] Optionally, the third display module includes: A first display submodule, used to display the first search statement in a first area of a search statement display card; The second display submodule is used to display the description information in the second area of the search statement display card, wherein the fields in the substatement are displayed in the form of a selection menu.
[0094] Optionally, the device further comprises: The acquisition module is used to obtain the log index field corresponding to the log file to be retrieved; A second determination module, used to determine whether a field in the first search statement belongs to the log index field; The output module is used to output prompt information if it is determined that there are fields in the first search statement that do not belong to the log index field, and the prompt information is used to prompt to modify the fields in the first search statement.
[0095] Optionally, the device further comprises: a fourth display module, configured to display candidate fields in the selection menu in response to receiving a selection operation of the user on the selection menu corresponding to the target field in the first search statement, wherein the candidate fields are multiple fields in the log index field corresponding to the log file to be searched; The updating module is used for updating the target field in the first search statement based on the selected candidate field in response to receiving the user's selection operation on the candidate field, and displaying the selected candidate field in the selection menu.
[0096] Optionally, the search statement information is displayed via a search statement display card, and the search statement display card also displays a search statement generation control; The device also includes: a generating module, configured to generate a second search statement and description information of the second search statement based on the input information in response to receiving a selection operation of the user on the search statement generating control, wherein the first search statement and the second search statement are different; The third display module includes: The third display submodule is used to display the labels of multiple tab pages on the search statement display card, as well as the search statement information corresponding to the tab page of the target label, wherein each of the tab pages is used to display a candidate search statement and description information of the candidate search statement, the candidate search statement includes the first search statement and the second search statement, and the target label is one of the labels of the multiple tab pages.
[0097] Optionally, the search statement information is displayed via a search statement display card, and the search statement display card also displays a confirmation control for the search statement; The device also includes: A first retrieval module, configured to perform log retrieval using the retrieval statement displayed in the retrieval statement display card as a target retrieval statement in response to receiving a selection operation of the confirmation control by the user; The first associating module is used to associate a search tag with the target search sentence to obtain feedback information corresponding to the target search sentence.
[0098] Optionally, the search statement information is displayed via a search statement display card, and the search statement display card also displays a modification control for the search statement; The device also includes: A second processing module is configured to input the search statement displayed in the search statement display card as an input search statement into the search statement input area of the log analysis interface in response to receiving the user's selection operation on the modification control; A second retrieval module, configured to perform log retrieval using the edited retrieval statement as a target retrieval statement in response to receiving an editing operation of the user in the input area; The second associating module is used to associate a modification tag with the input search sentence to obtain feedback information corresponding to the target search sentence.
[0099] Optionally, the log analysis interface also includes an input area for search statements; The first determining module comprises: The second determination submodule is used to determine the description information of the search statement by using the search statement in the input area as input information if there is a search statement in the input area in response to receiving the user's selection operation on the statement analysis card, wherein the search statement information includes the description information of the search statement.
[0100] Optionally, the first determining module includes: The third determination submodule is used to input the input information into a sentence processing model to obtain the retrieval sentence information, wherein the sentence processing model is implemented based on a large language model, and the sentence processing model is obtained by fine-tuning the large language model based on training data generated based on grammatical rules corresponding to the log file to be analyzed.
[0101] Reference below Figure 6 , which shows an electronic device (eg, Figure 1 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0102] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0103] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0104] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0105] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0106] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0107] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0108] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: displays a log analysis interface, wherein the log analysis interface includes a sentence auxiliary control; in response to receiving a confirmation operation on the sentence auxiliary control, displays an interactive interface for a search statement, wherein the interactive interface displays interactive cards, wherein the interactive cards include a sentence generation card and a sentence analysis card, wherein the sentence generation card is used to trigger the generation of a search statement, and the sentence analysis card is used to trigger the generation of description information of the search statement, wherein the description information is used to characterize the meaning of each sub-statement in the search statement; in response to receiving a user's selection operation on the interactive card, based on the input information corresponding to the selected interactive card, obtains the search statement information triggered by the interactive card; and displays the search statement information.
[0109] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0110] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0111] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a module does not limit the module itself in some cases. For example, the first display module may also be described as a "module for displaying a log analysis interface."
[0112] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0113] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0114] According to one or more embodiments of the present disclosure, Example 1 provides a log retrieval auxiliary method, wherein the method includes: Displaying a log analysis interface, wherein the log analysis interface includes a statement auxiliary control; In response to receiving a confirmation operation on the sentence auxiliary control, an interactive interface of the search sentence is displayed, wherein the interactive interface displays interactive cards, and the interactive cards include a sentence generation card and a sentence analysis card, wherein the sentence generation card is used to trigger the generation of a search sentence, and the sentence analysis card is used to trigger the generation of description information of the search sentence, and the description information is used to characterize the meaning of each sub-sentence in the search sentence; In response to receiving a user's selection operation on the interaction card, based on input information corresponding to the selected interaction card, obtaining search statement information generated by the interaction card triggering the interaction card; The search statement information is displayed.
[0115] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein at least one candidate sentence description text is displayed in the sentence generation card; The step of obtaining, in response to receiving a user's selection operation on the interaction card, search statement information generated by triggering the interaction card based on input information corresponding to the selected interaction card includes: In response to receiving the user's selection operation on the candidate sentence description text in the sentence generation card, the selected candidate sentence description text is used as the input information to generate a first search sentence corresponding to the input information and description information of the first search sentence, wherein the search sentence information includes the first search sentence and the description information.
[0116] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 2, wherein the candidate sentence description text is determined in the following manner: Get the search type corresponding to the log file to be searched; Determine the candidate sentence description text from the description text library corresponding to the search type, wherein the description text library under each type is configured with a plurality of sentence description texts; The method further comprises: In response to receiving an update operation on the candidate sentence description text under the search type, the candidate sentence description text is re-determined from the description text library corresponding to the search type and displayed.
[0117] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 2, wherein displaying the search statement information includes: Displaying the first search statement in the first area of the search statement display card; The description information is displayed in a second area of the search statement display card, wherein the fields in the sub-statement are displayed in the form of a selection menu.
[0118] According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 4, wherein the method further includes: Get the log index field corresponding to the log file to be retrieved; Determine whether a field in the first search statement belongs to the log index field; If it is determined that there are fields in the first search statement that do not belong to the log index field, a prompt message is output, where the prompt message is used to prompt to modify the fields in the first search statement.
[0119] According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 4, wherein the method further includes: In response to receiving a selection operation of a user on a selection menu corresponding to a target field in the first search statement, displaying candidate fields in the selection menu, the candidate fields being multiple fields in a log index field corresponding to the log file to be searched; In response to receiving the user's selection operation on a candidate field, the target field in the first search statement is updated based on the selected candidate field, and the selected candidate field is displayed in the selection menu.
[0120] According to one or more embodiments of the present disclosure, Example 7 provides the method of Example 2, wherein the search statement information is displayed through a search statement display card, and the search statement display card also displays a search statement generation control; The method further comprises: In response to receiving a selection operation of the user on the search statement generation control, generating a second search statement and description information of the second search statement based on the input information, wherein the first search statement and the second search statement are different; The displaying of the search statement information includes: The search statement display card displays labels of multiple tab pages and search statement information corresponding to the tab page of the target label, wherein each tab page is used to display a candidate search statement and description information of the candidate search statement, the candidate search statement includes the first search statement and the second search statement, and the target label is one of the labels of the multiple tab pages.
[0121] According to one or more embodiments of the present disclosure, Example 8 provides the method of Example 2, wherein the search statement information is displayed through a search statement display card, and the search statement display card also displays a confirmation control of the search statement; The method further comprises: In response to receiving a selection operation of the confirmation control by the user, performing a log search using the search statement displayed in the search statement display card as a target search statement; A search tag is associated with the target search statement to obtain feedback information corresponding to the target search statement.
[0122] According to one or more embodiments of the present disclosure, Example 9 provides the method of Example 2, wherein the search statement information is displayed through a search statement display card, and the search statement display card also displays a modification control of the search statement; The method further comprises: In response to receiving a selection operation of the user on the modification control, inputting the search statement displayed in the search statement display card as an input search statement into a search statement input area of the log analysis interface; In response to receiving the editing operation of the user in the input area, performing log retrieval using the edited retrieval statement as a target retrieval statement; A modification tag is associated with the input search statement to obtain feedback information corresponding to the target search statement.
[0123] According to one or more embodiments of the present disclosure, Example 10 provides the method of Example 1, wherein the log analysis interface further includes an input area for a search statement; The step of obtaining, in response to receiving a user's selection operation on the interaction card, search statement information generated by triggering the interaction card based on input information corresponding to the selected interaction card includes: If there is a search sentence in the input area, in response to receiving the user's selection operation on the sentence analysis card, the search sentence in the input area is used as input information to determine the description information of the search sentence, and the search sentence information includes the description information of the search sentence.
[0124] According to one or more embodiments of the present disclosure, Example 11 provides the method of Example 1, wherein the step of determining the search statement information corresponding to the input information based on the input information corresponding to the selected interaction card includes: The input information is input into a sentence processing model to obtain the retrieval sentence information, wherein the sentence processing model is implemented based on a large language model, and the sentence processing model is obtained by fine-tuning the large language model based on training data generated based on grammatical rules corresponding to the log file to be analyzed.
[0125] According to one or more embodiments of the present disclosure, Example 12 provides a log retrieval auxiliary device, the device comprising: A first display module is used to display a log analysis interface, wherein the log analysis interface includes a statement auxiliary control; A second display module is used to display an interactive interface of the search statement in response to receiving a confirmation operation on the statement auxiliary control, wherein the interactive interface displays interactive cards, and the interactive cards include a statement generation card and a statement analysis card, wherein the statement generation card is used to trigger the generation of a search statement, and the statement analysis card is used to trigger the generation of description information of the search statement, and the description information is used to characterize the meaning of each sub-statement in the search statement; A first determination module is used for, in response to receiving a selection operation of the user on the interaction card, obtaining search statement information triggered by the interaction card based on input information corresponding to the selected interaction card; The third display module is used to display the search statement information.
[0126] According to one or more embodiments of the present disclosure, Example 13 provides a computer-readable medium having a computer program stored thereon, which implements the steps of any of the methods described in Examples 1-11 when executed by a processing device.
[0127] According to one or more embodiments of the present disclosure, Example 14 provides an electronic device, including: a storage device having a computer program stored thereon; A processing device is used to execute the computer program in the storage device to implement the steps of the method described in any one of Examples 1-11.
[0128] According to one or more embodiments of the present disclosure, Example 15 provides a computer program product, including a computer program, which implements the steps of any one of the methods of Examples 1-11 when executed by a processor.
[0129] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0130] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0131] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Claims
1. A log retrieval auxiliary method, characterized in that: The method comprises: Displaying a log analysis interface, wherein the log analysis interface includes a statement auxiliary control; In response to receiving a confirmation operation on the sentence auxiliary control, an interactive interface of the search sentence is displayed, wherein the interactive interface displays interactive cards, and the interactive cards include a sentence generation card and a sentence analysis card, wherein the sentence generation card is used to trigger the generation of a search sentence, and the sentence analysis card is used to trigger the generation of description information of the search sentence, and the description information is used to characterize the meaning of each sub-sentence in the search sentence; In response to receiving a user's selection operation on the interaction card, based on input information corresponding to the selected interaction card, obtaining search statement information generated by the interaction card triggering the interaction card; The search statement information is displayed.
2. The method according to claim 1, characterized in that At least one candidate sentence description text is displayed in the sentence generation card; The step of obtaining, in response to receiving a user's selection operation on the interaction card, search statement information generated by triggering the interaction card based on input information corresponding to the selected interaction card includes: In response to receiving the user's selection operation on the candidate sentence description text in the sentence generation card, the selected candidate sentence description text is used as the input information to generate a first search sentence corresponding to the input information and description information of the first search sentence, wherein the search sentence information includes the first search sentence and the description information.
3. The method according to claim 2, characterized in that The candidate sentence description text is determined in the following manner: Get the search type corresponding to the log file to be searched; Determine the candidate sentence description text from the description text library corresponding to the search type, wherein the description text library under each type is configured with a plurality of sentence description texts; The method further comprises: In response to receiving an update operation on the candidate sentence description text under the search type, the candidate sentence description text is re-determined from the description text library corresponding to the search type and displayed.
4. The method according to claim 2, characterized in that: The displaying of the search statement information includes: Displaying the first search statement in the first area of the search statement display card; The description information is displayed in a second area of the search statement display card, wherein the fields in the sub-statement are displayed in the form of a selection menu.
5. The method according to claim 4, characterized in that The method further comprises: Get the log index field corresponding to the log file to be retrieved; Determine whether a field in the first search statement belongs to the log index field; If it is determined that there are fields in the first search statement that do not belong to the log index field, a prompt message is output, where the prompt message is used to prompt to modify the fields in the first search statement.
6. The method according to claim 4, characterized in that The method further comprises: In response to receiving a selection operation of a user on a selection menu corresponding to a target field in the first search statement, displaying candidate fields in the selection menu, the candidate fields being multiple fields in a log index field corresponding to the log file to be searched; In response to receiving the user's selection operation on a candidate field, the target field in the first search statement is updated based on the selected candidate field, and the selected candidate field is displayed in the selection menu.
7. The method according to claim 2, characterized in that The search statement information is displayed via a search statement display card, and the search statement display card also displays a search statement generation control; The method further comprises: In response to receiving a selection operation of the user on the search statement generation control, generating a second search statement and description information of the second search statement based on the input information, wherein the first search statement and the second search statement are different; The displaying of the search statement information includes: The search statement display card displays labels of multiple tab pages and search statement information corresponding to the tab page of the target label, wherein each tab page is used to display a candidate search statement and description information of the candidate search statement, the candidate search statement includes the first search statement and the second search statement, and the target label is one of the labels of the multiple tab pages.
8. The method according to claim 2, characterized in that: The search statement information is displayed via a search statement display card, and the search statement display card also displays a confirmation control for the search statement; The method further comprises: In response to receiving a selection operation of the confirmation control by the user, performing a log search using the search statement displayed in the search statement display card as a target search statement; A search tag is associated with the target search statement to obtain feedback information corresponding to the target search statement.
9. The method according to claim 2, characterized in that: The search statement information is displayed via a search statement display card, and the search statement display card also displays a modification control for the search statement; The method further comprises: In response to receiving a selection operation of the user on the modification control, inputting the search statement displayed in the search statement display card as an input search statement into a search statement input area of the log analysis interface; In response to receiving the editing operation of the user in the input area, performing log retrieval using the edited retrieval statement as a target retrieval statement; A modification tag is associated with the input search statement to obtain feedback information corresponding to the target search statement.
10. The method according to claim 1, characterized in that The log analysis interface also includes an input area for search statements; The step of obtaining, in response to receiving a user's selection operation on the interaction card, search statement information generated by triggering the interaction card based on input information corresponding to the selected interaction card includes: If there is a search sentence in the input area, in response to receiving the user's selection operation on the sentence analysis card, the search sentence in the input area is used as input information to determine the description information of the search sentence, and the search sentence information includes the description information of the search sentence.
11. The method according to claim 1, characterized in that: The step of determining the search statement information corresponding to the input information based on the input information corresponding to the selected interactive card includes: The input information is input into a sentence processing model to obtain the retrieval sentence information, wherein the sentence processing model is implemented based on a large language model, and the sentence processing model is obtained by fine-tuning the large language model based on training data generated based on grammatical rules corresponding to the log file to be analyzed.
12. A log retrieval auxiliary device, characterized in that: The device comprises: A first display module is used to display a log analysis interface, wherein the log analysis interface includes a statement auxiliary control; A second display module is used to display an interactive interface of the search statement in response to receiving a confirmation operation on the statement auxiliary control, wherein the interactive interface displays interactive cards, and the interactive cards include a statement generation card and a statement analysis card, wherein the statement generation card is used to trigger the generation of a search statement, and the statement analysis card is used to trigger the generation of description information of the search statement, and the description information is used to characterize the meaning of each sub-statement in the search statement; A first determination module is used for, in response to receiving a selection operation of the user on the interaction card, obtaining search statement information triggered by the interaction card based on input information corresponding to the selected interaction card; The third display module is used to display the search statement information.
13. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processing device, the steps of the method according to any one of claims 1 to 11 are implemented.
14. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 11.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
