TWI613557B - Method for querying system logs - Google Patents

Method for querying system logs Download PDF

Info

Publication number
TWI613557B
TWI613557B TW104138258A TW104138258A TWI613557B TW I613557 B TWI613557 B TW I613557B TW 104138258 A TW104138258 A TW 104138258A TW 104138258 A TW104138258 A TW 104138258A TW I613557 B TWI613557 B TW I613557B
Authority
TW
Taiwan
Prior art keywords
query
log
management device
max
req
Prior art date
Application number
TW104138258A
Other languages
Chinese (zh)
Other versions
TW201719456A (en
Inventor
林宏達
陳光兆
Original Assignee
神雲科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 神雲科技股份有限公司 filed Critical 神雲科技股份有限公司
Priority to TW104138258A priority Critical patent/TWI613557B/en
Publication of TW201719456A publication Critical patent/TW201719456A/en
Application granted granted Critical
Publication of TWI613557B publication Critical patent/TWI613557B/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

一種系統日誌查詢方法,由包括N筆依序編號的日誌且在回應一次日誌查詢時最多能外傳送Rmax筆日誌的日誌管理裝置執行,系統日誌查詢方法包含以下步驟:(A)接收要求回傳編號起始於Rstart的Rreq筆日誌的查詢指令;(B)定義出傳送起始參數值K,並根據查詢指令判斷日誌的編號中的最小者S是否小於Rstart,在判斷結果為肯定時設定K=S,否則設定K=Rstart;及(C)依據查詢指令,進行由編號為K的日誌及由編號為(S+N-Rmax)的日誌的其中一者開始回傳,其中,當判斷出N>Rmax、Rreq>Rmax,且Rreq等於預定數值M時,回傳編號為(S+N-Rmax)至(S+N-1)的日誌。 A system log query method is implemented by a log management device that includes N logs sequentially numbered and can transmit R max pen logs at most when responding to a log query. The system log query method includes the following steps: (A) receiving a request back The transmission number starts from the R req pen log query command of R start ; (B) defines the transmission start parameter value K, and determines whether the smallest S in the log number is smaller than R start according to the query instruction, and the judgment result is If yes, set K=S, otherwise set K=R start ; and (C) according to the query command, start the return by one of the log numbered K and the log numbered (S+NR max ). When it is judged that N>R max , R req >R max , and R req is equal to the predetermined value M, the log of the number (S+NR max ) to (S+N-1) is returned.

Description

系統日誌查詢方法 System log query method

本發明是有關於一種系統日誌查詢方法,特別是指一種能僅查詢最新系統日誌部分的系統日誌查詢方法。 The invention relates to a system log query method, in particular to a system log query method capable of querying only the latest system log part.

作業系統的系統日誌(System logs)依照時間逐一編號,隨時更新日誌,記錄系統中任何時間所發生的大小事件。系統管理者藉由查看系統日誌,能隨時掌握系統健康狀況,並依照本身需求,打造一個為自己量身而作的系統記錄環境。藉由靈活運用系統日誌,能提供更穩定的電腦使用環境。 The system log of the operating system is numbered one by one according to the time, and the log is updated at any time to record the size events occurring at any time in the system. By viewing the system log, the system administrator can keep abreast of the health of the system and create a system recording environment tailored to his needs. By using the system log flexibly, it can provide a more stable computer environment.

目前的系統日誌查詢方法,是由系統管理者操作一台查詢主機發出查詢指令到一台日誌管理裝置以要求該日誌管理裝置回傳日誌。然而,該日誌管理裝置接收到查詢指令後,僅能從所儲存的最舊的一筆日誌回傳,且該日誌管理裝置每次傳送日誌的筆數有一定的上限,故當該日誌管理裝置所儲存的日誌多於每次能傳送日誌的筆數的上限時,該查詢主機往往需分批發送多個查詢指令而使該日誌管理裝置從最舊的日誌開始多次回傳日誌到該查詢主機之後,該查詢主機才能接收到最新的幾筆日誌。但系統管理者往 往只需要查詢最新的幾筆日誌,故由最舊的一筆日誌開始回傳,不僅浪費時間,且浪費記憶體資源。 In the current system log query method, the system administrator operates a query host to issue a query command to a log management device to request the log management device to return the log. However, after receiving the query command, the log management device can only return from the stored oldest log, and the log management device has a certain upper limit for the number of logs sent each time, so when the log management device When the stored log is more than the maximum number of pens that can be sent each time, the query host often needs to send multiple query commands in batches, so that the log management device returns the log multiple times from the oldest log to the query host. The query host can receive the latest logs. But the system administrator goes It only needs to query the latest logs, so the oldest log starts to return, which not only wastes time, but also wastes memory resources.

因此,如何研發出一種有效率的系統日誌查詢方法,便成為相關業者所欲努力研究的方向。 Therefore, how to develop an efficient system log query method has become the direction that the relevant industry is trying to study.

因此,本發明之目的,即在提供一種系統日誌查詢方法。 Accordingly, it is an object of the present invention to provide a system log query method.

於是,本發明系統日誌查詢方法,由一組電子系統執行,該電子系統包含一台存有N筆被依序編號的日誌且在回應一次日誌查詢時最多能向外傳送Rmax筆日誌的日誌管理裝置,及一台與該日誌管理裝置連接的查詢主機,其中,該等日誌的編號中的一最小者為S,該方法包含一個步驟(A)、一個步驟(B),及一個步驟(C)。 Therefore, the system log query method of the present invention is executed by a group of electronic systems, and the electronic system includes a log storing N logs sequentially numbered and capable of transmitting R max pen logs at most when responding to a log query. a management device, and an inquiry host connected to the log management device, wherein a minimum of the log numbers is S, the method comprising a step (A), a step (B), and a step ( C).

在步驟(A)中,該日誌管理裝置接收一個由該查詢主機傳送的查詢指令,其中,該查詢指令要求回傳編號起始於Rstart的Rreq筆日誌。 In step (A), the log management apparatus receives a query command transmitted by the host query, wherein the query instruction requested the return of pen numbers starting from R req R start of the log.

在步驟(B)中,該日誌管理裝置定義出一傳送起始參數值K,並根據該查詢指令判斷是否S>Rstart,且在判斷結果為肯定時設定K=S,在判斷結果為否定時設定K=RstartIn the step (B), the log management device defines a transmission start parameter value K, and determines whether S>R start according to the query instruction, and sets K=S when the determination result is affirmative, and the determination result is negative. Set K=R start .

在步驟(C)中,該日誌管理裝置依據該查詢指令,進行由編號為K的日誌及由編號為(S+N-Rmax)的日誌的其中一者開始 回傳至該查詢主機,其中,當該日誌管理裝置判斷出N>Rmax、Rreq>Rmax,且Rreq等於一個預定數值M時,該日誌管理裝置回傳編號為(S+N-Rmax)至(S+N-1)的該等日誌至該查詢主機。 In step (C), the log management device performs, according to the query instruction, a log of the number K and a log of the number (S+NR max ) to start back to the query host, wherein When the log management device determines that N>R max , R req >R max and R req is equal to a predetermined value M, the log management device returns the numbers (S+NR max ) to (S+N-1). These logs are sent to the query host.

本發明之功效在於:藉由該日誌管理裝置接收該查詢指令後,回傳編號為(S+N-Rmax)至(S+N-1)的最新日誌至該查詢主機,縮短日誌的傳送次數及時間。 The effect of the present invention is that after receiving the query command by the log management device, the latest log with the number (S+NR max ) to (S+N-1) is returned to the query host, and the number of log transmissions is shortened and time.

1‧‧‧電子系統 1‧‧‧Electronic system

11‧‧‧日誌管理裝置 11‧‧‧Log management device

12‧‧‧查詢主機 12‧‧‧Query host

201~217‧‧‧步驟 201~217‧‧‧Steps

本發明之其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中:圖1是一種方塊圖,說明執行本發明系統日誌查詢方法的一個實施例的一組電子系統;及圖2是一種流程圖,說明該實施例的步驟流程。 Other features and advantages of the present invention will be apparent from the following description of the embodiments of the present invention. FIG. 1 is a block diagram illustrating a set of electronic systems that perform one embodiment of the system log query method of the present invention; Fig. 2 is a flow chart showing the flow of steps of the embodiment.

參閱圖1與圖2,本發明系統日誌查詢方法之一個實施例,由一組電子系統1執行。該電子系統1包含一台包括N筆被依序編號的日誌(log)且在回應一次日誌查詢時最多能向外傳送Rmax筆日誌的日誌管理裝置11,及一台與該日誌管理裝置11連接的查詢主機12,其中,該等日誌的編號中的一最小者為S,在本實施例中,編號最小者為最舊的日誌,反之,編號最大者為最新的日誌,但不 以此為限。在本實施例中該日誌管理裝置11以簡單磁碟綁定(just a bunch of disks,JBOD)磁碟櫃為例,該查詢主機12以伺服器主機(host)為例,但不以此為限。 Referring to Figures 1 and 2, an embodiment of the system log query method of the present invention is performed by a set of electronic systems 1. The electronic system 1 includes a log management device 11 including a log of N numbers sequentially numbered and capable of transmitting a maximum of R max pen logs in response to a log query, and a log management device 11 The connected query host 12, wherein a minimum of the numbers of the logs is S. In this embodiment, the lowest number is the oldest log, and the largest number is the latest log, but not Limited. In the embodiment, the log management device 11 takes a just a bunch of disks (JBOD) disk cabinet as an example. The query host 12 takes a server host as an example, but does not use this as an example. limit.

本發明系統日誌查詢方法之該實施例包含以下步驟。 This embodiment of the system log query method of the present invention comprises the following steps.

首先,在步驟201中,該日誌管理裝置11接收一則由該查詢主機12傳送的查詢指令,其中,該查詢指令要求回傳編號起始於Rstart的Rreq筆日誌。 First, in step 201, the log management unit 11 receives a query command by the host 12 transmits the query, wherein the query instruction requested the return of pen numbers starting from R req R start of the log.

接著,在步驟202中,該日誌管理裝置11根據該查詢指令判斷是否S>Rstart,若判斷結果為否定時,進行步驟203,若為肯定則進行步驟204。 Next, in step 202, the log management device 11 determines whether S>R start according to the query command, and if the determination result is negative, step 203 is performed, and if yes, step 204 is performed.

在步驟203中,該日誌管理裝置11定義一傳送起始參數值K=Rstart,並進行步驟205。 In step 203, the log management device 11 defines a transfer start parameter value K = Rstart and proceeds to step 205.

在步驟204中,該日誌管理裝置11定義一傳送起始參數值K=S,並進行步驟205。 In step 204, the log management device 11 defines a transfer start parameter value K=S and proceeds to step 205.

在步驟205中,該日誌管理裝置11判斷是否N>Rmax,若判斷結果為否定時,進行步驟206,若為肯定則進行步驟207。 In step 205, the log management device 11 determines whether N>R max , and if the determination result is negative, step 206 is performed, and if yes, step 207 is performed.

在步驟206中,該日誌管理裝置11判斷是否(S+N-1)<(K+Rreq-1),其中,(S+N-1)表示該等日誌的編號中的最大者,而(K+Rreq-1)表示該查詢指令要求回傳日誌中的最大編號,若判斷結果否定時,進行步驟208,若為肯定則進行步驟209。 In step 206, the log management device 11 determines whether (S + N - 1) < (K + R req - 1), where (S + N - 1) indicates the largest of the numbers of the logs, and (K+R req -1) indicates that the query command requires the maximum number in the logout log. If the result of the determination is negative, proceed to step 208. If yes, proceed to step 209.

在步驟208中,該日誌管理裝置11回傳編號為K至(K+Rreq-1)的該等日誌至該查詢主機12。 In step 208, the log management device 11 returns the logs numbered K to (K+R req -1) to the query host 12.

在步驟209中,該日誌管理裝置11回傳編號為K至(S+N-1)的該等日誌至該查詢主機12。 In step 209, the log management device 11 returns the logs numbered K to (S+N-1) to the query host 12.

接續步驟205,在步驟207中,該日誌管理裝置11判斷是否Rreq>Rmax,若判斷結果為否定時,進行步驟210,若為肯定則進行步驟211。 In the following step 205, in step 207, the log management device 11 determines whether R req > R max . If the determination result is negative, step 210 is performed, and if yes, step 211 is performed.

在步驟210中,該日誌管理裝置11判斷是否(S+N-1)<(K+Rreq-1),若判斷結果為否定時,進行步驟212,若為肯定則進行步驟213。 In step 210, the log management device 11 determines whether (S + N - 1) < (K + R req - 1), and if the result of the determination is negative, step 212 is performed, and if yes, step 213 is performed.

在步驟212中,該日誌管理裝置11回傳編號為K至(K+Rreq-1)的該等日誌至該查詢主機12。 In step 212, the log management device 11 returns the logs numbered K to (K+R req -1) to the query host 12.

在步驟213中,該日誌管理裝置11回傳編號為K至(S+N-1)的該等日誌至該查詢主機12。 In step 213, the log management device 11 returns the logs numbered K to (S+N-1) to the query host 12.

接續步驟207,在步驟211中,該日誌管理裝置11判斷是否Rreq等於一個預定數值M,若判斷結果為否定時,進行步驟214,若為肯定則進行步驟215。 Next, in step 211, the log management device 11 determines whether R req is equal to a predetermined value M. If the determination result is negative, step 214 is performed, and if yes, step 215 is performed.

在步驟214中,該日誌管理裝置11判斷是否(S+N-1)<(K+Rmax-1),若判斷結果為否定時,進行步驟216,若為肯定則進行步驟217。 In step 214, the log management device 11 determines whether or not (S + N - 1) < (K + R max - 1). If the result of the determination is negative, step 216 is performed, and if yes, step 217 is performed.

在步驟216中,該日誌管理裝置11回傳編號為K至(K+Rmax-1)的該等日誌至該查詢主機12。 In step 216, the log management device 11 returns the logs numbered K to (K+R max -1) to the query host 12.

在步驟217中,該日誌管理裝置11回傳編號為K至(S+N-1)的該等日誌至該查詢主機12。 In step 217, the log management device 11 returns the logs numbered K to (S+N-1) to the query host 12.

接續步驟211,在步驟215中,該日誌管理裝置11回傳編號為(S+N-Rmax)至(S+N-1)的該等日誌至該查詢主機12。其中,在此步驟中該日誌管理裝置11因為回應一次日誌查詢時最多只能向外傳送Rmax筆,故由編號(S+N-1)的最新日誌往前推,得知需從編號(S+N-Rmax)的日誌開始傳送。 Following the step 211, in step 215, the log management device 11 returns the logs numbered (S+NR max ) to (S+N-1) to the query host 12. In this step, the log management device 11 can only transmit the R max pen at most when responding to a log query, so the latest log of the number (S+N-1) is pushed forward, and the number is required to be learned ( The log of S+NR max ) starts to be transmitted.

要特別說明的是,該查詢主機12在接收該日誌管理裝置11回傳日誌前,雖有M的數據,但並不會有N、S及Rmax等數據,故若該查詢主機12要從編號最舊的日誌開始查詢時,會發出指示Rstart=0的查詢指令。 It should be particularly noted that the query host 12 has data of M before receiving the log back to the log management device 11, but there is no data such as N, S, and R max , so if the query host 12 wants to When the oldest log starts querying, a query command indicating R start =0 is issued.

以下以S=2001、N=1500、Rmax=400,且M=404來舉三個例子說明上述步驟;其中,例一與例二說明該查詢主機12需要從最舊編號的日誌開始查詢的情況,例三說明該查詢主機12只需要查詢最新的幾筆日誌的情況。 The following steps are illustrated by three examples with S=2001, N=1500, R max =400, and M=404; wherein, the first and second examples illustrate that the query host 12 needs to start the query from the oldest numbered log. In the case, the third example shows that the query host 12 only needs to query the latest logs.

例一:當該查詢主機12需要查詢從最舊編號開始的總共1000筆的日誌時,先發出指示Rstart=0且Rreq=1000的查詢指令,該日誌管理裝置11接收到該查詢指令之後,在步驟204設定 K=2001,最後在步驟216傳送編號2001~2400的該等日誌。該查詢主機12接收到編號2001~2400的該等日誌後得知S=2001且Rmax=400,該查詢主機12接著產生指示Rstart=2401且Rreq=400的查詢指令、指示Rstart=2801且Rreq=200的查詢指令,再傳送指示Rstart=2401且Rreq=400的查詢指令至該日誌管理裝置11。接著,該日誌管理裝置11依據該查詢指令,在步驟203設定K=2401後,最後在步驟212傳送編號2401~2800的該等日誌。接著,該查詢主機12再傳送指示Rstart=2801且Rreq=200的查詢指令至該日誌管理裝置11。接著該日誌管理裝置11依據該查詢指令在步驟203設定K=2801,最後在步驟212傳送編號2801~3000的該等日誌。 Example 1: When the query host 12 needs to query a total of 1000 logs starting from the oldest number, first issue a query instruction indicating R start =0 and R req = 1000, after the log management device 11 receives the query command The K=2001 is set in step 204, and finally the logs of the numbers 2001~2400 are transmitted in step 216. After the query host 12 receives the logs of the numbers 2001~2400 and learns that S=2001 and Rmax =400, the query host 12 then generates a query instruction indicating R start = 2401 and R req = 400, indicating R start = The query command of 2801 and R req = 200 transmits a query command indicating R start = 2401 and R req = 400 to the log management device 11. Next, the log management device 11 sets K=2401 in step 203 according to the query command, and finally transmits the logs of the numbers 2401 to 2800 in step 212. Next, the query host 12 transmits a query command indicating R start = 2801 and R req = 200 to the log management device 11. Next, the log management device 11 sets K=2801 in step 203 according to the query command, and finally transmits the logs of the numbers 2801 to 3000 in step 212.

例二:當該查詢主機12需要查詢從最舊編號開始的2000筆的日誌時,類似於上述步驟,該查詢主機12發出指示Rstart=0且Rreq=2000的查詢指令,且該日誌管理裝置11依據該查詢指令傳送編號2001~2400的該等日誌至該查詢主機12之後,該查詢主機12依序產生指示Rstart=2401且Rreq=400的查詢指令、指示Rstart=2801且Rreq=400的查詢指令、指示Rstart=3201且Rreq=400的查詢指令、指示Rstart=3601且Rreq=400的查詢指令,並依序發送該等查詢指令至該日誌管理裝置11。但與例一不同的是,該日誌管理裝置11在收到該指示Rstart=3201且Rreq=400的查詢指令後,會在步驟213傳送編號3201~3500的該等日誌。當該查 詢主機12收到該等日誌後,得知所有日誌的最大編號為3500,故不會再發送指示Rstart=3601且Rreq=400的查詢指令。 Example 2: When the query host 12 needs to query 2000 logs starting from the oldest number, similar to the above steps, the query host 12 issues a query instruction indicating R start =0 and R req = 2000, and the log management After the device 11 transmits the logs of the numbers 2001~2400 to the query host 12 according to the query command, the query host 12 sequentially generates a query instruction indicating R start = 2401 and R req = 400, indicating R start = 2801 and R. A query instruction of req = 400, a query instruction indicating R start = 3201 and R req = 400, a query instruction indicating R start = 3601 and R req = 400, and sequentially transmitting the query instructions to the log management apparatus 11. However, unlike the first example, after receiving the query command indicating R start = 3201 and R req = 400, the log management device 11 transmits the logs of the numbers 3201 to 3500 in step 213. After the query host 12 receives the logs, it is known that the maximum number of all logs is 3500, so the query command indicating R start =3601 and R req =400 will not be sent any more.

例三:當該查詢主機12只需要最新的幾筆日誌時,則發出指示Rstart=0且Rreq=404的查詢指令,該日誌管理裝置11接收到該查詢指令後,在步驟204設定K=S,最後在步驟215回傳編號為(S+N-Rmax)~(S+N-1),也就是回傳編號為3101~3500的該等日誌至該查詢主機12。其中,雖然在本實施例中Rstart=0,但可為其他數值。特別地,在本例中說明了,該查詢主機12藉由在查詢指令中設定Rreq等於該預定數值M,而讓該日誌管理裝置11據以判斷出Rreq等於M之後,在一次資料回傳中即回傳了最新的Rmax筆日誌。 Example 3: When the query host 12 only needs the latest logs, a query instruction indicating R start =0 and R req = 404 is issued, and after receiving the query command, the log management device 11 sets K in step 204. =S, finally at step 215, the number is returned to (S+NR max )~(S+N-1), that is, the logs with the number 3101~3500 are returned to the query host 12. However, although R start =0 in the present embodiment, it may be other values. Specifically, in the present example, the query host 12 causes the log management device 11 to determine that R req is equal to M after a data back is set by setting R req equal to the predetermined value M in the query command. The latest R max pen log was returned during the pass.

綜上所述,本發明系統日誌查詢方法,當系統管理者需要查詢最新的日誌時,藉由該查詢主機12傳送指示Rreq=M的該查詢指令至該日誌管理裝置11,而讓該日誌管理裝置11據以判斷出需要回傳最新的Rmax筆日誌,如此,只需該日誌管理裝置11的一次回傳,該查詢主機12便可得到最新的Rmax筆的日誌,能使在查詢最新的日誌時有相當高的效率,故確實能達成本發明之目的。 In summary, the system log query method of the present invention, when the system administrator needs to query the latest log, the query host 12 transmits the query command indicating R req =M to the log management device 11, and the log is made. The management device 11 determines that it is necessary to return the latest R max pen log. Thus, only one backhaul of the log management device 11 is required, and the query host 12 can obtain the latest R max pen log, which enables the query. The latest log is quite efficient, so it is indeed possible to achieve the object of the present invention.

惟以上所述者,僅為本發明之實施例而已,當不能以此限定本發明實施之範圍,凡是依本發明申請專利範圍及專利說明 書內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。 However, the above description is only for the embodiments of the present invention, and the scope of the present invention cannot be limited thereto, and the scope and patent description of the patent application according to the present invention. The simple equivalent changes and modifications made by the contents of the book are still within the scope of the invention patent.

201~217‧‧‧步驟 201~217‧‧‧Steps

Claims (7)

一種系統日誌查詢方法,由一組電子系統執行,該電子系統包含一台存有N筆被依序編號的日誌且在回應一次日誌查詢時最多能向外傳送Rmax筆日誌的日誌管理裝置,及一台與該日誌管理裝置連接的查詢主機,其中,該等日誌的編號中的一最小者為S,該系統日誌查詢方法包含以下步驟:(A)該日誌管理裝置接收一個由該查詢主機傳送的查詢指令,其中,該查詢指令要求回傳編號起始於Rstart的Rreq筆日誌;(B)該日誌管理裝置定義一傳送起始參數值K,並根據該查詢指令判斷是否S>Rstart,且在判斷結果為肯定時設定K=S,在判斷結果為否定時設定K=Rstart;及(C)該日誌管理裝置依據該查詢指令,進行由編號為K的日誌及由編號為(S+N-Rmax)的日誌的其中一者開始回傳至該查詢主機,其中,當該日誌管理裝置判斷出N>Rmax、Rreq>Rmax,且Rreq等於一個預定數值M時,該日誌管理裝置回傳編號為(S+N-Rmax)至(S+N-1)的該等日誌至該查詢主機。 A system log query method is performed by a group of electronic systems, and the electronic system includes a log management device that stores N logs sequentially numbered and can transmit R max pen logs at most when responding to a log query. And a query host connected to the log management device, wherein a minimum of the log numbers is S, the system log query method includes the following steps: (A) the log management device receives a host by the query The transmitted query instruction, wherein the query instruction requires a return log number starting from R start of the R req pen log; (B) the log management device defines a transfer start parameter value K, and determining whether the S> is based on the query command R start , and set K=S when the judgment result is affirmative, and K=R start when the judgment result is negative; and (C) the log management device performs the log numbered by K and the number according to the query instruction One of the logs for (S+NR max ) starts to be passed back to the query host, wherein when the log management device determines that N>R max , R req >R max , and R req is equal to a predetermined value M , the The log management device returns the logs numbered (S+NR max ) to (S+N-1) to the query host. 如請求項1所述的系統日誌查詢方法,其中,在步驟(C),當該日誌管理裝置依據該查詢指令判斷出NRmax,且(S+N-1)<(K+Rreq-1)時,該日誌管理裝置回傳編號為K至(S+N-1)的該等日誌至該查詢主機。 The system log query method of claim 1, wherein in step (C), the log management device determines N according to the query instruction When R max and (S+N-1)<(K+R req -1), the log management device returns the logs numbered K to (S+N-1) to the query host. 如請求項1所述的系統日誌查詢方法,其中,在步驟(C),當該日誌管理裝置依據該查詢指令判斷出NRmax,且(S+N-1)(K+Rreq-1)時,該日誌管理裝置回傳編號為K至(K+Rreq-1)的該等日誌至該查詢主機。 The system log query method of claim 1, wherein in step (C), the log management device determines N according to the query instruction R max and (S+N-1) (K+R req -1), the log management device returns the logs numbered K to (K+R req -1) to the query host. 如請求項1所述的系統日誌查詢方法,其中,在步驟(C),當該日誌管理裝置依據該查詢指令判斷出N>Rmax,且Rreq Rmax,且(S+N-1)(K+Rreq-1)時,該日誌管理裝置回傳編號為K至(K+Rreq-1)的該等日誌至該查詢主機。 The system log query method according to claim 1, wherein in step (C), when the log management device determines N>R max according to the query instruction, and R req R max and (S+N-1) (K+R req -1), the log management device returns the logs numbered K to (K+R req -1) to the query host. 如請求項1所述的系統日誌查詢方法,其中,在步驟(C),當該日誌管理裝置依據該查詢指令判斷出N>Rmax、Rreq Rmax,且(S+N-1)<(K+Rreq-1)時,該日誌管理裝置回傳編號為K至(S+N-1)的該等日誌至該查詢主機。 The system log query method of claim 1, wherein in step (C), the log management device determines N>R max and R req according to the query instruction. When R max and (S+N-1)<(K+R req -1), the log management device returns the logs numbered K to (S+N-1) to the query host. 如請求項1所述的系統日誌查詢方法,其中,在步驟(C),當該日誌管理裝置依據該查詢指令判斷出N>Rmax、Rreq>Rmax、Rreq≠M,且(S+N-1)(K+Rmax-1)時,該日誌管理裝置回傳編號為K至(K+Rmax-1)的該等日誌至該查詢主機。 The system log query method of claim 1, wherein, in step (C), the log management device determines N>R max , R req >R max , R req ≠M according to the query instruction, and (S) +N-1) (K+R max -1), the log management device returns the logs numbered K to (K+R max -1) to the query host. 如請求項1所述的系統日誌查詢方法,其中,在步驟(C),當該日誌管理裝置依據該查詢指令判斷出N>Rmax、Rreq>Rmax、Rreq≠M,且(S+N-1)<(K+Rmax-1)時,該日誌管理裝置回傳編號為K至(S+N-1)的該等日誌至該查詢主機。 The system log query method of claim 1, wherein, in step (C), the log management device determines N>R max , R req >R max , R req ≠M according to the query instruction, and (S) When +N-1)<(K+R max -1), the log management device returns the logs numbered K to (S+N-1) to the query host.
TW104138258A 2015-11-19 2015-11-19 Method for querying system logs TWI613557B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW104138258A TWI613557B (en) 2015-11-19 2015-11-19 Method for querying system logs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW104138258A TWI613557B (en) 2015-11-19 2015-11-19 Method for querying system logs

