JPH0962543A - Input/output log sampling method - Google Patents
Input/output log sampling methodInfo
- Publication number
- JPH0962543A JPH0962543A JP7213453A JP21345395A JPH0962543A JP H0962543 A JPH0962543 A JP H0962543A JP 7213453 A JP7213453 A JP 7213453A JP 21345395 A JP21345395 A JP 21345395A JP H0962543 A JPH0962543 A JP H0962543A
- Authority
- JP
- Japan
- Prior art keywords
- log
- input
- output
- storage area
- setting
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 9
- 238000005070 sampling Methods 0.000 title abstract 3
- 238000003306 harvesting Methods 0.000 claims description 2
- 241000257465 Echinoidea Species 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は入出力ログ採取方法
に関し、特に、入出力装置の制御情報のログ採取方法に
関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an input / output log collecting method, and more particularly to a method for collecting control information log of an input / output device.
【0002】[0002]
【従来の技術】従来のログ採取方法は、ログ対象装置や
ログ保存領域をログルーチン内部で固定情報として保持
しているため、ログ対象装置やログ保存領域を任意に変
更することができなかった。2. Description of the Related Art In the conventional log collecting method, since the log target device and the log storage area are held as fixed information inside the log routine, the log target device and the log storage area cannot be arbitrarily changed. .
【0003】[0003]
【発明が解決しようとする課題】上述した従来の方法で
は、ログ保存領域が固定されているため、高速なログ採
取動作が必要な場合に高速なログ保存領域を使用した
り、大量のログ採取が必要な場合に大容量のログ保存領
域を使用したりすることができない問題点があった。ま
たログ対象装置も固定されているため、必要としている
入出力装置の全ログ情報の採取が行えなかったり、不必
要なログ採取が行われたりする問題点があった。In the conventional method described above, since the log storage area is fixed, the high-speed log storage area is used when a high-speed log collection operation is required, or a large amount of log collection is performed. There was a problem that a large amount of log storage area could not be used when needed. Further, since the log target device is also fixed, there is a problem that all log information of the required input / output device cannot be collected or unnecessary log collection is performed.
【0004】[0004]
【課題を解決するための手段】本発明の入出力ログ採取
方法は、ログ対象装置やログ保存領域などのログ採取動
作の設定手段を有し、ログ採取を行う装置やログを保存
する領域を任意に指定できることを特徴とする。The input / output log collection method of the present invention has a log collection operation setting means such as a log target device and a log storage area, and sets a device for log collection and an area for storing logs. The feature is that it can be specified arbitrarily.
【0005】本発明の入出力ログ採取方法は、ログ採取
の対象とする複数の入出力装置を指定するログ対象装置
指定フィールドと、ログ保存の領域としてプログラム内
のログ保存領域またはメモリ内ログ保存領域またはディ
スク内ログ保存領域のいずれかを指定するログ保存領域
指定フィールドとから構成されているログ動作設定ファ
イルを用い、入出力制御情報と入出力装置番号を引き数
として、前記ログ動作設定ファイル内の前記ログ対象装
置設定フィールド参照し、入出力装置番号に指定された
入出力装置に対するログ採取が許可されていれば前記ロ
グ保存領域設定フィールドによって指定されたログ保存
領域に、該入出力装置への入出力命令実行前の入出力制
御情報を保存し、該入出力装置への入出力命令終了後に
は、入出力実行結果を含んだ入出力制御情報を前記ログ
保存領域設定フィールドによって指定されたログ保存領
域に保存し、入出力装置に対するログ採取が必要な場合
は、前記ログ動作設定ファイル内の前記ログ対象装置設
定フィールドに対して該入出力装置のログ採取を許可す
るように設定の変更を行い、該入出力装置に対して高速
なログ動作が必要な場合は、前記ログ動作設定ファイル
内の前記ログ保存領域設定フィールドに対して高速な記
憶装置である前記ログ保存領域や前記メモリ内ログ保存
領域を該入出力装置に対するログ保存領域として使用す
るように設定の変更を行い、入出力装置に対して大量の
ログが必要な場合は、前記ログ動作設定ファイル内の前
記ログ保存領域設定フィールドに対して大容量の記憶装
置である前記ディスク内ログ保存領域をログ保存領域と
して使用するように設定の変更を行うことを特徴とす
る。According to the input / output log collecting method of the present invention, a log target device designation field for designating a plurality of log input / output devices, and a log save area in a program or a log save in memory as a log save area. Area or a disk log storage area is used to specify the log storage area specification field, and the log operation setting file is used with the input / output control information and the input / output device number as arguments. If the log collection for the I / O device specified by the I / O device number is referred to by referring to the log target device setting field in the I / O device setting field, the I / O device is set in the log saving area specified by the log saving area setting field. I / O control information before executing the I / O command to the I / O The input / output control information including the above is stored in the log storage area specified by the log storage area setting field, and when log collection for the input / output device is necessary, the log target apparatus setting field in the log operation setting file If the high-speed log operation is required for the I / O device, the log saving area setting in the log operation setting file is changed. Change the settings so that the log storage area or the in-memory log storage area, which is a high-speed storage device for the field, is used as a log storage area for the input / output device, and If necessary, the log storage area in the disk, which is a large-capacity storage device for the log storage area setting field in the log operation setting file. The characterized in that to change the setting to use as a log storage area.
【0006】本発明のログ採取方法は、入出力装置の制
御情報をログ保存領域に保存するログルーチンと、ログ
対象装置設定フィールドおよびログ保存領域設定フィー
ルドから成るログ動作設定ファイルにより構成される。
ログルーチンはログ対象装置設定フィールドを参照して
保存すべき入出力制御情報を判断し、ログ保存領域設定
フィールドを参照して入出力制御情報を保存する領域を
判断する。ログ対象装置やログ保存領域を変更する場合
は、ログ動作設定ファイル内のログ対象装置設定フィー
ルドおよびログ保存領域設定フィールドを変更すること
によりログ動作を任意に変更できることを特徴とする。The log collection method of the present invention comprises a log routine for saving control information of an input / output device in a log save area and a log operation setting file consisting of a log target device setting field and a log save area setting field.
The log routine refers to the log target device setting field to determine the input / output control information to be saved, and refers to the log save area setting field to determine the area to save the input / output control information. When changing the log target device or the log storage area, the log operation can be arbitrarily changed by changing the log target device setting field and the log storage area setting field in the log operation setting file.
【0007】[0007]
【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。BEST MODE FOR CARRYING OUT THE INVENTION Next, a description with reference to the drawings, embodiments of the present invention.
【0008】図1は本発明の一実施の形態の構成図であ
る。ログ動作設定ファイル2は、ログ採取の対象とする
入出力装置51〜入出力装置5Nを指定するログ対象装
置指定フィールド21と、ログ保存の領域としてプログ
ラム1内のログ保存領域12またはメモリ内ログ保存領
域3またはディスク内ログ保存領域4のいずれかを指定
するログ保存領域指定フィールド22とから構成されて
いる。入出力装置51〜入出力装置5Nを制御するプロ
グラム1は入出力制御情報と入出力装置番号を引き数と
してログルーチン11を実行する。ログルーチン11は
ログ動作設定ファイル2内のログ対象装置設定フィール
ド21を参照し、入出力装置番号に指定された入出力装
置51〜入出力装置5Nに対するログ採取が許可されて
いればログ保存領域設定フィールド22によって指定さ
れたログ保存領域に、入出力装置51〜入出力装置5N
への入出力命令実行前の入出力制御情報を保存する。入
出力装置51〜入出力装置5Nへの入出力命令終了後に
は、入出力実行結果を含んだ入出力制御情報をログ保存
領域設定フィールド22によって指定されたログ保存領
域に保存する。入出力装置51に対するログ採取が必要
な場合は、ログ動作設定ファイル2内のログ対象装置設
定フィールド21に対して入出力装置51のログ採取を
許可するように設定の変更を行う。入出力装置51に対
して高速なログ動作が必要な場合は、ログ動作設定ファ
イル2内のログ保存領域設定フィールド22に対して高
速な記憶装置であるプログラム内ログ保存領域12やメ
モリ内ログ保存領域3を入出力装置51に対するログ保
存領域として使用するように設定の変更を行う。入出力
装置51に対して大量のログが必要な場合は、ログ動作
設定ファイル2内のログ保存領域設定フィールド22に
対して大容量の記憶装置であるディスク内ログ保存領域
4をログ保存領域として使用するように設定の変更を行
う。FIG. 1 is a block diagram of an embodiment of the present invention. The log operation setting file 2 includes a log target device designation field 21 that designates the input / output device 51 to the input / output device 5N that are targets of log collection, and the log storage region 12 in the program 1 or the in-memory log as the log storage region. and a log storage area designation field 22 for specifying any of conserved regions 3 or disk log storage region 4. The program 1 for controlling the I / O devices 51 to 5N executes the log routine 11 with the I / O control information and the I / O device number as arguments. The log routine 11 refers to the log target device setting field 21 in the log operation setting file 2, and if the log collection for the input / output device 51 to 5N specified in the input / output device number is permitted, the log storage area. In the log storage area designated by the setting field 22, the input / output devices 51 to 5N
Saves the I / O control information before executing the I / O command to. After the end of the input / output command to the input / output devices 51 to 5N, the input / output control information including the input / output execution result is stored in the log storage area specified by the log storage area setting field 22. When it is necessary to collect the log for the input / output device 51, the setting is changed so that the log target device setting field 21 in the log operation setting file 2 is permitted to collect the log of the input / output device 51. When a high-speed log operation is required for the input / output device 51, the log save area setting field 22 in the log operation setting file 2 is a high-speed storage device such as the program log save area 12 and the in-memory log save area. The settings are changed so that the area 3 is used as a log storage area for the input / output device 51. When a large amount of logs are required for the I / O device 51, the log storage area 4 in the disk, which is a large-capacity storage device, is used as the log storage area for the log storage area setting field 22 in the log operation setting file 2. Change the settings to use.
【0009】[0009]
【発明の効果】以上説明したように、本発明は、ログ採
取時にログ動作設定ファイルを参照してログ採取を行う
ため、外部からログ動作設定ファイルを書き換えるだけ
でログ対象装置やログ保存領域を任意に変更できるとい
う効果を奏し、プログラムを改造することなくログ採取
動作を可変にできるという効果を奏する。As described above, according to the present invention , the log is collected by referring to the log operation setting file at the time of collecting the log. Therefore, the log target device and the log storage area can be created only by rewriting the log operation setting file from the outside. to bring out the effects that can be changed to any, so the effect of the log harvesting operations variable without having to modify the program.
【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.
1 プログラム 11 ログルーチン 12 プログラム内ログ保存領域 2 ログ動作設定ファイル 21 ログ対象装置設定フィールド 22 ログ保存領域設定フィールド 3 メモリ内ログ保存領域 4 ディスク内ログ保存領域 51 入出力装置 52 入出力装置 5N 入出力装置 1 Program 11 Log Routine 12 Program Log Saving Area 2 Log Operation Setting File 21 Log Target Device Setting Field 22 Log Saving Area Setting Field 3 Memory Log Saving Area 4 Disk Log Saving Area 51 I / O Device 52 I / O Device 5N Input Output device
Claims (2)
採取動作の設定手段を有し、ログ採取を行う装置やログ
を保存する領域を任意に指定できることを特徴とする入
出力ログ採取方法。1. An input / output log collection method comprising a log collection operation setting unit such as a log target device and a log storage area, and a device for log collection and an area for storing logs can be arbitrarily designated.
を指定するログ対象装置指定フィールドと、ログ保存の
領域としてプログラム内のログ保存領域またはメモリ内
ログ保存領域またはディスク内ログ保存領域のいずれか
を指定するログ保存領域指定フィールドとから構成され
ているログ動作設定ファイルを用い、入出力制御情報と
入出力装置番号を引き数として、前記ログ動作設定ファ
イル内の前記ログ対象装置設定フィールド参照し、入出
力装置番号に指定された入出力装置に対するログ採取が
許可されていれば前記ログ保存領域設定フィールドによ
って指定されたログ保存領域に、該入出力装置への入出
力命令実行前の入出力制御情報を保存し、該入出力装置
への入出力命令終了後には、入出力実行結果を含んだ入
出力制御情報を前記ログ保存領域設定フィールドによっ
て指定されたログ保存領域に保存し、入出力装置に対す
るログ採取が必要な場合は、前記ログ動作設定ファイル
内の前記ログ対象装置設定フィールドに対して該入出力
装置のログ採取を許可するように設定の変更を行い、該
入出力装置に対して高速なログ動作が必要な場合は、前
記ログ動作設定ファイル内の前記ログ保存領域設定フィ
ールドに対して高速な記憶装置である前記ログ保存領域
や前記メモリ内ログ保存領域を該入出力装置に対するロ
グ保存領域として使用するように設定の変更を行い、入
出力装置に対して大量のログが必要な場合は、前記ログ
動作設定ファイル内の前記ログ保存領域設定フィールド
に対して大容量の記憶装置である前記ディスク内ログ保
存領域をログ保存領域として使用するように設定の変更
を行うことを特徴とする入出力ログ採取方法。2. A log target device designation field for designating a plurality of input / output devices for log collection, and a log save region in a program, a log save region in a memory, or a log save region in a disk as a log save region. using the log operation setting file is composed of a log storage area designation field for designating any one, as an argument output unit number output control information, said log target device setting field of the log operation configuration file If log collection for the input / output device specified by the input / output device number is permitted, the log save area specified by the log save area setting field is displayed before the execution of the input / output command to the input / output device. The input / output control information is saved, and after the input / output command to the input / output device is completed, the input / output control information including the input / output execution result is stored. When it is necessary to save the data in the log storage area specified by the log storage area setting field and collect the log for the input / output device, the log of the input / output device is set to the log target device setting field in the log operation setting file. If the setting is changed to allow collection and a high-speed log operation is required for the I / O device, use a high-speed storage device for the log save area setting field in the log operation setting file. If the setting is changed so that the certain log storage area or the in-memory log storage area is used as the log storage area for the input / output device and a large amount of logs are required for the input / output device, the log operation is performed. Use the log storage area in the disk, which is a large-capacity storage device, as the log storage area for the log storage area setting field in the setting file Input and output log harvesting method which is characterized in that the change of sea urchin settings.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7213453A JP2776767B2 (en) | 1995-08-22 | 1995-08-22 | How to collect input/output logs |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7213453A JP2776767B2 (en) | 1995-08-22 | 1995-08-22 | How to collect input/output logs |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0962543A true JPH0962543A (en) | 1997-03-07 |
| JP2776767B2 JP2776767B2 (en) | 1998-07-16 |
Family
ID=16639474
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7213453A Expired - Lifetime JP2776767B2 (en) | 1995-08-22 | 1995-08-22 | How to collect input/output logs |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2776767B2 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005301980A (en) * | 2004-03-30 | 2005-10-27 | Hitachi Ltd | Guaranteeing the authenticity of data stored in storage devices |
| JP2006107217A (en) * | 2004-10-06 | 2006-04-20 | Ricoh Co Ltd | Image forming apparatus, log transfer method, and log transfer system |
| JP2008176465A (en) * | 2007-01-17 | 2008-07-31 | Ricoh Co Ltd | Log information management method and information device |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH036748A (en) * | 1989-06-05 | 1991-01-14 | Hitachi Ltd | On-line terminal equipment |
| JPH0535547A (en) * | 1991-07-29 | 1993-02-12 | Nec Ibaraki Ltd | Tracer memory capable of designation of trace information |
| JPH05313824A (en) * | 1992-05-11 | 1993-11-26 | Hitachi Ltd | Control method of disk built-in trace device |
| JPH064343A (en) * | 1992-06-18 | 1994-01-14 | Fujitsu Ltd | Trace information storage method |
-
1995
- 1995-08-22 JP JP7213453A patent/JP2776767B2/en not_active Expired - Lifetime
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH036748A (en) * | 1989-06-05 | 1991-01-14 | Hitachi Ltd | On-line terminal equipment |
| JPH0535547A (en) * | 1991-07-29 | 1993-02-12 | Nec Ibaraki Ltd | Tracer memory capable of designation of trace information |
| JPH05313824A (en) * | 1992-05-11 | 1993-11-26 | Hitachi Ltd | Control method of disk built-in trace device |
| JPH064343A (en) * | 1992-06-18 | 1994-01-14 | Fujitsu Ltd | Trace information storage method |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005301980A (en) * | 2004-03-30 | 2005-10-27 | Hitachi Ltd | Guaranteeing the authenticity of data stored in storage devices |
| JP2006107217A (en) * | 2004-10-06 | 2006-04-20 | Ricoh Co Ltd | Image forming apparatus, log transfer method, and log transfer system |
| JP2008176465A (en) * | 2007-01-17 | 2008-07-31 | Ricoh Co Ltd | Log information management method and information device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2776767B2 (en) | 1998-07-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| RU96119968A (en) | PROCESSING SYSTEM AND METHOD FOR ITS FUNCTIONING | |
| JPH0962543A (en) | Input/output log sampling method | |
| JP2013510353A (en) | Memory configuration | |
| JPH03113627A (en) | System for instructing execution of document output program | |
| JPH04260943A (en) | Trace output system | |
| JPS608943A (en) | Multi-branch controlling system | |
| JPH04361328A (en) | Processing mode switching system | |
| JPH0553833A (en) | Program activating method | |
| JPS59202549A (en) | Debugging device | |
| JPS63211037A (en) | Program debugging method | |
| JPH0290226A (en) | Console message output length control system | |
| JPH05210469A (en) | System for externally storing latch data | |
| JPH02201646A (en) | Program preparing device | |
| JPH0293933A (en) | Program developing device | |
| JPH04256023A (en) | Microinstruction executing system | |
| JPS6146526A (en) | Display method of load module | |
| JPH03161803A (en) | Process controller | |
| JPS60173632A (en) | Information processing unit | |
| JPH0540593A (en) | Window system | |
| JPH03137751A (en) | Communication control processor | |
| JPH03142560A (en) | Document preparing and editing device | |
| JPH0546212A (en) | System setting method for programmable controller | |
| JPS61221952A (en) | Method for processing channel program | |
| JPH0287227A (en) | Data processor | |
| JPH07230306A (en) | Program Branch Control Method for Programmable Controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19980331 |