- BPEL and Java Cookbook
- Jurij Laznik
- 364字
- 2021-08-06 16:58:23
Editing the logfiles
When the logfiles are set up and are accepting the messages, the next step is to see what is logged into the logfiles. This recipe will show you how to efficiently edit the logfiles. For example, we need to edit the logfiles in case we diagnose a problem and we need to send an excerpt of the logs to the support center. We also need to edit the logfiles when we search for some particular line of log.
How to do it…
All the logging made in Oracle SOA Suite is somehow file-based, except the console logger:
- In order to edit a logfile, we first have to identify the location of the logfile.
Tip
We can find the location of logfiles in the Oracle Enterprise Manager Console.
- When we find the location, we can use the Windows native editors such as Notepad and WordPad or some freeware editors such as PSPad and Notepad++.
notepad AdminServer-diagnostic.log
Tip
The PSPad editor can be downloaded from the following URL:
Notepad++ can be downloaded from the following URL:
- When the logfiles are open, you can browse for the information you are looking for. However, note that editing is meant in a sense of viewing and searching and not changing the content of a logfile.
There's more…
In time, the number of logfiles will grow and can easily exceed several hundred Megabytes. In situations where we deal with big logfiles, we need a different approach in the editing logfiles. One utility worth mentioning is tail. For UNIX systems, this is a standard utility.
For Windows systems, there is a port project that you can find at http://sourceforge.net/projects/tailforwin32/?source=dlp.
Another utility called Bare Tail can also be used, and it can be found at http://www.baremetalsoft.com/baretail/.
To edit the logfile with the tail utility, issue the following command:
<tail_install_dir>\Tail.exe -f AdminServer-diagnostic.log
We get the window of tail with the logfile edited. New messages are coming in at the bottom of the logfile as shown in the following screenshot:

See also
To view the content of the logfiles from the Oracle Enterprise Manager Console, refer to the next recipe, Viewing logfiles in the Enterprise Manager Console.
- Linux設(shè)備驅(qū)動(dòng)開(kāi)發(fā)詳解(第2版)
- Windows Server 2019 Cookbook
- Linux內(nèi)核完全注釋(20周年版·第2版)
- Extending Puppet
- 高性能Linux服務(wù)器構(gòu)建實(shí)戰(zhàn):系統(tǒng)安全、故障排查、自動(dòng)化運(yùn)維與集群架構(gòu)
- 奔跑吧 Linux內(nèi)核(入門篇)
- 嵌入式實(shí)時(shí)操作系統(tǒng):RT-Thread設(shè)計(jì)與實(shí)現(xiàn)
- 完美應(yīng)用RHEL 8
- Mastering Reactive JavaScript
- Kali Linux 2018:Windows Penetration Testing
- Windows Server 2012網(wǎng)絡(luò)操作系統(tǒng)項(xiàng)目教程(第4版)
- Delphi Programming Projects
- Linux命令行大全(第2版)
- Python UNIX和Linux系統(tǒng)管理指南
- CentOS 6 Linux Server Cookbook