Publications (2)

Publication Number Publication Date
TW201719456A TW201719456A (en) 2017-06-01
TWI613557B true TWI613557B (en) 2018-02-01

Family

ID=59687751

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104138258A TWI613557B (en) 2015-11-19 2015-11-19 Method for querying system logs

Country Status (1)

Country Link
TW (1) TWI613557B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201015371A (en) * 2008-09-05 2010-04-16 Arcsight Inc Storing log data efficiently while supporting querying
TW201513606A (en) * 2013-09-16 2015-04-01 Chunghwa Telecom Co Ltd Cross-platform record tracking method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201015371A (en) * 2008-09-05 2010-04-16 Arcsight Inc Storing log data efficiently while supporting querying
TW201513606A (en) * 2013-09-16 2015-04-01 Chunghwa Telecom Co Ltd Cross-platform record tracking method

Also Published As

Publication number Publication date
TW201719456A (en) 2017-06-01

Similar Documents

Publication Publication Date Title
US8762456B1 (en) Generating prefetching profiles for prefetching data in a cloud based file system
US11496546B2 (en) File download manager
US9779138B2 (en) Methods and systems for autonomous memory searching
US20130227047A1 (en) Methods for managing content stored in cloud-based storages
US20170134495A1 (en) Method and apparatus for sharing collaboratively edited document
KR101719500B1 (en) Acceleration based on cached flows
JP2016536694A5 (en)
US20160019119A1 (en) Prioritizing backup of files
JP2017520845A5 (en)
US10242102B2 (en) Network crawling prioritization
US10545912B2 (en) Format management for a content repository
US20130018987A1 (en) Adaptive replication
TWI613557B (en) Method for querying system logs
US9516130B1 (en) Canonical API parameters
US20160063024A1 (en) Network storage deduplicating method and server using the same
US9659041B2 (en) Model for capturing audit trail data with reduced probability of loss of critical data
US9137276B2 (en) Managing message distribution in a networked environment
KR102214185B1 (en) Resource Retrieval Method
CN106940675B (en) System log query method
US10152388B1 (en) Active stream counts for storage appliances
JP2012238113A (en) File management device, file management method, and file management program
US20140122448A1 (en) Information processing apparatus, information processing method and program storage medium
US9086860B2 (en) Bi-directional linking of product build information
US20130275558A1 (en) Devices, system and methods of usb network storage
JP2015026260A (en) Data processing device, program, and data processing method