Log
Introduction
The Log tab of the Base Agent web interface shows a real-time representation of the log file, meaning that it updates in accordance with the real file-based log file.
Log lines
The log file is built up by single lines being added to it (like any other log file). Each line is built up like this;
- A timestamp indicating the exact time: 03-17-08:57:33:380
- A log level indicator, showing the log level in which the line belongs: inf(o) (could also be deb(ug) or tra(ce)
- A heading with a general text and a reference for the line: /file/25. As you can see, the line above has the same reference. This keeps them together, logically. The reason for using these references is that the Base Agent is multi-threaded and can perform several overlapping actions simultaneously.
- Finally, the actual log information: From DevWhite.CapaSystems.Com: computerjobs/swinventory......
Client- and Server references
The Base Agent service has two HTTP Interfaces, a Server interface that can handle incoming HTTP requests from the BaseAgentConnector, CiStub and other Base Agents. Requests being handled are given a continuous number as an ID and all references to that request are logged with 's' for server and the ID, i.e.: s.892Â The BaseAgent obviously also has a client interface, which is used to communicate with other BaseAgents, Distribution Servers, and Front-ends. The reference for outgoing requests via the client interface are prefaced with a 'c', i.e.: c.148.Â
Log levels
The ability to show log lines dynamically is provided in order to both give some overview of what is happening but also the ability to drill down into the details of what is happening.
Info
In this example, a file is about to be uploaded to the Front-end Server, and it has the reference; c.148. The log file is shown in the Info log level.
Debug
In the Debug log level, more information about the HTTP request and the file is shown (in blue)
Trace
Switching to the Trace log level, even more, details are shown (in green), like the HTTP request timeout, the MD5 generation. Because the file being uploaded is smaller than 2KB, the content of the file is also logged.
AutoScroll
As a default setting, the log file auto-scrolls (like smstrace, baretail e.t.c) in order to keep the latest information visible. If you scroll up, the Autoscroll is disabled until the checkbox is either checked or you scroll to the bottom of the log file.
Download
If you need to collect all log files from the Base Agent, click the Download button in the upper right corner. The 'Logfile from memory' is the real-time version that is shown in the Log tab. You can also include the actual log file and the log files located in the \history folder. Finally, you can include the history information presented in the History tab. Click 'Download' to collect all the files.